zeta-v2: Call program_vectors for kernel on boot.
authorWill Sowerbutts <will@sowerbutts.com>
Wed, 28 Dec 2016 17:30:14 +0000 (17:30 +0000)
committerWill Sowerbutts <will@sowerbutts.com>
Wed, 28 Dec 2016 17:36:53 +0000 (17:36 +0000)
This fixes a bug which was preventing zeta-v2 from booting.

Kernel/platform-zeta-v2/zeta-v2.s

index 8c7ced3..6b4ed8b 100644 (file)
@@ -135,6 +135,12 @@ init_hardware:
         ld hl,#(RAM_KB-64)             ; 64K for kernel
         ld (_procmem), hl
 
+        ; program vectors for the kernel
+        ld hl, #0
+        push hl
+        call _program_vectors
+        pop hl
+
        ; initialize UART0
         ld a, (_boot_from_rom)          ; do not set the baud rate and other
         or a                            ; serial line parameters if the BIOS