Rev 548 | Rev 689 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 548 | Rev 684 | ||
|---|---|---|---|
| Line 24... | Line 24... | ||
| 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 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/types.h> |
- | |
| 30 | #include <arch/mm/page.h> |
29 | #include <arch/mm/page.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 <arch/types.h> |
|
| 34 | #include <memstr.h> |
35 | #include <memstr.h> |
| 35 | 36 | ||
| 36 | pte_t *PTL0 = NULL; |
37 | pte_t *PTL0 = NULL; |
| 37 | 38 | ||
| 38 | void page_arch_init(void) |
39 | void page_arch_init(void) |
| 39 | { |
40 | { |
| 40 | __address ptl0; |
41 | __address ptl0; |
| - | 42 | ||
| - | 43 | page_operations = &page_pt_operations; |
|
| 41 | 44 | ||
| 42 | ptl0 = frame_alloc(FRAME_KA | FRAME_PANIC, ONE_FRAME); |
45 | ptl0 = frame_alloc(FRAME_KA | FRAME_PANIC, ONE_FRAME); |
| 43 | memsetb(ptl0, FRAME_SIZE, 0); |
46 | memsetb(ptl0, FRAME_SIZE, 0); |
| 44 | 47 | ||
| 45 | SET_PTL0_ADDRESS(KA2PA(ptl0)); |
48 | SET_PTL0_ADDRESS(KA2PA(ptl0)); |