]> Joshua Wise's Git repositories - netwatch.git/blame - aseg-paging/pagingstub-asm.s
Manage to get a nice big packet queue going inside lwIP.
[netwatch.git] / aseg-paging / pagingstub-asm.s
CommitLineData
9e2a82e4
JP
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
8e404e68
JP
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.041487 seconds and 4 git commands to generate.