Rev 195 | Rev 235 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 195 | Rev 205 | ||
---|---|---|---|
Line 70... | Line 70... | ||
70 | * already-initialized paging information from the bootstrap |
70 | * already-initialized paging information from the bootstrap |
71 | * processor and adjusts it to fulfill its needs. |
71 | * processor and adjusts it to fulfill its needs. |
72 | */ |
72 | */ |
73 | 73 | ||
74 | dba = frame_alloc(FRAME_KA | FRAME_PANIC); |
74 | dba = frame_alloc(FRAME_KA | FRAME_PANIC); |
75 | memcopy((void *)dba,(void *)bootstrap_dba , PAGE_SIZE); //swaped |
75 | memcpy((void *)dba, (void *)bootstrap_dba , PAGE_SIZE); |
76 | write_cr3(KA2PA(dba)); |
76 | write_cr3(KA2PA(dba)); |
77 | } |
77 | } |
78 | 78 | ||
79 | paging_on(); |
79 | paging_on(); |
80 | } |
80 | } |