X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/92bb2596b1eda2324da82825b882df5dce9dfbbb..5d4677410e2c1d9973ceb085294c1d3573a89c10:/aseg-paging/pagingstub-asm.s diff --git a/aseg-paging/pagingstub-asm.s b/aseg-paging/pagingstub-asm.s index 0d30a6d..414e463 100644 --- a/aseg-paging/pagingstub-asm.s +++ b/aseg-paging/pagingstub-asm.s @@ -11,3 +11,10 @@ set_cr0_cont: # Hey, here we are! addl $6, %esp # Un-do 48 bits of pushing ret + +.globl ps_switch_stack +ps_switch_stack: + mov 4(%esp), %eax + mov 8(%esp), %esp + call *%eax + rsm