aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorThomas Albers Raviola <thomas@thomaslabs.org>2024-12-02 21:43:04 +0100
committerThomas Albers Raviola <thomas@thomaslabs.org>2024-12-02 21:43:59 +0100
commit9cd14efb76a4ddbcd013f44d50dc1ff93d56c4ca (patch)
tree6784edf3de941c8f7200a133d2f086bcfc08e9f2 /src/main.c
parent37bc2b32d3492a86d87e3642ce48c753264c795a (diff)
Move bootloader to payload
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/main.c b/src/main.c
index fe3da0e..aff1329 100644
--- a/src/main.c
+++ b/src/main.c
@@ -135,42 +135,6 @@ main(void)
// Enable interrupts
EI;
- // Boot menu
- addstr("1) Programming mode\r\n");
- addstr("2) Normal boot (default)\r\n");
- addstr("3) Boot address 0xC000\r\n");
-
- for (int i = 5; i > 0; --i) {
- addch('\r');
- addch(i + '0');
-
- while (!tick) {
- u8 keys = poll_keys();
-
- if (!(keys & KEY2)) {
- addch('\r');
- bootloader();
- }
-
- if (!(keys & KEY3)) {
- goto boot;
- }
-
- if (!(keys & KEY4)) {
- // Definitely safe looking C code ...
- void (*ptr)(void) = (void (*)(void))0xC000;
- ptr();
- }
- }
-
- DI;
- tick = 0;
- EI;
- }
-
- addch('\r');
-
-boot:
addstr("Starting system ...\r\n");
// Load interrupt vector
port_b_ctrl = ISR_ADDRESS(port_b_isr_ptr);