Rev 689 | Rev 793 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 689 | Rev 760 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
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> |
- | |
32 | #include <mm/frame.h> |
- | |
33 | #include <mm/page.h> |
31 | #include <mm/page.h> |
34 | #include <arch/types.h> |
- | |
35 | #include <memstr.h> |
- | |
36 | - | ||
37 | pte_t *PTL0 = NULL; |
- | |
38 | 32 | ||
39 | void page_arch_init(void) |
33 | void page_arch_init(void) |
40 | { |
34 | { |
41 | __address ptl0; |
- | |
42 | - | ||
43 | page_operations = &page_pt_operations; |
35 | page_operations = &page_pt_operations; |
44 | - | ||
45 | ptl0 = frame_alloc(FRAME_KA | FRAME_PANIC, ONE_FRAME, NULL); |
- | |
46 | memsetb(ptl0, FRAME_SIZE, 0); |
- | |
47 | - | ||
48 | SET_PTL0_ADDRESS(KA2PA(ptl0)); |
- | |
49 | } |
36 | } |