Ian Rogers | bdb0391 | 2011-09-14 00:55:44 -0700 | [diff] [blame] | 1 | // Copyright 2011 Google Inc. All Rights Reserved. |
2 | |||||
3 | #include "context_x86.h" | ||||
4 | |||||
5 | namespace art { | ||||
6 | namespace x86 { | ||||
7 | |||||
8 | void X86Context::DoLongJump() { | ||||
9 | // Load ESP and EIP | ||||
10 | asm volatile ( "movl %%esp, %0\n" | ||||
11 | "jmp *%1" | ||||
12 | : // output | ||||
13 | : "m"(esp_), "r"(&eip_) // input | ||||
14 | :); // clobber | ||||
15 | } | ||||
16 | |||||
17 | } // namespace x86 | ||||
18 | } // namespace art |