Changeset ae318d3 in mainline for kernel/arch/sparc64
- Timestamp:
- 2009-02-16T18:50:48Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 06da55b
- Parents:
- 17f168e
- Location:
- kernel/arch/sparc64
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/mm/frame.h
r17f168e rae318d3 74 74 75 75 extern uintptr_t last_frame; 76 extern uintptr_t end_frame; 76 77 extern void frame_arch_init(void); 77 78 #define physmem_print() -
kernel/arch/sparc64/src/drivers/sgcn.c
r17f168e rae318d3 162 162 163 163 /** 164 * Registers the physical area of the SRAM so that the userspace SGCN 165 * driver can map it. Moreover, it sets some sysinfo values (SRAM address 166 * and SRAM size). 167 */ 168 static void register_sram_parea(uintptr_t sram_begin_physical) 169 { 170 static parea_t sram_parea; 171 sram_parea.pbase = sram_begin_physical; 172 sram_parea.vbase = (uintptr_t) sram_begin; 173 sram_parea.frames = MAPPED_AREA_SIZE / FRAME_SIZE; 174 sram_parea.cacheable = false; 175 ddi_parea_register(&sram_parea); 176 164 * Set some sysinfo values (SRAM address and SRAM size). 165 */ 166 static void register_sram(uintptr_t sram_begin_physical) 167 { 177 168 sysinfo_set_item_val("sram.area.size", NULL, MAPPED_AREA_SIZE); 178 169 sysinfo_set_item_val("sram.address.physical", NULL, … … 212 203 sram_begin = hw_map(sram_begin_physical, MAPPED_AREA_SIZE); 213 204 214 register_sram _parea(sram_begin_physical);205 register_sram(sram_begin_physical); 215 206 } 216 207 -
kernel/arch/sparc64/src/mm/frame.c
r17f168e rae318d3 42 42 43 43 uintptr_t last_frame = NULL; 44 uintptr_t end_frame = NULL; 44 45 45 46 /** Create memory zones according to information stored in bootinfo. … … 81 82 } 82 83 84 end_frame = last_frame; 83 85 } 84 86 -
kernel/arch/sparc64/src/mm/page.c
r17f168e rae318d3 148 148 sizemap[order].pagesize_code, true, false); 149 149 150 #ifdef CONFIG_SMP 150 #ifdef CONFIG_SMP 151 151 /* 152 152 * Second, save the information about the mapping for APs. … … 165 165 } 166 166 167 void hw_area(uintptr_t *physaddr, pfn_t *frames) 168 { 169 *physaddr = end_frame; 170 *frames = ADDR2PFN(0x7ffffffffff - end_frame); 171 } 172 167 173 /** @} 168 174 */ 169
Note:
See TracChangeset
for help on using the changeset viewer.