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

Unified Diff: src/trusted/service_runtime/linux/mips/sel_segments.c

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
Index: src/trusted/service_runtime/linux/mips/sel_segments.c
diff --git a/src/trusted/service_runtime/linux/mips/sel_segments.c b/src/trusted/service_runtime/linux/mips/sel_segments.c
new file mode 100644
index 0000000000000000000000000000000000000000..3ac94017f1908619a84d4691725fc09dd516bbfc
--- /dev/null
+++ b/src/trusted/service_runtime/linux/mips/sel_segments.c
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2012 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can
+ * be found in the LICENSE file.
+ */
+
+#include <stdint.h>
+#include "native_client/src/trusted/service_runtime/sel_util.h"
+
+uint32_t NaClGetStackPtr(void) {
+ uint32_t sp;
+
+ asm("move %0, $sp" : "=r" (sp));
+
+ return sp;
+}
+
+uint32_t NaClGetGlobalPtr(void) {
+ uint32_t gp;
+
+ asm("move %0, $gp" : "=r" (gp));
+
+ return gp;
+}
+
« no previous file with comments | « src/trusted/service_runtime/include/bits/wordsize.h ('k') | src/trusted/service_runtime/linux/nacl_bootstrap.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698