Changeset e692a27 in mainline for arch/ppc32/src/ppc32.c


Ignore:
Timestamp:
2006-04-22T22:35:37Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cf85e24c
Parents:
c118940
Message:

ppc32: initial userspace support

File:
1 edited

Legend:

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

    rc118940 re692a27  
    3333#include <arch/mm/memory_init.h>
    3434#include <arch/interrupt.h>
     35#include <userspace.h>
     36#include <proc/uarg.h>
    3537
    3638bootinfo_t bootinfo;
     
    4648        ppc32_console_init();
    4749        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;
    4855}
    4956
     
    6572}
    6673
     74void userspace(uspace_arg_t *kernel_uarg)
     75{
     76        userspace_asm((__address) kernel_uarg->uspace_uarg, (__address) kernel_uarg->uspace_stack, (__address) kernel_uarg->uspace_entry);
     77       
     78        /* Unreachable */
     79        for (;;)
     80                ;
     81}
Note: See TracChangeset for help on using the changeset viewer.