Changeset 587:bb97b4d6ac69
- Timestamp:
- 06/07/08 22:58:15 (7 months ago)
- Author:
- David Anderson <dave@…>
- Branch:
- default
- Message:
-
Add ROM free space to the memory map definitions.
- Location:
- nxos
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r569
|
r587
|
|
| 59 | 59 | extern U8 __stack_start__; |
| 60 | 60 | extern U8 __stack_end__; |
| | 61 | |
| | 62 | extern U8 __rom_end__; |
| 61 | 63 | |
| 62 | 64 | extern U8 __boot_from_samba__; |
| … |
… |
|
| 156 | 158 | /*@}*/ |
| 157 | 159 | |
| | 160 | /** @name ROM userspace section. |
| | 161 | * |
| | 162 | * The ROM userspace section is the portion of ROM that is not used by |
| | 163 | * the kernel. Application kernels are free to do whatever they want |
| | 164 | * with this area, and it will not affect the Baseplate in any way. |
| | 165 | * |
| | 166 | * @note One possible use of this free ROM is to use the filesystem |
| | 167 | * library to store files in the free space. |
| | 168 | */ |
| | 169 | /*@{*/ |
| | 170 | #define NX_ROM_USERSPACE_START SYMADDR(__rom_userspace_start__) |
| | 171 | #define NX_ROM_USERSPACE_END ((U8*)0x140000) |
| | 172 | #define NX_ROM_USERSPACE_SIZE SECSIZE(NX_ROM_USERSPACE_START, NX_ROM_USERSPACE_END) |
| | 173 | /*@}*/ |
| | 174 | |
| 158 | 175 | /** @name Boot method |
| 159 | 176 | * |
-
|
r204
|
r587
|
|
| | 1 | /* Copyright (c) 2007,2008 the NxOS developers |
| | 2 | * |
| | 3 | * See AUTHORS for a full list of the developers. |
| | 4 | * |
| | 5 | * Redistribution of this file is permitted under |
| | 6 | * the terms of the GNU Public License (GPL) version 2. |
| | 7 | */ |
| | 8 | |
| 1 | 9 | /* NXT linker script source. |
| 2 | 10 | * |
| … |
… |
|
| 124 | 132 | SAMBA_ONLY > ram |
| 125 | 133 | |
| 126 | | ROM_ONLY __rom_end__ = ADDR(.text) + SIZEOF(.text) ; |
| | 134 | ROM_ONLY __rom_userspace_start__ = ADDR(.text) + SIZEOF(.text); |
| | 135 | SAMBA_ONLY __rom_userspace_start__ = 0; |
| 127 | 136 | |
| 128 | 137 | __text_start__ = ADDR(.text); |