Subversion Repositories HelenOS

Rev

Rev 938 | Rev 993 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 938 Rev 962
Line 33... Line 33...
33
#include <arch/barrier.h>
33
#include <arch/barrier.h>
34
#include <arch/asm.h>
34
#include <arch/asm.h>
35
#include <arch/register.h>
35
#include <arch/register.h>
36
#include <arch/types.h>
36
#include <arch/types.h>
37
#include <arch/context.h>
37
#include <arch/context.h>
-
 
38
#include <arch/stack.h>
38
#include <arch/mm/page.h>
39
#include <arch/mm/page.h>
39
#include <mm/as.h>
40
#include <mm/as.h>
40
#include <config.h>
41
#include <config.h>
41
#include <userspace.h>
42
#include <userspace.h>
42
#include <console/console.h>
43
#include <console/console.h>
Line 81... Line 82...
81
    rsc.loadrs = 0;
82
    rsc.loadrs = 0;
82
    rsc.be = false;
83
    rsc.be = false;
83
    rsc.pl = PL_USER;
84
    rsc.pl = PL_USER;
84
    rsc.mode = 3;               /* eager mode */
85
    rsc.mode = 3;               /* eager mode */
85
 
86
 
86
    switch_to_userspace(entry, USTACK_ADDRESS+PAGE_SIZE-1, USTACK_ADDRESS, psr.value, rsc.value);
87
    switch_to_userspace(entry, USTACK_ADDRESS+PAGE_SIZE-ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT), USTACK_ADDRESS, psr.value, rsc.value);
87
 
88
 
88
    while (1) {
89
    while (1) {
89
        ;
90
        ;
90
    }
91
    }
91
}
92
}