trap/platform rename: Make more consistent use of platform_ naming
authorAlan Cox <alan@linux.intel.com>
Fri, 30 Mar 2018 19:31:16 +0000 (20:31 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 30 Mar 2018 19:31:16 +0000 (20:31 +0100)
81 files changed:
Kernel/include/kernel.h
Kernel/lib/z80fixedbank.s
Kernel/lowlevel-6502.s
Kernel/lowlevel-65c816.s
Kernel/lowlevel-6809.s
Kernel/lowlevel-68hc11.s
Kernel/lowlevel-8086.S
Kernel/lowlevel-z80-banked.s
Kernel/lowlevel-z80.s
Kernel/platform-68hc11test/p68hc11.s
Kernel/platform-68hc11test/tricks.s
Kernel/platform-appleiie/appleii.s
Kernel/platform-appleiie/tricks.s
Kernel/platform-atarist/p68000.S
Kernel/platform-atarist/tricks.S
Kernel/platform-coco2/coco2.s
Kernel/platform-coco2/tricks.s
Kernel/platform-coco2cart/coco2.s
Kernel/platform-coco2cart/tricks.s
Kernel/platform-coco3/coco3.s
Kernel/platform-coco3/tricks.s
Kernel/platform-dragon-nx32/dragon.s
Kernel/platform-dragon-nx32/tricks.s
Kernel/platform-dragon/p6809.s
Kernel/platform-dragon/tricks.s
Kernel/platform-ibmpc/ibmpc.S
Kernel/platform-ibmpc/tricks.S
Kernel/platform-micropack/tricks.s
Kernel/platform-micropack/z80pack.s
Kernel/platform-msp430fr5969/crt0.S
Kernel/platform-msx1/msx1.s
Kernel/platform-msx1/tricks.s
Kernel/platform-msx2/msx2.s
Kernel/platform-msx2/tricks.s
Kernel/platform-mtx/mtx.s
Kernel/platform-multicomp09/multicomp09.s
Kernel/platform-multicomp09/tricks.s
Kernel/platform-n8vem-mark4/monitor.s
Kernel/platform-nc100/bootblock.s
Kernel/platform-nc100/nc100.s
Kernel/platform-nc100/tricks.s
Kernel/platform-p112/monitor.s
Kernel/platform-p112/p112.s
Kernel/platform-pcw8256/pcw8256.s
Kernel/platform-pcw8256/tricks.s
Kernel/platform-pdp11/pdp11.S
Kernel/platform-pdp11/tricks.S
Kernel/platform-plus3/plus3.s
Kernel/platform-plus3/tricks.s
Kernel/platform-px4plus/px4plus.s
Kernel/platform-px4plus/tricks.s
Kernel/platform-socz80/crt0.s
Kernel/platform-socz80/socz80.s
Kernel/platform-socz80/tricks.s
Kernel/platform-tgl6502/tgl6502.s
Kernel/platform-tgl6502/tricks.s
Kernel/platform-trs80/trs80.s
Kernel/platform-ubee/ubee.s
Kernel/platform-v65/tricks.s
Kernel/platform-v65/v65.s
Kernel/platform-v65c816-big/v65.s
Kernel/platform-v65c816/v65.s
Kernel/platform-v68-banked/p68000.S
Kernel/platform-v68-banked/tricks.S
Kernel/platform-v68-softmmu/p68000.S
Kernel/platform-v68-softmmu/tricks.S
Kernel/platform-v68/p68000.S
Kernel/platform-v68/tricks.S
Kernel/platform-z80pack-lite/tricks.s
Kernel/platform-z80pack-lite/z80pack.s
Kernel/platform-z80pack/z80pack.s
Kernel/platform-z80pack32/tricks.s
Kernel/platform-z80pack32/z80pack.s
Kernel/platform-zeta-v2/monitor.s
Kernel/platform-zeta-v2/tricks.s
Kernel/platform-zeta-v2/zeta-v2.s
Kernel/platform-zx128/tricks.s
Kernel/platform-zx128/zx128.s
Kernel/process.c
Kernel/syscall_other.c
Kernel/tty.c

index 144817f..889a6c0 100644 (file)
@@ -762,7 +762,6 @@ struct selmap {
 /* functions in common memory */
 
 /* debug functions */
-extern void trap_monitor(void);
 extern void idump(void);
 
 /* platform/device.c */
@@ -993,21 +992,26 @@ extern int pagemap_alloc(ptptr p);
 extern int pagemap_realloc(usize_t c, usize_t d, usize_t s);
 extern usize_t pagemap_mem_used(void);
 extern void map_init(void);
+
+/* Platform interfaces */
+
 #ifndef platform_discard
 extern void platform_discard(void);
 #endif
 extern void platform_idle(void);
-extern uint8_t rtc_secs(void);
-extern void trap_reboot(void);
+extern uint8_t platform_rtc_secs(void);
+extern int platform_rtc_read(void);
+extern int platform_rtc_write(void);
+extern void platform_reboot(void);
+extern void platform_monitor(void);
 extern uint8_t platform_param(char *p);
 extern void platform_switchout(void);
+extern void platform_interrupt(void);
 
 extern irqflags_t __hard_di(void);
 extern void __hard_irqrestore(irqflags_t f);
 extern void __hard_ei(void);
 
-extern int platform_rtc_read(void);
-extern int platform_rtc_write(void);
 
 #ifndef CONFIG_SOFT_IRQ
 #define di __hard_di
@@ -1017,7 +1021,6 @@ extern int platform_rtc_write(void);
 
 /* Will need a uptr_t eventually */
 extern uaddr_t ramtop;      /* Note: ramtop must be in common in some cases */
-extern void platform_interrupt(void);
 extern void invalidate_cache(uint16_t page);
 extern void flush_cache(ptptr p);
 
index 0c3d693..e39369c 100644 (file)
@@ -12,7 +12,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl trap_illegal
         .globl _platform_switchout
         .globl _switchin
@@ -69,7 +69,7 @@ _platform_switchout:
         call _switchin
 
         ; we should never get here
-        call _trap_monitor
+        call _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13, 10, 0
@@ -188,7 +188,7 @@ switchinfail:
         ld hl, #badswitchmsg
         call outstring
        ; something went wrong and we didn't switch in what we asked for
-        jp _trap_monitor
+        jp _platform_monitor
 
 fork_proc_ptr: .dw 0 ; (C type is struct p_tab *) -- address of child process p_tab entry
 
index 2ed0274..f5d4c46 100644 (file)
@@ -25,7 +25,7 @@
        .import platform_doexec
        .import _inint
        .import CTemp
-       .import _trap_monitor
+       .import _platform_monitor
 
        .include "platform/zeropage.inc"
        .include "platform/kernel.def"
@@ -135,7 +135,7 @@ nmi_handler:
        lda #<nmi_trap
        jsr outstring
 nmi_stop:
-       jmp _trap_monitor
+       jmp _platform_monitor
 nmi_trap:
        .byte "NMI!", 0
 
index d98c5f4..fe2a79f 100644 (file)
@@ -42,7 +42,7 @@
        .import _platform_interrupt
        .import platform_doexec
        .import _inint
-       .import _trap_monitor
+       .import _platform_monitor
        .import _switchout
 
        .import push0
@@ -833,7 +833,7 @@ itrap:
        ldx     #>itrap_msg
 outfail:
        jsr     outstring
-       jmp     _trap_monitor
+       jmp     _platform_monitor
 itrap_msg:
        .byte   "itrap!", 0
 
@@ -909,7 +909,7 @@ nmi_handler:
        lda #<nmi_trap
        jsr outstring
 nmi_stop:
-       jmp _trap_monitor
+       jmp _platform_monitor
 nmi_trap:
        .byte "NMI!", 0
 
@@ -917,7 +917,7 @@ emulation:
        ldx #>emu_trap
        lda #<emu_trap
        jsr outstring
-       jmp _trap_monitor
+       jmp _platform_monitor
 emu_trap:
        .byte "EM!", 0
 
index edce99d..385ae8e 100644 (file)
@@ -50,7 +50,7 @@
        .globl interrupt_handler
 
         ; imported symbols
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl _unix_syscall
         .globl outstring
         .globl kstack_top
@@ -382,7 +382,7 @@ illegalmsg: .ascii "[trap_illegal]"
 trap_illegal:
            ldx #illegalmsg
            jsr outstring
-           jsr _trap_monitor
+           jsr _platform_monitor
 
 dpsmsg:            .ascii "[dispsig]"
             .db 13,10,0
@@ -397,7 +397,7 @@ nmi_handler:
        jsr map_kernel
         ldx #nmimsg
        jsr outstring
-        jsr _trap_monitor
+        jsr _platform_monitor
 
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -472,7 +472,7 @@ num:    adda #0x30 ; start at '0' (0x30='0')
 div0:
        ldx     #div0msg
        jsr     outstring
-       jsr     _trap_monitor
+       jsr     _platform_monitor
 div0msg        .ascii  'Divby0'
        .db     13,10,0
 ;
index 351a0e9..91a52b5 100644 (file)
@@ -165,7 +165,7 @@ nmi_handler:
        jsr map_kernel
        ldx #nmimsg
        jsr outstring
-       jsr trap_monitor
+       jsr platform_monitor
 
 nmimsg:
        .ascii "[NMI]"
index 131b62d..6e08d33 100644 (file)
@@ -475,7 +475,7 @@ __ashrsi3:
 
 /* FIXME */
 abort:
-       jmp trap_monitor
+       jmp platform_monitor
 
        .data
 
index 2fbef6f..fbcc2cc 100644 (file)
@@ -49,7 +49,7 @@
        .globl _out
 
         ; imported symbols
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl _unix_syscall
         .globl outstring
         .globl kstack_top
@@ -327,7 +327,7 @@ illegalmsg: .ascii "[trap_illegal]"
 trap_illegal:
         ld hl, #illegalmsg
         call outstring
-        call _trap_monitor
+        call _platform_monitor
 
 dpsmsg: .ascii "[dispsig]"
         .db 13, 10, 0
@@ -340,7 +340,7 @@ nmi_handler:
        call map_kernel
         ld hl, #nmimsg
         call outstring
-        jp _trap_monitor
+        jp _platform_monitor
 
 ;
 ;      Interrupt handler. Not quite the same as syscalls, we need to
index db3cfac..8d74a84 100644 (file)
@@ -51,7 +51,7 @@
        .globl mmu_irq_ret
 
         ; imported symbols
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl _unix_syscall
         .globl outstring
         .globl kstack_top
@@ -341,7 +341,7 @@ trap_illegal:
         ld hl, #illegalmsg
 traphl:
         call outstring
-        call _trap_monitor
+        call _platform_monitor
 
 nmimsg: .ascii "[NMI]"
         .db 13,10,0
index 1532dc2..6900fea 100644 (file)
@@ -18,8 +18,8 @@
        .globl outchar
 
         ; exported debugging tools
-        .globl trap_monitor
-        .globl trap_reboot
+        .globl platform_monitor
+        .globl platform_reboot
 
        include "cpu.def"
        include "eeprom.def"
@@ -41,11 +41,11 @@ savedbank:
        .word 0
 
        .sect .text
-trap_monitor:
+platform_monitor:
        sei
-       bra trap_monitor
+       bra platform_monitor
 
-trap_reboot:
+platform_reboot:
        jmp reboot
 
 outchar:
@@ -144,7 +144,7 @@ doexec:
 ;      If this returns we should probably do an exit call or something
 ;      FIXME
 ;
-       jmp trap_monitor
+       jmp platform_monitor
 
 
 ;
index e94cebe..caabd19 100644 (file)
@@ -10,7 +10,7 @@
         .globl newproc
         .globl chksigs
         .globl getproc
-        .globl trap_monitor
+        .globl platform_monitor
         .globl inint
         .globl platform_switchout
         .globl switchin
@@ -105,7 +105,7 @@ slow_path:
         jsr getproc
         jsr switchin
         ; we should never get here
-        jsr trap_monitor
+        jsr platform_monitor
 
 badswitchmsg:
        .ascii "switchin: FAIL"
@@ -179,7 +179,7 @@ switchinfail:
         ldx #badswitchmsg
         jsr outstring
        ; something went wrong and we didn't switch in what we asked for
-        jmp trap_monitor
+        jmp platform_monitor
 
 fork_proc_ptr: .word 0 ; (C type is struct p_tab *) -- address of child process p_tab entry
 
index c8fe373..0d7ff78 100644 (file)
@@ -18,8 +18,8 @@
            .export _hd_map
 
             ; exported debugging tools
-            .export _trap_monitor
-           .export _trap_reboot
+            .export _platform_monitor
+           .export _platform_reboot
             .export outchar
            .export ___hard_di
            .export ___hard_ei
@@ -62,11 +62,11 @@ syscall          =  $FE
 ;
 ;      Fixme - can we get back to the AppleII monitor ?
 ;
-_trap_monitor:
-           jmp _trap_monitor
+_platform_monitor:
+           jmp _platform_monitor
 
-_trap_reboot:
-           jmp _trap_reboot    ; FIXME: original ROM map and jmp
+_platform_reboot:
+           jmp _platform_reboot        ; FIXME: original ROM map and jmp
 
 ___hard_di:
            php
index d5a5f5a..4385a37 100644 (file)
@@ -7,7 +7,7 @@
        .export _ramtop
 
        .import _chksigs
-       .import _trap_monitor
+       .import _platform_monitor
 
        .import map_kernel
        .import _swapper
@@ -64,7 +64,7 @@ _platform_switchout:
         jsr _getproc
         jsr _switchin
         ; we should never get here
-        jsr _trap_monitor
+        jsr _platform_monitor
 
 badswitchmsg: .byte "_switchin: FAIL"
        .byte 13, 10, 0
@@ -198,7 +198,7 @@ switchinfail:
        ldx     #>badswitchmsg
         jsr outstring
        ; something went wrong and we didn't switch in what we asked for
-        jmp _trap_monitor
+        jmp _platform_monitor
 
 
 ;
index 76bf8b7..ba936dd 100644 (file)
@@ -4,22 +4,21 @@
  *     We need pretty much nothing here as we don't do page mapping.
  */
 
-               .globl _trap_reboot
                .globl init_early
                .globl init_hardware
                .globl _program_vectors
                .globl outchar
-               .globl _trap_reboot,_trap_monitor
+               .globl _platform_reboot,_platform_monitor
                .globl _scroll_down,_scroll_up,_plot_char,_clear_lines
                .globl _clear_across,_cursor_on,_cursor_off
                .globl _fontdata_8x8, _screenbase
                .globl _uarea_block
 
 .mri 1
-_trap_reboot:
-_trap_monitor:
+_platform_reboot:
+_platform_monitor:
            or #0700,sr
-           bra _trap_monitor
+           bra _platform_monitor
 init_early:
            lea.l _uarea_block,a5       ; udata ptr
             rts
index 70d010d..0e73c14 100644 (file)
@@ -29,7 +29,7 @@ _platform_switchout:
         bsr _switchin
 
         ; we should never get here
-        bra _trap_monitor
+        bra _platform_monitor
 
 badswitchmsg: ascii "_switchin: FAIL"
             byte 13,10,0
@@ -67,4 +67,4 @@ switchinfail:
         lea badswitchmsg,a0
         bsr outstring
        ; something went wrong and we didn't switch in what we asked for
-        bra _trap_monitor
+        bra _platform_monitor
index b1bdcfa..9dfcc41 100644 (file)
@@ -29,8 +29,8 @@
        .globl _vtoutput
 
        ; exported debugging tools
-       .globl _trap_monitor
-       .globl _trap_reboot
+       .globl _platform_monitor
+       .globl _platform_reboot
        .globl outchar
        .globl ___hard_di
        .globl ___hard_ei
@@ -89,16 +89,16 @@ init_hardware:
 
         .area .common
 
-_trap_reboot:
+_platform_reboot:
        orcc #0x10
        clr 0xFFBE
        lda #0x7e
        sta 0x0071              ; in case IRQ left it looking valid
        jmp [0xFFFE]
 
-_trap_monitor:
+_platform_monitor:
        orcc #0x10
-       bra _trap_monitor
+       bra _platform_monitor
 
 ___hard_di:
        tfr cc,b                ; return the old irq state
index 5974993..379ea38 100644 (file)
@@ -8,7 +8,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl _inint
         .globl map_kernel
         .globl map_process
@@ -51,7 +51,7 @@ _platform_switchout:
         jsr _getproc
         jsr _switchin
         ; we should never get here
-        jsr _trap_monitor
+        jsr _platform_monitor
 
 badswitchmsg:
        .ascii "_switchin: FAIL"
@@ -114,7 +114,7 @@ switchinfail:
         ldx #badswitchmsg
         jsr outstring
        ; something went wrong and we didn't switch in what we asked for
-        jmp _trap_monitor
+        jmp _platform_monitor
 
        .area .data
 
index a0c967e..7983561 100644 (file)
@@ -35,8 +35,8 @@
        .globl ___hard_irqrestore
 
        ; exported debugging tools
-       .globl _trap_monitor
-       .globl _trap_reboot
+       .globl _platform_monitor
+       .globl _platform_reboot
        .globl outchar
 
        include "kernel.def"
@@ -93,16 +93,16 @@ init_hardware:
 
         .area .common
 
-_trap_reboot:
+_platform_reboot:
        orcc #0x10
        clr 0xFFBE
        lda #0x7e
        sta 0x0071              ; in case IRQ left it looking valid
        jmp [0xFFFE]
 
-_trap_monitor:
+_platform_monitor:
        orcc #0x10
-       bra _trap_monitor
+       bra _platform_monitor
 
 ___hard_di:
        tfr cc,b                ; return the old irq state
index b5ca7b5..ab47a48 100644 (file)
@@ -8,7 +8,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl _inint
         .globl map_kernel
         .globl map_process
@@ -55,7 +55,7 @@ _platform_switchout:
         jsr _getproc
         jsr _switchin
         ; we should never get here
-        jsr _trap_monitor
+        jsr _platform_monitor
 
 badswitchmsg:
        .ascii "_switchin: FAIL"
@@ -133,7 +133,7 @@ switchinfail:
         ldx #badswitchmsg
         jsr outstring
        ; something went wrong and we didn't switch in what we asked for
-        jmp _trap_monitor
+        jmp _platform_monitor
 
        .area .data
 
index 892b722..b8dfd34 100644 (file)
@@ -26,8 +26,8 @@
            .globl blkdev_unrawflg
 
             ; exported debugging tools
-            .globl _trap_monitor
-           .globl _trap_reboot
+            .globl _platform_monitor
+           .globl _platform_reboot
             .globl outchar
            .globl ___hard_di
            .globl ___hard_ei
@@ -69,11 +69,11 @@ _need_resched
        .db 0           ; scheduler flag
 
 
-_trap_monitor:
+_platform_monitor:
            orcc #0x10
-           bra _trap_monitor
+           bra _platform_monitor
 
-_trap_reboot:
+_platform_reboot:
        orcc    #0x10           ; turn off interrupts
        lda     #0x38           ; put RAM block in memory
        sta     0xffa8          ;
index 84c45d1..a212a36 100644 (file)
@@ -7,7 +7,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
        .globl _get_common
        .globl _swap_finish
 
@@ -54,7 +54,7 @@ _platform_switchout:
         jsr    _getproc        ; X = next process ptr
         jsr    _switchin       ; and switch it in
         ; we should never get here
-        jsr    _trap_monitor
+        jsr    _platform_monitor
 
 
 badswitchmsg:
@@ -145,7 +145,7 @@ switchinfail:
         ldx    #badswitchmsg
         jsr    outstring
        ;; something went wrong and we didn't switch in what we asked for
-        jmp    _trap_monitor
+        jmp    _platform_monitor
 
 
 ;;;
index 4cde363..4471361 100644 (file)
@@ -25,8 +25,8 @@
        .globl _vtoutput
 
        ; exported debugging tools
-       .globl _trap_monitor
-       .globl _trap_reboot
+       .globl _platform_monitor
+       .globl _platform_reboot
        .globl outchar
        .globl ___hard_di
        .globl ___hard_ei
@@ -97,15 +97,15 @@ init_hardware:
 
             .area .common
 
-_trap_reboot:
+_platform_reboot:
            orcc #0x10
            clr 0xFFBE
            clr 0x0071
            jmp [0xFFFE]
 
-_trap_monitor:
+_platform_monitor:
            orcc #0x10
-           bra _trap_monitor
+           bra _platform_monitor
 
 ___hard_di:
            tfr cc,b            ; return the old irq state
index fc50984..3cfb793 100644 (file)
@@ -7,7 +7,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl _inint
         .globl map_kernel
         .globl map_process
@@ -64,7 +64,7 @@ stash:        ldd ,x++
         jsr _getproc
         jsr _switchin
         ; we should never get here
-        jsr _trap_monitor
+        jsr _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13
@@ -142,7 +142,7 @@ switchinfail:
         ldx #badswitchmsg
         jsr outstring
        ; something went wrong and we didn't switch in what we asked for
-        jmp _trap_monitor
+        jmp _platform_monitor
 
        .area .data
 
index b62d4d7..e767563 100644 (file)
@@ -17,8 +17,8 @@
            .globl _need_resched
 
             ; exported debugging tools
-            .globl _trap_monitor
-            .globl _trap_reboot
+            .globl _platform_monitor
+            .globl _platform_reboot
             .globl outchar
            .globl ___hard_di
            .globl ___hard_ei
 
             .area .common
 
-_trap_reboot:
-_trap_monitor:
+_platform_reboot:
+_platform_monitor:
            cwai #0
-           bra _trap_monitor
+           bra _platform_monitor
 
 ___hard_di:
            tfr cc,b            ; return the old irq state
index c68e544..ac22db5 100644 (file)
@@ -7,7 +7,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl _inint
         .globl _switchout
         .globl _switchin
@@ -53,7 +53,7 @@ _switchout:
         jsr _getproc
         jsr _switchin
         ; we should never get here
-        jsr _trap_monitor
+        jsr _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13
@@ -91,7 +91,7 @@ switchinfail:
         ldx #badswitchmsg
         jsr outstring
        ; something went wrong and we didn't switch in what we asked for
-        jmp _trap_monitor
+        jmp _platform_monitor
 
        .area .data
 fork_proc_ptr: .dw 0 ; (C type is struct p_tab *) -- address of child process p_tab entry
index 8c1c09a..c1b8a85 100644 (file)
@@ -20,8 +20,8 @@ istack_top:
        .global init_early
        .global init_hardware
        .global program_vectors
-       .global trap_monitor
-       .global trap_reboot
+       .global platform_monitor
+       .global platform_reboot
        .global kernel_ds
 
        .global bioshd_param
@@ -45,9 +45,9 @@ init_hardware:
        ret
 program_vectors:
        ret
-trap_monitor:
-trap_reboot:
-       jmp trap_monitor
+platform_monitor:
+platform_reboot:
+       jmp platform_monitor
 
 /*
  *     Interrupt and trap handlers. The 8086 doesn't have real protection
index a0e4897..a4f63e2 100644 (file)
@@ -82,7 +82,7 @@ platform_switchout:
        call getproc
        push %ax
        call switchin
-       jmp trap_monitor
+       jmp platform_monitor
 
 switchin:
        /* We can trash registers here because we'll restore them
@@ -118,7 +118,7 @@ switchfail:
        call  outaxhex
        mov $badswitchmsg,ax
        calloutstring           
-       jmp _trap_monitor
+       jmp _platform_monitor
 dofork:
        pushw %bp
        movw %sp,%bp
index 5cd15b0..a3cfa36 100644 (file)
@@ -6,7 +6,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl trap_illegal
         .globl _platform_switchout
         .globl _switchin
@@ -53,7 +53,7 @@ _platform_switchout:
         call _switchin
 
         ; we should never get here
-        call _trap_monitor
+        call _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13, 10, 0
@@ -153,7 +153,7 @@ switchinfail:
         ld hl, #badswitchmsg
         call outstring
        ; something went wrong and we didn't switch in what we asked for
-        jp _trap_monitor
+        jp _platform_monitor
 
 fork_proc_ptr: .dw 0 ; (C type is struct p_tab *) -- address of child process p_tab entry
 
index 42bbadd..6ce4599 100644 (file)
@@ -28,8 +28,8 @@
            .globl _curbank
 
             ; exported debugging tools
-            .globl _trap_monitor
-            .globl _trap_reboot
+            .globl _platform_monitor
+            .globl _platform_reboot
             .globl outchar
 
             ; imported symbols
 ; -----------------------------------------------------------------------------
             .area _COMMONMEM
 
-_trap_monitor:
+_platform_monitor:
            ld a, #128
            out (29), a
 platform_interrupt_all:
            ret
 
-_trap_reboot:
+_platform_reboot:
            ld a, #1
            out (29), a
 
index 9fde13d..f3f5366 100644 (file)
@@ -8,13 +8,13 @@
 .globl init_early
 .globl init_hardware
 
-.globl trap_reboot
-.globl trap_monitor
+.globl platform_reboot
+.globl platform_monitor
 proc poweron
        mov.w #(WDTPW | WDTHOLD), &WDTCTL               ; Disable watchdog
 
-trap_reboot:
-trap_monitor:
+platform_reboot:
+platform_monitor:
        dint
 
        ; Copy the startup code out of high rom and into its execution address.
@@ -26,9 +26,9 @@ trap_monitor:
        jnz 1b
 
        ; Go to the real startup code.
-       br #trap_reboot_high
+       br #platform_reboot_high
 
-proc trap_reboot_high
+proc platform_reboot_high
        mov.b #CSKEY>>8, &CSCTL0_H                      ; Unlock clock registers
        mov.w #DCOFSEL_3 | DCORSEL, &CSCTL1             ; DCO to 8MHz
        ; ACLK = VLO; SMCLK = MCLK = DCO
index 5fc2d91..7c4f7d7 100644 (file)
@@ -21,7 +21,7 @@
            .globl _vtinit
 
             ; exported debugging tools
-            .globl _trap_monitor
+            .globl _platform_monitor
             .globl outchar
 
             ; imported symbols
@@ -30,7 +30,7 @@
 
             .globl _tty_inproc
             .globl unix_syscall_entry
-            .globl _trap_reboot
+            .globl _platform_reboot
            .globl nmi_handler
            .globl null_handler
 
@@ -69,12 +69,12 @@ tm_stack:
 tm_stack_top:
 
 ; Ideally return to any debugger/monitor
-_trap_monitor:
+_platform_monitor:
            di
            halt
 
 
-_trap_reboot:
+_platform_reboot:
 ;FIXME: TODO
            di
            halt
index f3b0d73..52a3367 100644 (file)
@@ -6,7 +6,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl trap_illegal
         .globl _platform_switchout
         .globl _switchin
@@ -67,7 +67,7 @@ _platform_switchout:
         call _switchin
 
         ; we should never get here
-        call _trap_monitor
+        call _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13, 10, 0
@@ -142,7 +142,7 @@ switchinfail:
         ld hl, #badswitchmsg
         call outstring
        ; something went wrong and we didn't switch in what we asked for
-        jp _trap_monitor
+        jp _platform_monitor
 
 fork_proc_ptr: .dw 0 ; (C type is struct p_tab *) -- address of child process p_tab entry
 
index 6a3c019..c828026 100644 (file)
            .globl _vtinit
 
             ; exported debugging tools
-            .globl _trap_monitor
+            .globl _platform_monitor
             .globl outchar
 
             .globl _tty_inproc
             .globl unix_syscall_entry
-            .globl _trap_reboot
+            .globl _platform_reboot
            .globl nmi_handler
            .globl null_handler
 
@@ -67,12 +67,12 @@ _bufpool:
             .area _COMMONMEM
 
 ; Ideally return to any debugger/monitor
-_trap_monitor:
+_platform_monitor:
            di
            halt
 
 
-_trap_reboot:
+_platform_reboot:
 ;FIXME: TODO
            di
            halt
index c876037..c60fa07 100644 (file)
@@ -6,7 +6,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl trap_illegal
         .globl _platform_switchout
         .globl _switchin
@@ -57,7 +57,7 @@ _platform_switchout:
         call _switchin
 
         ; we should never get here
-        call _trap_monitor
+        call _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13, 10, 0
@@ -120,7 +120,7 @@ switchinfail:
         ld hl, #badswitchmsg
         call outstring
        ; something went wrong and we didn't switch in what we asked for
-        jp _trap_monitor
+        jp _platform_monitor
 
 fork_proc_ptr: .dw 0 ; (C type is struct p_tab *) -- address of child process p_tab entry
 
index 64a8bd0..0df83bc 100644 (file)
@@ -23,8 +23,8 @@
            .globl _irqvector
 
             ; exported debugging tools
-            .globl _trap_monitor
-            .globl _trap_reboot
+            .globl _platform_monitor
+            .globl _platform_reboot
             .globl outchar
 
             ; imported symbols
@@ -67,11 +67,11 @@ intvectors:
            .dw trace_int       ; can be used for CPU tracing etc
            .dw serial_int      ; we don't use the vector mod functions
 
-_trap_monitor:
+_platform_monitor:
            di
            halt
 
-_trap_reboot:
+_platform_reboot:
            di
            xor a
            out (0),a           ; ROM mode, we are in common so survive
index 6b5dc68..3d7b113 100644 (file)
@@ -79,8 +79,8 @@
        .globl curr_tr
 
        ; exported debugging tools
-        .globl _trap_monitor
-       .globl _trap_reboot
+        .globl _platform_monitor
+       .globl _platform_reboot
         .globl outchar
        .globl ___hard_di
        .globl ___hard_ei
@@ -141,13 +141,13 @@ _usr_mmu_map
        .db     0,1,2,3,4,5,6,7 ; mmu registers 0-7
 
 
-_trap_monitor:
+_platform_monitor:
        orcc    #0x10
-       bra     _trap_monitor
+       bra     _platform_monitor
 
-_trap_reboot:
+_platform_reboot:
        orcc    #0x10           ; turn off interrupts
-        bra     _trap_reboot    ; [NAC HACK 2016May07] endless loop
+        bra     _platform_reboot    ; [NAC HACK 2016May07] endless loop
 
 
         lda    #0x38           ; put RAM block in memory
index dc719cb..c9a8aa8 100644 (file)
@@ -7,7 +7,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl _krn_mmu_map
         .globl _usr_mmu_map
        .globl curr_tr
@@ -55,7 +55,7 @@ _platform_switchout:
         jsr    _getproc        ; X = next process ptr
         jsr    _switchin       ; and switch it in
         ; we should never get here
-        jsr    _trap_monitor
+        jsr    _platform_monitor
 
 
 badswitchmsg:
@@ -124,7 +124,7 @@ switchinfail:
         ldx    #badswitchmsg
         jsr    outstring
        ;; something went wrong and we didn't switch in what we asked for
-        jmp    _trap_monitor
+        jmp    _platform_monitor
 
 
 ;;;
index de04c78..bf9bca7 100644 (file)
@@ -2,8 +2,8 @@
 
                 .module monitor
                 .include "kernel.def"
-                .globl _trap_monitor
-               .globl _trap_reboot
+                .globl _platform_monitor
+               .globl _platform_reboot
                 .globl map_kernel
 
 ; -----------------------------------------------------------------------------
@@ -12,7 +12,7 @@
                 .include "../lib/monitor-z80.s"
 
                 .area _COMMONMEM ; just a stub goes in common memory
-_trap_monitor:
+_platform_monitor:
                 di
                 call map_kernel
                 jp monitor_entry
@@ -25,7 +25,7 @@ _trap_monitor:
                 .globl outhl
 
                 .area _COMMONMEM
-_trap_monitor:  di
+_platform_monitor:  di
                 call outnewline
                 ; just dump a few words from the stack
                 ld b, #50
@@ -37,5 +37,5 @@ stacknext:      pop hl
                 halt
 .endif
 
-_trap_reboot:  ; TODO
-               jr _trap_monitor
+_platform_reboot:      ; TODO
+               jr _platform_monitor
index b4222b5..b2b7aea 100644 (file)
@@ -1,5 +1,5 @@
 ;
-;      Boot blocks for UZI+ on the NC100
+;      Boot blocks for FUZIX on the NC100
 ;
 ;
 ;      FIXME: we need a valid NMI vector in the low 0x100 at all times
index 98b4c1f..7c29b45 100644 (file)
@@ -35,8 +35,8 @@
            .globl _vtattr_notify
 
             ; exported debugging tools
-            .globl _trap_monitor
-            .globl _trap_reboot
+            .globl _platform_monitor
+            .globl _platform_reboot
             .globl outchar
 
             ; imported symbols
 ; -----------------------------------------------------------------------------
             .area _COMMONMEM
 
-_trap_monitor:
+_platform_monitor:
            di
            halt
-           jr _trap_monitor
+           jr _platform_monitor
 
-_trap_reboot:
+_platform_reboot:
            xor a
            out (0x70), a
 
index 079eddb..33591a9 100644 (file)
@@ -6,8 +6,8 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
-        .globl trap_illegal
+        .globl _platform_monitor
+        .globl platform_illegal
         .globl _platform_switchout
         .globl _switchin
         .globl _doexec
@@ -59,7 +59,7 @@ _platform_switchout:
         call _switchin
 
         ; we should never get here
-        call _trap_monitor
+        call _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13, 10, 0
@@ -117,7 +117,7 @@ switchinfail:
         ld hl, #badswitchmsg
         call outstring
        ; something went wrong and we didn't switch in what we asked for
-        jp _trap_monitor
+        jp _platform_monitor
 
 fork_proc_ptr: .dw 0 ; (C type is struct p_tab *) -- address of child process p_tab entry
 
index 83af254..5a18d1a 100644 (file)
@@ -2,7 +2,7 @@
 
                 .module monitor
                 .include "kernel.def"
-                .globl _trap_monitor
+                .globl _platform_monitor
                 .globl map_kernel
 
 ; -----------------------------------------------------------------------------
@@ -11,7 +11,7 @@
                 .include "../lib/monitor-z80.s"
 
                 .area _COMMONMEM ; just a stub goes in common memory
-_trap_monitor:
+_platform_monitor:
                 di
                 call map_kernel
                 jp monitor_entry
@@ -24,7 +24,7 @@ _trap_monitor:
                 .globl outhl
 
                 .area _COMMONMEM
-_trap_monitor:  di
+_platform_monitor:  di
                 call outnewline
                 ; just dump a few words from the stack
                 ld b, #50
index 5383614..d0240b5 100644 (file)
@@ -12,7 +12,7 @@
         .globl outstring
         .globl outcharhex
         .globl platform_interrupt_all
-        .globl _trap_reboot
+        .globl _platform_reboot
         .globl _bufpool
 
         ; imported symbols
@@ -111,7 +111,7 @@ inchar:
         in0 a, (ESCC_DATA_A)
         ret
 
-_trap_reboot:
+_platform_reboot:
         in0 a, (Z182_SYSCONFIG)
         res 3, a                    ; re-enable the ROM select line
         out0 (Z182_SYSCONFIG), a
index 7653245..3e1807e 100644 (file)
@@ -17,8 +17,8 @@
            .globl platform_interrupt_all
 
             ; exported debugging tools
-            .globl _trap_monitor
-            .globl _trap_reboot
+            .globl _platform_monitor
+            .globl _platform_reboot
             .globl outchar
            .globl _bugout
 
@@ -67,14 +67,14 @@ font8x8         .equ        0x9C00          ; font loaded after framebuffer
 ;
 ;      Ask the controller to reboot
 ;
-_trap_reboot:
+_platform_reboot:
            ld a, #0x01
            out (0xF8), a
             ; should never get here
-_trap_monitor:
+_platform_monitor:
            di
            halt
-           jr _trap_monitor
+           jr _platform_monitor
 
 platform_interrupt_all:
            ret
index cb61b91..10b4579 100644 (file)
@@ -4,7 +4,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl trap_illegal
         .globl _inint
         .globl _platform_switchout
@@ -57,7 +57,7 @@ _platform_switchout:
         call _switchin
 
         ; we should never get here
-        call _trap_monitor
+        call _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13, 10, 0
@@ -143,7 +143,7 @@ switchinfail:
         ld hl, #badswitchmsg
         call outstring
        ; something went wrong and we didn't switch in what we asked for
-        jp _trap_monitor
+        jp _platform_monitor
 
 fork_proc_ptr: .dw 0 ; (C type is struct p_tab *) -- address of child process p_tab entry
 
index 5460c1e..580bbc4 100644 (file)
@@ -1,7 +1,7 @@
        .text
        .globl _program_vectors
-       .globl _trap_monitor
-       .globl _trap_reboot
+       .globl _platform_monitor
+       .globl _platform_reboot
        .globl outchar
        .globl init_hardware
        .globl init_early
@@ -10,9 +10,9 @@ init_early:
 _program_vectors:
        rts pc
        
-_trap_monitor:
-_trap_reboot:
-       jmp _trap_reboot
+_platform_monitor:
+_platform_reboot:
+       jmp _platform_reboot
 
 /*     .data FOR now */
        .even
index 7f3cb36..68ee043 100644 (file)
@@ -21,7 +21,7 @@ _platform_switchout:
        jsr pc,_getproc
        mov r0,-(sp)
        jsr pc,_switchin
-       jmp _trap_monitor
+       jmp _platform_monitor
 
 /* Simple swap based to begin with */
 _switchin:
@@ -71,7 +71,7 @@ switchfail:
        jsr pc,outr0hex
        mov $badswitchmsg,r0
        jsr pc,outstring                
-       jmp _trap_monitor
+       jmp _platform_monitor
 
 _dofork:
        mov 2(sp),r0
index 088af13..f04dd12 100644 (file)
@@ -34,8 +34,8 @@
        .globl port_map
 
         ; exported debugging tools
-        .globl _trap_monitor
-        .globl _trap_reboot
+        .globl _platform_monitor
+        .globl _platform_reboot
         .globl outchar
 
         ; imported symbols
 ; -----------------------------------------------------------------------------
             .area _COMMONMEM
 
-_trap_monitor:
+_platform_monitor:
        ;
        ;       Not so much a monitor as wait for space
        ;
        ld a, #0x7F
        in a, (0xFE)
        rra
-       jr c, _trap_monitor
+       jr c, _platform_monitor
 
-_trap_reboot:
+_platform_reboot:
        di
        im 1
        ld bc, #0x7ffd
index 9033c33..ca619e4 100644 (file)
@@ -10,7 +10,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl trap_illegal
         .globl _inint
         .globl _platform_switchout
@@ -58,7 +58,7 @@ _platform_switchout:
         call _switchin
 
         ; we should never get here
-        call _trap_monitor
+        call _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13, 10, 0
@@ -143,7 +143,7 @@ switchinfail:
         ld hl, #badswitchmsg
         call outstring
        ; something went wrong and we didn't switch in what we asked for
-        jp _trap_monitor
+        jp _platform_monitor
 
 fork_proc_ptr: .dw 0 ; (C type is struct p_tab *) -- address of child process p_tab entry
 
index fa679ae..cbf8c1d 100644 (file)
@@ -23,8 +23,8 @@
            .globl platform_interrupt_all
 
             ; exported debugging tools
-            .globl _trap_monitor
-            .globl _trap_reboot
+            .globl _platform_monitor
+            .globl _platform_reboot
             .globl outchar
 
             ; imported symbols
@@ -67,8 +67,8 @@
             .area _COMMONMEM
 
 ; FIXME: figure out how to reboot into CP/M
-_trap_monitor:
-_trap_reboot:
+_platform_monitor:
+_platform_reboot:
            di
            halt
 platform_interrupt_all:
index 631dc11..30ce5a1 100644 (file)
@@ -6,7 +6,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl trap_illegal
         .globl _inint
         .globl _platform_switchout
@@ -60,7 +60,7 @@ _platform_switchout:
        pop af
 
         ; we should never get here
-        call _trap_monitor
+        call _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13, 10, 0
@@ -159,7 +159,7 @@ switchinfail:
         ld hl, #badswitchmsg
         call outstring
        ; something went wrong and we didn't switch in what we asked for
-        jp _trap_monitor
+        jp _platform_monitor
 
 fork_proc_ptr: .dw 0 ; (C type is struct p_tab *) -- address of child process p_tab entry
 
index f675d34..66d1d4f 100644 (file)
@@ -35,7 +35,7 @@
         .globl s__DATA
         .globl l__DATA
         .globl kstack_top
-       .globl _trap_monitor
+       .globl _platform_monitor
 
         ; startup code
         .area _CODE
@@ -67,5 +67,5 @@ init:
     
         ; main shouldn't return, but if it does...
         di
-       jp _trap_monitor
+       jp _platform_monitor
 
index a855114..4dd4f01 100644 (file)
@@ -23,8 +23,8 @@
            .globl _irqwork
 
             ; exported debugging tools
-            .globl _trap_monitor
-            .globl _trap_reboot
+            .globl _platform_monitor
+            .globl _platform_reboot
             .globl outchar
 
             ; imported symbols
@@ -67,8 +67,8 @@ tm_stack:
 tm_stack_top:
 
 ; For now both hit monitor
-_trap_reboot:
-_trap_monitor:
+_platform_reboot:
+_platform_monitor:
             ; stash SP
             ld (tm_user_sp), sp
             ; switch to temporary stack
@@ -203,7 +203,7 @@ _tty_writeready:
             jr z, uart0wr
             cp #2
             jr z, uart1wr
-            call _trap_monitor
+            call _platform_monitor
             ret ; not a console we recognise
 uart1wr:    in a, (UART1_STATUS)
             jr testready
index 7156db4..5292efe 100644 (file)
@@ -7,7 +7,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl trap_illegal
         .globl _inint
         .globl _platform_switchout
@@ -59,7 +59,7 @@ _platform_switchout:
         call _switchin
 
         ; we should never get here
-        call _trap_monitor
+        call _platform_monitor
 
 _switchin:
         di
@@ -133,7 +133,7 @@ switchinfail:
         ld hl, #badswitchmsg
         call outstring
        ; something went wrong and we didn't switch in what we asked for
-        jp _trap_monitor
+        jp _platform_monitor
 
 
 _dofork:
index db1e4af..4846a7c 100644 (file)
@@ -16,8 +16,8 @@
            .export platform_doexec
 
             ; exported debugging tools
-            .export _trap_monitor
-           .export _trap_reboot
+            .export _platform_monitor
+           .export _platform_reboot
             .export outchar
            .export ___hard_di
            .export ___hard_ei
@@ -55,7 +55,7 @@ syscall            =  $FE
 ; -----------------------------------------------------------------------------
             .segment "COMMONMEM"
 
-_trap_monitor:
+_platform_monitor:
 ;
 ;      Put the ROM back as it was at entry including the second 8K bank we
 ;      only use for vectors, then jump to $E000 which should enter whatever
@@ -68,8 +68,8 @@ _trap_monitor:
            stx $FF91           ; $E000
            jmp $E000
 
-_trap_reboot:
-           jmp _trap_reboot    ; FIXME: original ROM map and jmp
+_platform_reboot:
+           jmp _platform_reboot        ; FIXME: original ROM map and jmp
 
 ___hard_di:
            php
index c196027..1f910cf 100644 (file)
@@ -7,7 +7,7 @@
        .export _ramtop
 
        .import _chksigs
-       .import _trap_monitor
+       .import _platform_monitor
 
        .import map_kernel
 
@@ -65,7 +65,7 @@ _switchout:
         jsr _getproc
         jsr _switchin
         ; we should never get here
-        jsr _trap_monitor
+        jsr _platform_monitor
 
 badswitchmsg: .byte "_switchin: FAIL"
        .byte 13, 10, 0
@@ -139,7 +139,7 @@ switchinfail:
        ldx     #>badswitchmsg
         jsr outstring
        ; something went wrong and we didn't switch in what we asked for
-        jmp _trap_monitor
+        jmp _platform_monitor
 
 ; Must not put this in ZP ?
 ;
index 40f7178..703ab71 100644 (file)
@@ -24,8 +24,8 @@
            .globl _video_exg
 
             ; exported debugging tools
-            .globl _trap_monitor
-            .globl _trap_reboot
+            .globl _platform_monitor
+            .globl _platform_reboot
             .globl outchar
 
             ; imported symbols
@@ -34,7 +34,7 @@
             .globl istack_top
             .globl istack_switched_sp
             .globl unix_syscall_entry
-            .globl trap_illegal
+            .globl platform_illegal
             .globl outcharhex
            .globl fd_nmi_handler
            .globl null_handler
@@ -64,7 +64,7 @@ _bufpool:
 ; -----------------------------------------------------------------------------
             .area _COMMONMEM
 
-_trap_monitor:
+_platform_monitor:
            di
            halt
 
@@ -72,7 +72,7 @@ platform_interrupt_all:
            in a,(0xef)
            ret
 
-_trap_reboot:
+_platform_reboot:
           di
           halt
 
index b02deaf..ef0230d 100644 (file)
@@ -25,8 +25,8 @@
            .globl _hd_page
 
             ; exported debugging tools
-            .globl _trap_monitor
-            .globl _trap_reboot
+            .globl _platform_monitor
+            .globl _platform_reboot
             .globl outchar
 
             ; imported symbols
@@ -53,7 +53,7 @@
 ; -----------------------------------------------------------------------------
             .area _COMMONMEM
 
-_trap_monitor:
+_platform_monitor:
            di
            call map_kernel
            jp to_monitor
@@ -62,7 +62,7 @@ platform_interrupt_all:
            in a,(0xef)
            ret
 
-_trap_reboot:
+_platform_reboot:
            di
            call map_kernel
            jp to_reboot
index 32e809c..4819355 100644 (file)
@@ -8,7 +8,7 @@
        .export _create_init_common
 
        .import _chksigs
-       .import _trap_monitor
+       .import _platform_monitor
 
        .import map_kernel
 
@@ -61,7 +61,7 @@ _platform_switchout:
         jsr _getproc
         jsr _switchin
         ; we should never get here
-        jsr _trap_monitor
+        jsr _platform_monitor
 
 badswitchmsg: .byte "_switchin: FAIL"
        .byte 13, 10, 0
@@ -139,7 +139,7 @@ switchinfail:
        ldx     #>badswitchmsg
         jsr outstring
        ; something went wrong and we didn't switch in what we asked for
-        jmp _trap_monitor
+        jmp _platform_monitor
 
 ; Must not put this in ZP ?
 ;
index d4a3b31..ba5e0a9 100644 (file)
@@ -16,8 +16,8 @@
            .export platform_doexec
 
             ; exported debugging tools
-            .export _trap_monitor
-           .export _trap_reboot
+            .export _platform_monitor
+           .export _platform_reboot
             .export outchar
            .export ___hard_di
            .export ___hard_ei
@@ -57,13 +57,13 @@ syscall          =  $FE
 ; -----------------------------------------------------------------------------
             .segment "COMMONMEM"
 
-_trap_monitor:
-           jmp _trap_monitor
+_platform_monitor:
+           jmp _platform_monitor
 
-_trap_reboot:
+_platform_reboot:
            lda #$A5
            sta $FE40           ; Off
-           jmp _trap_reboot    ; FIXME: original ROM map and jmp
+           jmp _platform_reboot        ; FIXME: original ROM map and jmp
 
 ___hard_di:
            php
index a45416d..02ce4a3 100644 (file)
@@ -7,8 +7,8 @@
             .export _program_vectors
 
             ; exported debugging tools
-            .export _trap_monitor
-           .export _trap_reboot
+            .export _platform_monitor
+           .export _platform_reboot
             .export outchar
            .export ___hard_di
            .export ___hard_ei
@@ -41,16 +41,16 @@ syscall     =  $FE
 
         .code
 
-_trap_monitor:
-       jmp     _trap_monitor
+_platform_monitor:
+       jmp     _platform_monitor
 
-_trap_reboot:
+_platform_reboot:
        sep     #$30
        .a8
        .i8
        lda     #$A5
        sta     $FE40           ; Off
-       jmp     _trap_reboot    ; FIXME: original ROM map and jmp
+       jmp     _platform_reboot        ; FIXME: original ROM map and jmp
 
 ___hard_di:
        php
index f0418bf..5fc23c1 100644 (file)
@@ -7,8 +7,8 @@
             .export _program_vectors
 
             ; exported debugging tools
-            .export _trap_monitor
-           .export _trap_reboot
+            .export _platform_monitor
+           .export _platform_reboot
             .export outchar
            .export ___hard_di
            .export ___hard_ei
@@ -43,16 +43,16 @@ syscall     =  $FE
 
         .code
 
-_trap_monitor:
-       jmp     _trap_monitor
+_platform_monitor:
+       jmp     _platform_monitor
 
-_trap_reboot:
+_platform_reboot:
        sep     #$30
        .a8
        .i8
        lda     #$A5
        sta     $FE40           ; Off
-       jmp     _trap_reboot    ; FIXME: original ROM map and jmp
+       jmp     _platform_reboot        ; FIXME: original ROM map and jmp
 
 ___hard_di:
        php
index 22021f1..900bd2f 100644 (file)
@@ -4,21 +4,21 @@
  *     Lots left to fill in
  */
 
-               .globl trap_reboot
+               .globl platform_reboot
                .globl init_early
                .globl init_hardware
                .globl program_vectors
                .globl outchar
-               .globl trap_monitor
+               .globl platform_monitor
                .globl udata_block
                .globl devide_read_data
                .globl devide_write_data
                .globl vdso
 .mri 1
-trap_reboot:
-trap_monitor:
+platform_reboot:
+platform_monitor:
            or #0700,sr
-           bra trap_monitor
+           bra platform_monitor
 
 init_early:
            lea.l udata_block,a5        ; udata ptr
index 09dd413..159d98a 100644 (file)
@@ -82,7 +82,7 @@ copyi:        move.l (a1)+,(a0)+
         bsr switchin
 
         ; we should never get here
-        bra trap_monitor
+        bra platform_monitor
 
 switchin:
         or #$0700,sr
@@ -161,7 +161,7 @@ switchinfail:
         lea badswitchmsg,a0
         bsr outstring
        ; something went wrong and we didn't switch in what we asked for
-        bra trap_monitor
+        bra platform_monitor
 
        ;
        ; this gets exciting on the 68000 because our udata is not always in
index 5e80a8d..cc62c69 100644 (file)
@@ -4,21 +4,21 @@
  *     Lots left to fill in
  */
 
-               .globl trap_reboot
+               .globl platform_reboot
                .globl init_early
                .globl init_hardware
                .globl program_vectors
                .globl outchar
-               .globl trap_monitor
+               .globl platform_monitor
                .globl udata_block
                .globl devide_read_data
                .globl devide_write_data
                .globl vdso
 .mri 1
-trap_reboot:
-trap_monitor:
+platform_reboot:
+platform_monitor:
            or #0700,sr
-           bra trap_monitor
+           bra platform_monitor
 
 init_early:
            lea.l udata_block,a5        ; udata ptr
index 1790138..bd1a473 100644 (file)
@@ -28,7 +28,7 @@ platform_switchout:
         bsr switchin
 
         ; we should never get here
-        bra trap_monitor
+        bra platform_monitor
 
 switchin:
         or #$0700,sr
@@ -78,7 +78,7 @@ switchinfail:
         lea badswitchmsg,a0
         bsr outstring
        ; something went wrong and we didn't switch in what we asked for
-        bra trap_monitor
+        bra platform_monitor
 
        ;
        ; this gets exciting on the 68000 because our udata is not in a
index de691f9..df93e9c 100644 (file)
@@ -4,21 +4,21 @@
  *     Lots left to fill in
  */
 
-               .globl trap_reboot
+               .globl platform_reboot
                .globl init_early
                .globl init_hardware
                .globl program_vectors
                .globl outchar
-               .globl trap_monitor
+               .globl platform_monitor
                .globl udata_block
                .globl devide_read_data
                .globl devide_write_data
                .globl vdso
 .mri 1
-trap_reboot:
-trap_monitor:
+platform_reboot:
+platform_monitor:
            or #0700,sr
-           bra trap_monitor
+           bra platform_monitor
 
 init_early:
            lea.l udata_block,a5        ; udata ptr
index bbe2040..a73d303 100644 (file)
@@ -27,7 +27,7 @@ platform_switchout:
         bsr switchin
 
         ; we should never get here
-        bra trap_monitor
+        bra platform_monitor
 
 switchin:
         or #$0700,sr
@@ -102,7 +102,7 @@ switchinfail:
         lea badswitchmsg,a0
         bsr outstring
        ; something went wrong and we didn't switch in what we asked for
-        bra trap_monitor
+        bra platform_monitor
 
        ;
        ; this gets exciting on the 68000 because our udata is not in a
index 703fa47..72d86ba 100644 (file)
@@ -6,7 +6,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl trap_illegal
         .globl _platform_switchout
         .globl _switchin
@@ -59,7 +59,7 @@ _platform__switchout:
         call _switchin
 
         ; we should never get here
-        call _trap_monitor
+        call _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13, 10, 0
@@ -148,7 +148,7 @@ switchinfail:
         ld hl, #badswitchmsg
         call outstring
        ; something went wrong and we didn't switch in what we asked for
-        jp _trap_monitor
+        jp _platform_monitor
 
 fork_proc_ptr: .dw 0 ; (C type is struct p_tab *) -- address of child process p_tab entry
 
index ecda199..fcf1f3b 100644 (file)
@@ -28,8 +28,8 @@
            .globl _need_resched
 
             ; exported debugging tools
-            .globl _trap_monitor
-            .globl _trap_reboot
+            .globl _platform_monitor
+            .globl _platform_reboot
             .globl outchar
 
             ; imported symbols
 ; -----------------------------------------------------------------------------
             .area _COMMONMEM
 
-_trap_monitor:
+_platform_monitor:
            ld a, #128
            out (29), a
 platform_interrupt_all:
            ret
 
-_trap_reboot:
+_platform_reboot:
            ld a, #1
            out (29), a
 
index b855773..6346ced 100644 (file)
 
            .globl _fd_bankcmd
 
-           .globl _trap_reboot
+           .globl _platform_reboot
 
             ; exported debugging tools
-            .globl _trap_monitor
+            .globl _platform_monitor
             .globl outchar
 
             ; imported symbols
 ; -----------------------------------------------------------------------------
             .area _COMMONMEM
 
-_trap_monitor:
+_platform_monitor:
            ld a, #128
            out (29), a
 platform_interrupt_all:
            ret
 
-_trap_reboot:
+_platform_reboot:
            ld a, #1
            out (29), a
 
index 3e30fe4..4621b92 100644 (file)
@@ -6,7 +6,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl trap_illegal
         .globl _inint
         .globl _platform_switchout
@@ -72,7 +72,7 @@ switchoutlow:
         call _switchin
 
         ; we should never get here
-        call _trap_monitor
+        call _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13, 10, 0
@@ -187,7 +187,7 @@ switchinfail:
         ld hl, #badswitchmsg
         call outstring
        ; something went wrong and we didn't switch in what we asked for
-        jp _trap_monitor
+        jp _platform_monitor
 
 ; (hl) points to cached page ptr, a is desired page
 update_cache:
index 17b6ed5..edc3179 100644 (file)
@@ -29,7 +29,7 @@
            .globl _kernel_flag
 
             ; exported debugging tools
-            .globl _trap_monitor
+            .globl _platform_monitor
             .globl outchar
 
             ; imported symbols
 ; -----------------------------------------------------------------------------
             .area _COMMONMEM
 
-_trap_monitor:
+_platform_monitor:
            ld a, #128
            out (29), a
 platform_interrupt_all:
            ret
 
-_trap_reboot:
+_platform_reboot:
            ld a, #1
            out (29), a
 
index 83af254..5a18d1a 100644 (file)
@@ -2,7 +2,7 @@
 
                 .module monitor
                 .include "kernel.def"
-                .globl _trap_monitor
+                .globl _platform_monitor
                 .globl map_kernel
 
 ; -----------------------------------------------------------------------------
@@ -11,7 +11,7 @@
                 .include "../lib/monitor-z80.s"
 
                 .area _COMMONMEM ; just a stub goes in common memory
-_trap_monitor:
+_platform_monitor:
                 di
                 call map_kernel
                 jp monitor_entry
@@ -24,7 +24,7 @@ _trap_monitor:
                 .globl outhl
 
                 .area _COMMONMEM
-_trap_monitor:  di
+_platform_monitor:  di
                 call outnewline
                 ; just dump a few words from the stack
                 ld b, #50
index 8939fdf..93bc9d9 100644 (file)
@@ -6,7 +6,7 @@
         .globl _newproc
         .globl _chksigs
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl trap_illegal
         .globl _platform_switchout
         .globl _switchin
@@ -59,7 +59,7 @@ _platform_switchout:
         call _switchin
 
         ; we should never get here
-        call _trap_monitor
+        call _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13, 10, 0
@@ -117,7 +117,7 @@ switchinfail:
         ld hl, #badswitchmsg
         call outstring
        ; something went wrong and we didn't switch in what we asked for
-        jp _trap_monitor
+        jp _platform_monitor
 
 fork_proc_ptr: .dw 0 ; (C type is struct p_tab *) -- address of child process p_tab entry
 
index 18bf3d1..5eccc77 100644 (file)
@@ -15,7 +15,7 @@
        .globl platform_interrupt_all
        .globl mpgsel_cache
        .globl _kernel_pages
-       .globl _trap_reboot
+       .globl _platform_reboot
        .globl _bufpool
 
         ; imported symbols
@@ -118,7 +118,7 @@ init_partial_uart:
 ;=========================================================================
         .area _CODE
 
-_trap_reboot:
+_platform_reboot:
         ; We need to map the ROM back in -- ideally into every page.
         ; This little trick based on a clever suggestion from John Coffman.
         di
index defe921..612e784 100644 (file)
@@ -8,7 +8,7 @@
         .globl _ptab_alloc
         .globl _newproc
         .globl _getproc
-        .globl _trap_monitor
+        .globl _platform_monitor
         .globl trap_illegal
         .globl _platform_switchout
         .globl _switchin
@@ -80,7 +80,7 @@ _platform_switchout:
         call _switchin
 
         ; we should never get here
-        call _trap_monitor
+        call _platform_monitor
 
 badswitchmsg: .ascii "_switchin: FAIL"
             .db 13, 10, 0
@@ -247,7 +247,7 @@ switchinfail:
         ld hl, #badswitchmsg
         call outstring
        ; something went wrong and we didn't switch in what we asked for
-        jp _trap_monitor
+        jp _platform_monitor
 
 ; Interrupts should be off when this is called
 _dup_low_page:
index 1e4a51e..f56d5b2 100644 (file)
@@ -26,8 +26,8 @@
         .globl _need_resched
 
         ; exported debugging tools
-        .globl _trap_monitor
-       .globl _trap_reboot
+        .globl _platform_monitor
+       .globl _platform_reboot
         .globl outchar
 
         ; imported symbols
 ; -----------------------------------------------------------------------------
             .area _COMMONMEM
 
-_trap_monitor:
+_platform_monitor:
        ;
        ;       Not so much a monitor as wait for space
        ;
        ld a, #0x7F
        in a, (0xFE)
        rra
-       jr c, _trap_monitor
+       jr c, _platform_monitor
 
-_trap_reboot:
+_platform_reboot:
        di
        im 1
        ld bc, #0x7ffd
index 7c9e6a4..82fc2ba 100644 (file)
@@ -852,7 +852,7 @@ void panic(char *deathcry)
 {
        kputs("\r\npanic: ");
        kputs(deathcry);
-       trap_monitor();
+       platform_monitor();
 }
 
 /* We put this here so that we can blow the start.c code away on exec
index 95410ad..3e9efbc 100644 (file)
@@ -536,9 +536,9 @@ arg_t _uadmin(void)
                sync();
        /* Wants moving into machine specific files */
        if (cmd == A_SHUTDOWN || cmd == A_DUMP)
-               trap_monitor();
+               platform_monitor();
        if (cmd == A_REBOOT)
-               trap_reboot();
+               platform_reboot();
 
        /* We don't do SWAPCTL yet */
        udata.u_error = EINVAL;
index 9afb868..5c4b9ca 100644 (file)
@@ -374,7 +374,7 @@ uint8_t tty_inproc(uint8_t minor, unsigned char c)
 #endif
 #ifdef CONFIG_MONITOR
        if (c == 0x01)          /* ^A */
-               trap_monitor();
+               platform_monitor();
 #endif
 
        if (c == '\r' ){