Changeset 9f52563 in mainline for arch/ia64/src/ia64.c


Ignore:
Timestamp:
2006-03-17T01:34:36Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8a0b0669
Parents:
5fceec7
Message:

Support for user space threads.

File:
1 edited

Legend:

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

    r5fceec7 r9f52563  
    4242#include <userspace.h>
    4343#include <console/console.h>
     44#include <proc/thread.h>
    4445
    4546void arch_pre_mm_init(void)
     
    7374
    7475/** Enter userspace and never return. */
    75 void userspace(__address entry)
     76void userspace(uspace_arg_t *uarg)
    7677{
    7778        psr_t psr;
     
    9192        rsc.mode = 3;                           /* eager mode */
    9293
    93         switch_to_userspace(entry, USTACK_ADDRESS+PAGE_SIZE-ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT), USTACK_ADDRESS, psr.value, rsc.value);
     94        switch_to_userspace(uarg->uspace_entry, uarg->uspace_stack+PAGE_SIZE-ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT), uarg->uspace_stack, psr.value, rsc.value);
    9495
    9596        while (1) {
Note: See TracChangeset for help on using the changeset viewer.