Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: test.cc

Issue 8036047: In 32bit mode, removed all assembly addressing modes that are incompatible with (Closed) Base URL: http://seccompsandbox.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « syscall_entrypoint.cc ('k') | trusted_thread_i386.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test.cc
===================================================================
--- test.cc (revision 167)
+++ test.cc (working copy)
@@ -164,23 +164,24 @@
"mov $1, %%eax\n"
"int $0\n"
"jmp 101f\n"
- "100:.ascii \"Hello world (INT $0 worked)\\n\"\n"
- "101:\n"
+ "100:.ascii \"Hello world (INT $0 worked)\\n\"\n"
+ "101:\n"
:
:
: "rax", "rdi", "rsi", "rdx");
#elif defined(__i386__)
- asm volatile("mov $2, %%ebx\n"
+ asm volatile("push %%ebx\n"
+ "mov $2, %%ebx\n"
"lea 100f, %%ecx\n"
"mov $101f-100f, %%edx\n"
"mov $4, %%eax\n"
"int $0\n"
"jmp 101f\n"
- "100:.ascii \"Hello world (INT $0 worked)\\n\"\n"
- "101:\n"
+ "100:.ascii \"Hello world (INT $0 worked)\\n\"\n"
+ "101:pop %%ebx\n"
:
:
- : "eax", "ebx", "ecx", "edx");
+ : "eax", "ecx", "edx");
#endif
int pair[2];
« no previous file with comments | « syscall_entrypoint.cc ('k') | trusted_thread_i386.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698