diff options
| author | Scott Shawcroft <[email protected]> | 2021-09-22 15:19:02 -0700 |
|---|---|---|
| committer | Scott Shawcroft <[email protected]> | 2021-09-22 15:19:02 -0700 |
| commit | 829f92d00f05167f788375a2a4e0ff5342bb30f7 (patch) | |
| tree | 43118757f38c4649ad78c47b0b3b578653f7d10c /hw/bsp | |
| parent | 2499c9382d4ff0d67106f6dc6cd4a9dfbd0be20e (diff) | |
Trying to setup the mmu
Diffstat (limited to 'hw/bsp')
| -rw-r--r-- | hw/bsp/raspberrypi4/family.c | 24 | ||||
| -rw-r--r-- | hw/bsp/raspberrypi4/family.mk | 3 |
2 files changed, 15 insertions, 12 deletions
diff --git a/hw/bsp/raspberrypi4/family.c b/hw/bsp/raspberrypi4/family.c index b2665f42d..6266d5a35 100644 --- a/hw/bsp/raspberrypi4/family.c +++ b/hw/bsp/raspberrypi4/family.c @@ -28,6 +28,7 @@ #include "board.h" #include "io.h" +#include "mmu.h" //--------------------------------------------------------------------+ // Forward USB interrupt events to TinyUSB IRQ Handler @@ -55,6 +56,7 @@ void board_init(void) gpio_initOutputPinWithPullNone(18); gpio_setPinOutputBool(18, true); gpio_initOutputPinWithPullNone(42); + setup_mmu_flat_map(); // gpio_initOutputPinWithPullNone(23); // gpio_initOutputPinWithPullNone(24); // gpio_initOutputPinWithPullNone(25); @@ -83,17 +85,17 @@ void board_init(void) // gpio_setPinOutputBool(25, true); print(); // gpio_setPinOutputBool(25, false); - while (true) { - // for (size_t i = 0; i < 5; i++) { - for (size_t j = 0; j < 10000000000; j++) { - __asm__("nop"); - } - gpio_setPinOutputBool(42, true); - for (size_t j = 0; j < 10000000000; j++) { - __asm__("nop"); - } - gpio_setPinOutputBool(42, false); - } + // while (true) { + // // for (size_t i = 0; i < 5; i++) { + // for (size_t j = 0; j < 10000000000; j++) { + // __asm__("nop"); + // } + // gpio_setPinOutputBool(42, true); + // for (size_t j = 0; j < 10000000000; j++) { + // __asm__("nop"); + // } + // gpio_setPinOutputBool(42, false); + // } // while (1) uart_update(); } diff --git a/hw/bsp/raspberrypi4/family.mk b/hw/bsp/raspberrypi4/family.mk index 2d5c78d22..1547beee1 100644 --- a/hw/bsp/raspberrypi4/family.mk +++ b/hw/bsp/raspberrypi4/family.mk @@ -18,8 +18,9 @@ CFLAGS += \ SRC_C += \ src/portable/broadcom/synopsys/dcd_synopsys.c \ + $(MCU_DIR)/interrupts.c \ $(MCU_DIR)/io.c \ - $(MCU_DIR)/interrupts.c + $(MCU_DIR)/mmu.c CROSS_COMPILE = aarch64-none-elf- |
