Subversion Repositories HelenOS-historic

Rev

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

Rev 684 Rev 687
Line 29... Line 29...
29
#include <arch/mm/page.h>
29
#include <arch/mm/page.h>
30
#include <genarch/mm/page_pt.h>
30
#include <genarch/mm/page_pt.h>
31
#include <arch/mm/frame.h>
31
#include <arch/mm/frame.h>
32
#include <mm/frame.h>
32
#include <mm/frame.h>
33
#include <mm/page.h>
33
#include <mm/page.h>
-
 
34
#include <mm/asid.h>
34
#include <arch/types.h>
35
#include <arch/types.h>
35
#include <config.h>
36
#include <config.h>
36
#include <func.h>
37
#include <func.h>
37
#include <arch/interrupt.h>
38
#include <arch/interrupt.h>
38
#include <arch/asm.h>
39
#include <arch/asm.h>
Line 58... Line 59...
58
       
59
       
59
        /*
60
        /*
60
         * PA2KA(identity) mapping for all frames until last_frame.
61
         * PA2KA(identity) mapping for all frames until last_frame.
61
         */
62
         */
62
        for (cur = 0; cur < last_frame; cur += FRAME_SIZE)
63
        for (cur = 0; cur < last_frame; cur += FRAME_SIZE)
63
            page_mapping_insert(PA2KA(cur), cur, PAGE_CACHEABLE, KA2PA(dba));
64
            page_mapping_insert(PA2KA(cur), ASID_KERNEL, cur, PAGE_CACHEABLE, KA2PA(dba));
64
 
65
 
65
        exc_register(14, "page_fault", page_fault);
66
        exc_register(14, "page_fault", page_fault);
66
        write_cr3(KA2PA(dba));
67
        write_cr3(KA2PA(dba));
67
    }
68
    }
68
    else {
69
    else {