OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 #include "native_client/src/trusted/service_runtime/include/bits/nacl_syscalls.h " | 6 #include "native_client/src/trusted/service_runtime/include/bits/nacl_syscalls.h " |
7 #include "native_client/src/trusted/service_runtime/nacl_config.h" | 7 #include "native_client/src/trusted/service_runtime/nacl_config.h" |
8 | 8 |
9 #define halt 0xe1266676 | 9 #define halt 0xE7FEDEFF |
Mark Seaborn
2012/10/18 01:21:39
Ditto. Can this file reuse NACL_HALT_OPCODE?
| |
10 /* the macros below are used with movw/movt and absolute values */ | 10 /* the macros below are used with movw/movt and absolute values */ |
11 /* llvm-mc does not like the use of :lower16:/:upper16: with absolute values */ | 11 /* llvm-mc does not like the use of :lower16:/:upper16: with absolute values */ |
12 /* c.f.: http://llvm.org/bugs/show_bug.cgi?id=8721 */ | 12 /* c.f.: http://llvm.org/bugs/show_bug.cgi?id=8721 */ |
13 #define lower_16(x) ((x) & 0xffff) | 13 #define lower_16(x) ((x) & 0xffff) |
14 #define upper_16(x) (((x) >> 16) & 0xffff) | 14 #define upper_16(x) (((x) >> 16) & 0xffff) |
15 | 15 |
16 | 16 |
17 /* | 17 /* |
18 * Code to test various address layout boundary conditions. | 18 * Code to test various address layout boundary conditions. |
19 * This is a translation from the x86-{32,64} code, and is | 19 * This is a translation from the x86-{32,64} code, and is |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
230 .fill (TEXT_EXTEND - (. - start_of_text))/4, 4, halt | 230 .fill (TEXT_EXTEND - (. - start_of_text))/4, 4, halt |
231 #endif | 231 #endif |
232 | 232 |
233 end_of_text: | 233 end_of_text: |
234 | 234 |
235 #if defined(EXPECTED_RODATA) | 235 #if defined(EXPECTED_RODATA) |
236 .section .rodata | 236 .section .rodata |
237 ro_str: .ascii "Hello world\n" | 237 ro_str: .ascii "Hello world\n" |
238 /* 123456789012 */ | 238 /* 123456789012 */ |
239 #endif | 239 #endif |
OLD | NEW |