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

Unified Diff: src/include/nacl_base.h

Issue 10919162: [MIPS] Implementation of sel_ldr for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Rebase (Saturday morning). Created 8 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 | « src/include/elf_constants.h ('k') | src/include/portability.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/include/nacl_base.h
diff --git a/src/include/nacl_base.h b/src/include/nacl_base.h
index 66b87b7bbeed84a501be005579b8347053a17f52..81707347271a58c31ab87beb3eb2970f9cfccb46 100644
--- a/src/include/nacl_base.h
+++ b/src/include/nacl_base.h
@@ -11,6 +11,16 @@
#define NATIVE_CLIENT_SRC_INCLUDE_NACL_BASE_H_ 1
/*
+ * The following part is necessary for Mips because Mips compilers by default
+ * preprocess "mips" string and replace it with character '1'. To allow using
+ * "NACL_mips" macro, we need to undefine "mips" macro.
+ */
+
+#ifdef mips
+# undef mips
+#endif
+
+/*
* putting extern "C" { } in header files make emacs want to indent
* everything, which looks odd. rather than putting in fancy syntax
* recognition in c-mode, we just use the following macros.
@@ -59,6 +69,7 @@
*/
#define NACL_x86 1
#define NACL_arm 2
+#define NACL_mips 3
/*****************************************************************************
* Architecture name encodings.
« no previous file with comments | « src/include/elf_constants.h ('k') | src/include/portability.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698