Changeset 48c1ef9 in mainline for arch/ppc64/src/ppc64.c
- Timestamp:
- 2006-05-21T20:38:18Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 040542aa
- Parents:
- bd55bbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc64/src/ppc64.c
rbd55bbb r48c1ef9 29 29 #include <arch.h> 30 30 #include <arch/boot/boot.h> 31 #include <arch/console.h>32 31 #include <arch/mm/memory_init.h> 33 32 #include <arch/interrupt.h> 34 #include <mm/frame.h> 33 #include <genarch/fb/fb.h> 34 #include <userspace.h> 35 #include <proc/uarg.h> 35 36 36 37 bootinfo_t bootinfo; 38 39 void arch_pre_main(void) 40 { 41 /* Setup usermode */ 42 init.cnt = bootinfo.taskmap.count; 43 44 __u32 i; 45 46 for (i = 0; i < bootinfo.taskmap.count; i++) { 47 init.tasks[i].addr = PA2KA(bootinfo.taskmap.tasks[i].addr); 48 init.tasks[i].size = bootinfo.taskmap.tasks[i].size; 49 } 50 } 37 51 38 52 void arch_pre_mm_init(void) … … 43 57 /* Start decrementer */ 44 58 start_decrementer(); 45 46 ppc64_console_init();47 59 } 48 60 … … 50 62 { 51 63 if (config.cpu_active == 1) { 64 fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.bpp, bootinfo.screen.scanline); 65 52 66 /* Merge all zones to 1 big zone */ 53 67 zone_merge_all(); … … 68 82 } 69 83 84 void userspace(uspace_arg_t *kernel_uarg) 85 { 86 userspace_asm((__address) kernel_uarg->uspace_uarg, (__address) kernel_uarg->uspace_stack + THREAD_STACK_SIZE - SP_DELTA, (__address) kernel_uarg->uspace_entry); 87 88 /* Unreachable */ 89 for (;;) 90 ; 91 }
Note:
See TracChangeset
for help on using the changeset viewer.