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

Unified Diff: sigaction.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 | « fault_handler_i386.S ('k') | syscall_entrypoint.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sigaction.cc
===================================================================
--- sigaction.cc (revision 169)
+++ sigaction.cc (working copy)
@@ -98,12 +98,11 @@
sa.sa_flags = SA_NODEFER | SA_RESETHAND | SA_RESTORER;
sa.sa_mask = 0;
asm volatile(
- "lea 0f, %0\n"
- "jmp 1f\n"
+ "call 1f\n"
"0:pop %%eax\n"
"mov $119, %%eax\n" // __NR_sigreturn
"int $0x80\n"
- "1:\n"
+ "1:pop %0\n"
: "=r"(sa.sa_restorer));
long rc = sandbox_sigaction(signum, &sa, &osa);
if (rc < 0) {
« no previous file with comments | « fault_handler_i386.S ('k') | syscall_entrypoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698