From abad893cde4d62c0cacc8ebf107ed4d734a994b7 Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Fri, 9 Oct 2015 01:03:09 -0400 Subject: [PATCH] coco3: make detected hz a C global --- Kernel/platform-coco3/coco3.s | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Kernel/platform-coco3/coco3.s b/Kernel/platform-coco3/coco3.s index 826559be..cde88c35 100644 --- a/Kernel/platform-coco3/coco3.s +++ b/Kernel/platform-coco3/coco3.s @@ -18,6 +18,7 @@ .globl map_save .globl map_restore .globl _need_resched + .globl _hz ; exported debugging tools .globl _trap_monitor @@ -107,7 +108,7 @@ _irqrestore: ; B holds the data ; KERNEL MEMORY BANK ; ----------------------------------------------------------------------------- .area .data -hz: .db 0 ; Is machine in 50hz? +_hz: .db 0 ; Is machine in 50hz? .area .text @@ -150,7 +151,7 @@ b@ sta ,x+ ldb #$06 ; put Fuzix Kernel back in mmu stb $ffae ; anda #$8 ; mask off 50 hz bit - sta hz ; save for future use + sta _hz ; save for future use ;; continue setup of regs ora #%00000100 ; text @ 9 lines per char row sta $ff98 -- 2.34.1