Subversion Repositories HelenOS

Compare Revisions

Regard whitespace Rev 1066 → Rev 1059

/kernel/trunk/arch/ia64/src/ia64.c
41,7 → 41,6
#include <config.h>
#include <userspace.h>
#include <console/console.h>
#include <proc/thread.h>
 
void arch_pre_mm_init(void)
{
73,7 → 72,7
}
 
/** Enter userspace and never return. */
void userspace(uspace_arg_t *uarg)
void userspace(__address entry)
{
psr_t psr;
rsc_t rsc;
91,7 → 90,7
rsc.pl = PL_USER;
rsc.mode = 3; /* eager mode */
 
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);
switch_to_userspace(entry, USTACK_ADDRESS+PAGE_SIZE-ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT), USTACK_ADDRESS, psr.value, rsc.value);
 
while (1) {
;