summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Yedidia <zyedidia@gmail.com>2022-05-09 23:27:57 -0700
committerZachary Yedidia <zyedidia@gmail.com>2022-05-09 23:27:57 -0700
commitd102d184c43aca00b48b31ff9f498b143f0e9a25 (patch)
tree5d907582b4debd0bfbcbfe90d85b1f0805622343
parentd32716164fd3611f99b4cc1099328406a7e5486f (diff)
Use domain 0 and map more devices
-rw-r--r--prog/mmu/mmu.c2
-rw-r--r--vm.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/prog/mmu/mmu.c b/prog/mmu/mmu.c
index 041bb07..4e378ee 100644
--- a/prog/mmu/mmu.c
+++ b/prog/mmu/mmu.c
@@ -23,7 +23,7 @@ int main() {
}
extern char __heap_start__;
- for (unsigned i = 0; i < 256; i++) {
+ for (unsigned i = 0; i < 512; i++) {
vm_map((uintptr_t) &__heap_start__ + page_size * i,
(uintptr_t) &__heap_start__ + page_size * i, 0);
vm_map(0x20000000 + page_size * i, 0x20000000 + page_size * i, 0);
diff --git a/vm.c b/vm.c
index cbca789..50e8201 100644
--- a/vm.c
+++ b/vm.c
@@ -13,7 +13,6 @@ static void init_second_level(pde_t* pde) {
memset(pgtbl, 0, 256 * sizeof(pte_small_t));
pde->addr = (uintptr_t) pgtbl >> 10;
pde->tag = 0b01;
- pde->domain = DOM_MANAGER;
}
static void system_set_cache_control(unsigned reg) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback