dragon ports: Fix wrong mapping in uget()
authorTormod Volden <debian.tormod@gmail.com>
Sun, 10 May 2015 14:24:59 +0000 (16:24 +0200)
committerAlan Cox <alan@linux.intel.com>
Sun, 10 May 2015 20:14:41 +0000 (21:14 +0100)
Thanks to Brett Gordon for finding this bug.

Fixes for instance display of command name in "ps",
and terminal settings with "stty".

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Kernel/platform-dragon-nx32/usermem_sam.s
Kernel/platform-dragon/usermem_sam.s

index 1be408a..08ff749 100644 (file)
@@ -50,10 +50,10 @@ __uget:
        ldy 9,s         ; count
        orcc #0x10
 ugetl:
-       lda ,x+
        jsr map_process_always
-       sta ,u+
+       lda ,x+
        jsr map_kernel
+       sta ,u+
        leay -1,y
        bne ugetl
        puls u,y,cc,pc
index bd3e313..4360de8 100644 (file)
@@ -46,10 +46,10 @@ __uget:
        ldy 9,s         ; count
        orcc #0x10
 ugetl:
-       lda ,x+
        SAM_USER
-       sta ,u+
+       lda ,x+
        SAM_KERNEL
+       sta ,u+
        leay -1,y
        bne ugetl
        puls u,y,cc,pc