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

Unified Diff: src/untrusted/stubs/crt1_arm.S

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: disable bogus stack_frame.cc test for now 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
« no previous file with comments | « src/untrusted/stubs/crt1.x ('k') | src/untrusted/stubs/crt1_x86.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/stubs/crt1_arm.S
diff --git a/src/untrusted/stubs/crt1_arm.S b/src/untrusted/stubs/crt1_arm.S
deleted file mode 100644
index 4af43fa8b558503613f1fecc1a45ef8435888069..0000000000000000000000000000000000000000
--- a/src/untrusted/stubs/crt1_arm.S
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright 2009, Google Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- *TODO(robertm): find documentation for eabi
-
- * The stack organization
- * 0(sp) argc
- * 4(sp) argv[0]
- * ...
- * (4*argc)(sp) NULL
- * (4*(argc+1))(sp) envp[0]
- * ...
- * NULL
- */
-
-/* TODO(robertm): find a header to put this in/get it from, e.g. nacl_config */
-
-#include "native_client/src/trusted/service_runtime/nacl_config.h"
-
- .data
- .globl environ
-
- .text
- .align NACL_ARM_BUNDLE_SIZE_LOG
-
- .global _start
-
-_start:
- mov r11, #0 /* clear frame pointer */
- mov r14, #0 /* clear link register */
- nop
- nop
- /* TODO(robertm): We should be doing this in sel_ldr. */
- ldr r0, [sp] /* get argc */
- add r1, sp, #4 /* get argv */
- add r2, r1, r0, lsl #2 /* get envp */
- add r2, r2, #4
-
- nop
- nop
- nop
- bl __nacl_startup
-
- /* unreachable */
- bkpt 0x7777
« no previous file with comments | « src/untrusted/stubs/crt1.x ('k') | src/untrusted/stubs/crt1_x86.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698