coco3: make detected hz a C global
authorBrett Gordon <beretta42@gmail.com>
Fri, 9 Oct 2015 05:03:09 +0000 (01:03 -0400)
committerBrett Gordon <beretta42@gmail.com>
Tue, 13 Oct 2015 13:10:41 +0000 (09:10 -0400)
Kernel/platform-coco3/coco3.s

index 826559b..cde88c3 100644 (file)
@@ -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