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

Unified Diff: src/trusted/service_runtime/nacl_config.h

Issue 7276050: Change startup ABI for untrusted code to be C-compatible (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 9 years, 6 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_config.h
diff --git a/src/trusted/service_runtime/nacl_config.h b/src/trusted/service_runtime/nacl_config.h
index bf3cf509909d532611e8a588d803d5e5f48c4f3e..404db7f60ac27307ebbb0a259019ace9f33817c6 100644
--- a/src/trusted/service_runtime/nacl_config.h
+++ b/src/trusted/service_runtime/nacl_config.h
@@ -162,6 +162,8 @@
* must do so here as well.
*/
# define NACL_STACK_ALIGN_MASK (0xf)
+# define NACL_STACK_GETS_ARG (1)
+# define NACL_STACK_PAD_BELOW_ALIGN (4)
# elif NACL_BUILD_SUBARCH == 64
# define NACL_USERRET_FIX (0x8)
@@ -173,6 +175,8 @@
* 3.2.2 discusses stack alignment.
*/
# define NACL_STACK_ALIGN_MASK (0xf)
+# define NACL_STACK_GETS_ARG (0)
+# define NACL_STACK_PAD_BELOW_ALIGN (8)
# else /* NACL_BUILD_SUBARCH */
# error Unknown platform!
# endif /* NACL_BUILD_SUBARCH */
@@ -194,6 +198,8 @@
* -- the "public" stack alignment is required to be 8 bytes,
*/
# define NACL_STACK_ALIGN_MASK (0x7)
+# define NACL_STACK_GETS_ARG (0)
+# define NACL_STACK_PAD_BELOW_ALIGN (0)
/* TODO(robertm): unify this with NACL_BLOCK_SHIFT */
/* 16 byte bundles */

Powered by Google App Engine
This is Rietveld 408576698