Subversion Repositories HelenOS-historic

Rev

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

Rev 690 Rev 691
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/page.h>
32
#include <mm/page.h>
33
#include <mm/frame.h>
33
#include <mm/frame.h>
-
 
34
#include <mm/asid.h>
34
#include <arch/interrupt.h>
35
#include <arch/interrupt.h>
35
#include <arch/asm.h>
36
#include <arch/asm.h>
36
#include <config.h>
37
#include <config.h>
37
#include <memstr.h>
38
#include <memstr.h>
38
#include <interrupt.h>
39
#include <interrupt.h>
Line 54... Line 55...
54
 
55
 
55
        /*
56
        /*
56
         * PA2KA(identity) mapping for all frames.
57
         * PA2KA(identity) mapping for all frames.
57
         */
58
         */
58
        for (cur = 0; cur < last_frame; cur += FRAME_SIZE) {
59
        for (cur = 0; cur < last_frame; cur += FRAME_SIZE) {
59
            page_mapping_insert(PA2KA(cur), 0, cur, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba));
60
            page_mapping_insert(PA2KA(cur), ASID_KERNEL, cur, PAGE_CACHEABLE | PAGE_EXEC, KA2PA(dba));
60
        }
61
        }
61
 
62
 
62
        exc_register(14, "page_fault", page_fault);
63
        exc_register(14, "page_fault", page_fault);
63
        write_cr3(KA2PA(dba));
64
        write_cr3(KA2PA(dba));
64
    }
65
    }