Subversion Repositories HelenOS-historic

Rev

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

Rev 756 Rev 762
Line 54... Line 54...
54
pte_t *ptl0_create(int flags)
54
pte_t *ptl0_create(int flags)
55
{
55
{
56
    pte_t *src_ptl0, *dst_ptl0;
56
    pte_t *src_ptl0, *dst_ptl0;
57
    ipl_t ipl;
57
    ipl_t ipl;
58
 
58
 
59
    dst_ptl0 = (pte_t *) frame_alloc(FRAME_KA | FRAME_PANIC, ONE_FRAME, NULL);
59
    dst_ptl0 = (pte_t *) frame_alloc(FRAME_KA | FRAME_PANIC, ONE_FRAME, NULL, NULL);
60
 
60
 
61
    if (flags & FLAG_AS_KERNEL) {
61
    if (flags & FLAG_AS_KERNEL) {
62
        memsetb((__address) dst_ptl0, PAGE_SIZE, 0);
62
        memsetb((__address) dst_ptl0, PAGE_SIZE, 0);
63
    } else {
63
    } else {
64
        /*
64
        /*