]> Joshua Wise's Git repositories - netwatch.git/blobdiff - netwatch/pagingstub-asm.S
Fix smm_type detection to actually detect, and add a state_num_regs routine.
[netwatch.git] / netwatch / pagingstub-asm.S
index 964d06ed9c2b96b559a9bab0e6314ae38e8401ec..7440a7a6d56d7256936589cb73f8d83c95c0c5d0 100644 (file)
@@ -23,5 +23,11 @@ set_cr0_cont:                           # Hey, here we are!
 ps_switch_stack:
   mov 4(%esp), %eax
   mov 8(%esp), %esp   
 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
   call *%eax
   rsm
This page took 0.022863 seconds and 4 git commands to generate.