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

Unified Diff: src/trusted/service_runtime/nacl_syscall_common.c

Issue 12460003: [MIPS] Leave room for frame header on stack for MIPS arch (Closed) Base URL: http://git.chromium.org/native_client/src/native_client.git@master
Patch Set: Created 7 years, 10 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
Index: src/trusted/service_runtime/nacl_syscall_common.c
diff --git a/src/trusted/service_runtime/nacl_syscall_common.c b/src/trusted/service_runtime/nacl_syscall_common.c
index ae4b4649df35e7f0131fc71ccefcbb2d7060e27e..925c0049a119dd855e1dc0ae2b17f646e7dbb54d 100644
--- a/src/trusted/service_runtime/nacl_syscall_common.c
+++ b/src/trusted/service_runtime/nacl_syscall_common.c
@@ -2455,7 +2455,8 @@ int32_t NaClSysThreadCreate(struct NaClAppThread *natp,
/* Align the stack pointer. */
stack_ptr = ((stack_ptr + NACL_STACK_PAD_BELOW_ALIGN)
- & ~NACL_STACK_ALIGN_MASK) - NACL_STACK_PAD_BELOW_ALIGN;
+ & ~NACL_STACK_ALIGN_MASK) - NACL_STACK_PAD_BELOW_ALIGN
+ - NACL_STACK_ARG_SIZE;
sys_stack = NaClUserToSysAddr(nap, stack_ptr);
if (kNaClBadAddress == sys_stack) {

Powered by Google App Engine
This is Rietveld 408576698