Changeset 48c1ef9 in mainline for arch/ppc64/src/ppc64.c


Ignore:
Timestamp:
2006-05-21T20:38:18Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
040542aa
Parents:
bd55bbb
Message:

port ppc32 changes to ppc64 (raw)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc64/src/ppc64.c

    rbd55bbb r48c1ef9  
    2929#include <arch.h>
    3030#include <arch/boot/boot.h>
    31 #include <arch/console.h>
    3231#include <arch/mm/memory_init.h>
    3332#include <arch/interrupt.h>
    34 #include <mm/frame.h>
     33#include <genarch/fb/fb.h>
     34#include <userspace.h>
     35#include <proc/uarg.h>
    3536
    3637bootinfo_t bootinfo;
     38
     39void 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}
    3751
    3852void arch_pre_mm_init(void)
     
    4357        /* Start decrementer */
    4458        start_decrementer();
    45 
    46         ppc64_console_init();
    4759}
    4860
     
    5062{
    5163        if (config.cpu_active == 1) {
     64                fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.bpp, bootinfo.screen.scanline);   
     65       
    5266                /* Merge all zones to 1 big zone */
    5367                zone_merge_all();
     
    6882}
    6983
     84void 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.