Skip to content

Instantly share code, notes, and snippets.

@bcho
Created October 9, 2014 05:49
Show Gist options
  • Select an option

  • Save bcho/bd65fcf083e7f4ce2110 to your computer and use it in GitHub Desktop.

Select an option

Save bcho/bd65fcf083e7f4ce2110 to your computer and use it in GitHub Desktop.
trick
// Store current instruction.
tf->esp -= 4;
*((uint *) (tf->esp)) = tf->eip;
// Run alarm handler.
tf->eip = (uint) proc->alarmhandler;
@bcho
Copy link
Copy Markdown
Author

bcho commented Oct 9, 2014

redirect execute flow...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment