X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/92bb2596b1eda2324da82825b882df5dce9dfbbb..ed22a6995cddb7b61503fdca859267ef85b3bdd3:/aseg-paging/pagingstub-asm.s?ds=inline 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