X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/db9fad13f192963786c7ac90d305467ac00bd145..d5d3737996d3828397e02f0f953fbc5c9e63f709:/netwatch/pagingstub-asm.S?ds=sidebyside diff --git a/netwatch/pagingstub-asm.S b/netwatch/pagingstub-asm.S index 964d06e..7440a7a 100644 --- a/netwatch/pagingstub-asm.S +++ b/netwatch/pagingstub-asm.S @@ -23,5 +23,11 @@ set_cr0_cont: # Hey, here we are! ps_switch_stack: mov 4(%esp), %eax mov 8(%esp), %esp + # Put a sentinel value (FEEDFACE) at the top of the stack + mov $0xCEFAEDFE, %edx + push %edx + push %edx + push %edx + push %edx call *%eax rsm