Changeset 96e0748d in mainline for kernel/arch/ppc32
- Timestamp:
- 2009-02-17T22:47:27Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f89979b
- Parents:
- e662a5f
- Location:
- kernel/arch/ppc32
- Files:
-
- 4 edited
-
include/arch.h (modified) (2 diffs)
-
include/boot/boot.h (modified) (2 diffs)
-
src/boot/boot.S (modified) (2 diffs)
-
src/ppc32.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/arch.h
re662a5f r96e0748d 27 27 */ 28 28 29 /** @addtogroup ppc32 29 /** @addtogroup ppc32 30 30 * @{ 31 31 */ … … 36 36 #define KERN_ppc32_ARCH_H_ 37 37 38 #include <arch/drivers/cuda.h> 38 extern void arch_pre_main(void); 39 39 40 40 #endif -
kernel/arch/ppc32/include/boot/boot.h
re662a5f r96e0748d 27 27 */ 28 28 29 /** @addtogroup ppc32 29 /** @addtogroup ppc32 30 30 * @{ 31 31 */ … … 36 36 #define KERN_ppc32_BOOT_H_ 37 37 38 #define BOOT_OFFSET 0x800038 #define BOOT_OFFSET 0x8000 39 39 40 40 /* Temporary stack size for boot process */ 41 #define TEMP_STACK_SIZE 0x100041 #define TEMP_STACK_SIZE 0x1000 42 42 43 #define TASKMAP_MAX_RECORDS 3244 #define MEMMAP_MAX_RECORDS 3243 #define TASKMAP_MAX_RECORDS 32 44 #define MEMMAP_MAX_RECORDS 32 45 45 46 46 #ifndef __ASM__ -
kernel/arch/ppc32/src/boot/boot.S
re662a5f r96e0748d 34 34 .global kernel_image_start 35 35 kernel_image_start: 36 36 37 37 # load temporal kernel stack 38 38 … … 53 53 54 54 addis r3, r3, 0x8000 55 55 56 56 lis r31, bootinfo@ha 57 57 addi r31, r31, bootinfo@l # r31 = bootinfo -
kernel/arch/ppc32/src/ppc32.c
re662a5f r96e0748d 46 46 #include <ddi/irq.h> 47 47 #include <arch/drivers/pic.h> 48 #include <macros.h> 48 49 49 #define IRQ_COUNT 6450 #define IRQ_COUNT 64 50 51 51 52 bootinfo_t bootinfo; … … 53 54 void arch_pre_main(void) 54 55 { 55 /* Setup usermode */56 56 init.cnt = bootinfo.taskmap.count; 57 57 58 58 uint32_t i; 59 59 60 for (i = 0; i < bootinfo.taskmap.count; i++) {60 for (i = 0; i < min3(bootinfo.taskmap.count, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); i++) { 61 61 init.tasks[i].addr = PA2KA(bootinfo.taskmap.tasks[i].addr); 62 62 init.tasks[i].size = bootinfo.taskmap.tasks[i].size;
Note:
See TracChangeset
for help on using the changeset viewer.
