X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/92bb2596b1eda2324da82825b882df5dce9dfbbb..ea82a4d139d466936e00b5963e8454f2270fc3ff:/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