Changeset 9559674 in rtems
- Timestamp:
- Dec 9, 2009, 10:37:12 PM (11 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- b9636c24
- Parents:
- 7b21633
- Location:
- c/src/lib/libbsp/i386/pc386
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/i386/pc386/ChangeLog
r7b21633 r9559674 1 2009-12-09 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * startup/bspgetworkarea.c: Add debug printk's. 4 * startup/linkcmds: Using "-Wl,--defsym -Wl,RamSize=0x1000000" 5 results in _RamSize being defined. Handle this properly. 6 7 8 1 9 2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com> 2 10 -
c/src/lib/libbsp/i386/pc386/startup/bspgetworkarea.c
r7b21633 r9559674 14 14 */ 15 15 16 /* #define BSP_GET_WORK_AREA_DEBUG */ 16 17 #include <bsp.h> 17 18 #include <bsp/bootcard.h> 19 20 #ifdef BSP_GET_WORK_AREA_DEBUG 21 #include <rtems/bspIo.h> 22 #endif 18 23 19 24 /* … … 75 80 _boot_multiboot_info.mem_upper ) { 76 81 bsp_mem_size = _boot_multiboot_info.mem_upper * 1024; 82 #ifdef BSP_GET_WORK_AREA_DEBUG 83 printk( "Multiboot info says we have 0x%08x\n", bsp_mem_size ); 84 #endif 77 85 } 78 86 … … 90 98 for(i=lowest; i<=2048; i++) { 91 99 topAddr = i*1024*1024 - 4; 92 val = *( uint32_t*)topAddr;100 val = *(volatile uint32_t*)topAddr; 93 101 if (val != topAddr) { 94 102 break; … … 97 105 98 106 topAddr = (i-1)*1024*1024 - 4; 107 #ifdef BSP_GET_WORK_AREA_DEBUG 108 printk( "Dynamically sized to 0x%08x\n", topAddr ); 109 #endif 99 110 } else { 100 printk( "hardcoded\n" );101 111 topAddr = (uintptr_t) RamSize; 112 #ifdef BSP_GET_WORK_AREA_DEBUG 113 printk( "hardcoded to 0x%08x\n", topAddr ); 114 #endif 102 115 } 103 116 … … 121 134 *heap_size = (uintptr_t) HeapSize; 122 135 123 #if 0 136 #ifdef BSP_GET_WORK_AREA_DEBUG 137 printk( "bsp_mem_size = 0x%08x\n", bsp_mem_size ); 138 printk( "rtemsFreeMemStart = 0x%08x\n", rtemsFreeMemStart ); 124 139 printk( "WorkArea Base = %p\n", *work_area_start ); 125 140 printk( "WorkArea Size = 0x%08x\n", *work_area_size ); 126 141 printk( "C Program Heap Base = %p\n", *heap_start ); 127 142 printk( "C Program Heap Size = 0x%08x\n", *heap_size ); 143 printk( "End of WorkArea = %p\n", *work_area_start + *work_area_size ); 128 144 #endif 129 145 } -
c/src/lib/libbsp/i386/pc386/startup/linkcmds
r7b21633 r9559674 18 18 ENTRY(_start) 19 19 */ 20 HeapSize = DEFINED(HeapSize) ? HeapSize : 0x0; 21 RamSize = DEFINED(RamSize) ? RamSize : 0xFFFFFFFF; 20 HeapSize = DEFINED(HeapSize) ? HeapSize : 21 DEFINED(_HeapSize) ? _HeapSize : 0x0; 22 RamSize = DEFINED(RamSize) ? RamSize : 23 DEFINED(_RamSize) ? _RamSize : 0xFFFFFFFF; 22 24 23 25 SECTIONS
Note: See TracChangeset
for help on using the changeset viewer.