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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file.
5 */
6
7 #include <stdint.h>
8 #include "native_client/src/trusted/service_runtime/sel_util.h"
9
10 uint32_t NaClGetStackPtr(void) {
11 uint32_t sp;
12
13 asm("move %0, $sp" : "=r" (sp));
14
15 return sp;
16 }
17
18 uint32_t NaClGetGlobalPtr(void) {
19 uint32_t gp;
20
21 asm("move %0, $gp" : "=r" (gp));
22
23 return gp;
24 }
25
OLDNEW
« 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