dragon: fork() must return zero to child
authorTormod Volden <debian.tormod@gmail.com>
Sun, 19 Apr 2015 16:43:42 +0000 (18:43 +0200)
committerAlan Cox <alan@linux.intel.com>
Sun, 19 Apr 2015 17:45:51 +0000 (18:45 +0100)
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Kernel/platform-dragon/tricks.s

index b23ee49..7dd86f5 100644 (file)
@@ -148,6 +148,7 @@ _dofork:
         ; runticks = 0;
         clr _runticks
         ; in the child process, fork() returns zero.
+       ldx #0
        ;
        ; And we exit, with the kernel mapped, the child now being deemed
        ; to be the live uarea. The parent is frozen in time and space as