usermem_std-z80-thunked: Fix return codes
authorAlan Cox <alan@linux.intel.com>
Sun, 9 Sep 2018 23:19:42 +0000 (00:19 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 9 Sep 2018 23:19:42 +0000 (00:19 +0100)
With this fixed the Sam port gets as far as fork and then (not unexpectedly)
suffers a terminal existence failure.

Kernel/usermem_std-z80-thunked.s

index db83917..65dd9e5 100644 (file)
@@ -134,6 +134,7 @@ uget1:      ; not split
        ldir
 uget_out:
        pop ix
+       ld hl,#0
        jp map_kernel_low
 
 __uput:
@@ -153,6 +154,7 @@ __uput:
 uput1:
        ldir
        pop ix
+       ld hl,#0
        jp map_kernel_low
 
 __uzero:
@@ -175,6 +177,7 @@ zeroit_1:
        call user_mapping
        call zeroit
        pop ix
+       ld hl,#0
        ret
 zeroit:
        ld (hl),#0