kernel: pre-empt should now call the platform method directly
authorAlan Cox <alan@linux.intel.com>
Fri, 30 Mar 2018 21:24:20 +0000 (22:24 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 30 Mar 2018 21:24:20 +0000 (22:24 +0100)
Kernel/lowlevel-65c816.s
Kernel/lowlevel-6809.s
Kernel/lowlevel-z80-banked.s

index fe2a79f..210a06b 100644 (file)
@@ -43,7 +43,7 @@
        .import platform_doexec
        .import _inint
        .import _platform_monitor
-       .import _switchout
+       .import _platform_switchout
 
        .import push0
        .import incaxy
@@ -639,7 +639,7 @@ ret_to_user:
        .i8
        lda     U_DATA__U_PTAB
        ldx     U_DATA__U_PTAB+1
-       jsr     _switchout
+       jsr     _platform_switchout
        ;
        ;       We will (one day maybe) pop back out here. It's not
        ;       guaranteed (we might be killed off)
index 385ae8e..d32759a 100644 (file)
@@ -311,7 +311,7 @@ in_kernel:
            sta P_TAB__P_STATUS_OFFSET,x
            ; Sleep on the kernel stack, IRQs will get re-enabled if need
            ; be
-           jsr _switchout
+           jsr _platform_switchout
            ;
            ; We will resume here after the pre-emption. Get back onto
            ; the user stack and map ourself in
index fbcc2cc..c2ae3b5 100644 (file)
@@ -32,7 +32,7 @@
        .globl _inint
        .globl _platform_interrupt
        .globl platform_interrupt_all
-       .globl _switchout
+       .globl _platform_switchout
 
         ; exported symbols
        .globl _chksigs
@@ -535,7 +535,7 @@ intret2:call map_kernel
        ;
        ld hl, (U_DATA__U_PTAB)
        ld (hl), #P_READY
-       call _switchout
+       call _platform_switchout
        ;
        ; We are no longer in an interrupt or a syscall
        ;