boucane/src/core/scheduler_asm.S

28 lines
305 B
ArmAsm
Raw Normal View History

2021-05-01 11:37:52 +02:00
.globl switch
switch:
mov $0x23, %ax
mov %ax, %ds
mov %ax, %es
mov %ax, %fs
mov %ax, %gs
push $0x23 #
push $0x80
pushf
pop %rax
#orl $0x200, %%eax
mov $0xffffbfff, %rbx
and %rbx, %rax
push %rax
push $0x1B
push $0x0
iretq