Changeset 587:bb97b4d6ac69

Show
Ignore:
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:
2 modified

Legend:

Unmodified
Added
Removed
  • nxos/base/memmap.h

    r569 r587  
    5959extern U8 __stack_start__; 
    6060extern U8 __stack_end__; 
     61 
     62extern U8 __rom_end__; 
    6163 
    6264extern U8 __boot_from_samba__; 
     
    156158/*@}*/ 
    157159 
     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 
    158175/** @name Boot method 
    159176 * 
  • nxos/systems/appkernel.lds

    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 
    19/* NXT linker script source. 
    210 * 
     
    124132  SAMBA_ONLY > ram 
    125133 
    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; 
    127136 
    128137  __text_start__ = ADDR(.text);