revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-pc / kernel / issuper.s
blobe94f409043d089df44174bf4d3ab7681941cf095
1 .text
2 .align 16
3 .globl Kernel_13_KrnIsSuper
4 .type Kernel_13_KrnIsSuper, @function
6 Kernel_13_KrnIsSuper:
7 mov %cs, %ax
8 and $0x03, %eax // Lower two bits are CPL
9 xor $0x03, %eax // 0x03 will give zero, 0x00 will give nonzero
10 ret
12 .size Kernel_13_KrnIsSuper, .-Kernel_13_KrnIsSuper