Changeset 12c7f27 in mainline
- Timestamp:
- 2006-04-22T23:35:20Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ecc8bce
- Parents:
- cf85e24c
- Location:
- arch
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/include/arch.h
rcf85e24c r12c7f27 30 30 #define __mips32_ARCH_H__ 31 31 32 extern void arch_pre_main(void); 33 32 34 #endif -
arch/mips32/src/mips32.c
rcf85e24c r12c7f27 58 58 #define CACHE_EXC ((char *) 0x80000100) 59 59 60 void arch_pre_main(void) 61 { 62 /* Setup usermode */ 63 init.cnt = 1; 64 init.tasks[0].addr = INIT_ADDRESS; 65 init.tasks[0].size = INIT_SIZE; 66 } 67 60 68 void arch_pre_mm_init(void) 61 69 { … … 96 104 console_init(); 97 105 debugger_init(); 98 99 /* Setup usermode */100 init.cnt = 1;101 init.tasks[0].addr = INIT_ADDRESS;102 init.tasks[0].size = INIT_SIZE;103 106 } 104 107 -
arch/mips32/src/start.S
rcf85e24c r12c7f27 187 187 lui $gp, 0x8000 188 188 189 jal main_bsp 190 nop 191 189 jal arch_pre_main 190 nop 191 192 j main_bsp 193 nop 192 194 193 195 .space TEMP_STACK_SIZE … … 322 324 add $t9, $a2, 0 # Set up correct entry into PIC code 323 325 eret 324 -
arch/ppc32/include/arch.h
rcf85e24c r12c7f27 30 30 #define __ppc32_ARCH_H__ 31 31 32 extern void arch_pre_main(void); 33 32 34 #endif -
arch/ppc32/src/boot/boot.S
rcf85e24c r12c7f27 68 68 bootinfo_end: 69 69 70 bl arch_pre_main 70 71 b main_bsp 71 72 -
arch/ppc32/src/ppc32.c
rcf85e24c r12c7f27 38 38 bootinfo_t bootinfo; 39 39 40 void arch_pre_main(void) 41 { 42 /* Setup usermode */ 43 init.cnt = 1; 44 init.tasks[0].addr = PA2KA(bootinfo.init.addr); 45 init.tasks[0].size = bootinfo.init.size; 46 } 47 40 48 void arch_pre_mm_init(void) 41 49 { … … 48 56 ppc32_console_init(); 49 57 cuda_init(); 50 51 /* Setup usermode */52 init.cnt = 1;53 init.tasks[0].addr = PA2KA(bootinfo.init.addr);54 init.tasks[0].size = bootinfo.init.size;55 58 } 56 59
Note:
See TracChangeset
for help on using the changeset viewer.