]> Joshua Wise's Git repositories - netwatch.git/blame_incremental - aseg-paging/pagingstub-asm.s
Link text into copy_pixels.
[netwatch.git] / aseg-paging / pagingstub-asm.s
... / ...
CommitLineData
1
2.globl set_cr0
3
4set_cr0:
5 mov 4(%esp), %eax # Load argument
6 movl %eax, %cr0 # Set CR0
7 pushw %cs # Push 16 bits of %CS
8 pushl $set_cr0_cont # Push 32 bits of %EIP
9 ljmp *(%esp) # "Far jump" (both %CS and %EIP from stack)
10set_cr0_cont: # Hey, here we are!
11 addl $6, %esp # Un-do 48 bits of pushing
12 ret
13
14
15.globl ps_switch_stack
16ps_switch_stack:
17 mov 4(%esp), %eax
18 mov 8(%esp), %esp
19 call *%eax
20 rsm
This page took 0.026276 seconds and 4 git commands to generate.