Changes to get platform-v8080 running again master
authorNick Downing <nick@ndcode.org>
Sun, 21 Apr 2019 05:31:42 +0000 (15:31 +1000)
committerNick Downing <nick@ndcode.org>
Sun, 21 Apr 2019 05:31:42 +0000 (15:31 +1000)
Kernel/platform-v8080/config.h
Kernel/platform-v8080/v8080.s
Kernel/start.c

index e79a70d..528f2f9 100644 (file)
@@ -48,7 +48,7 @@
 
 #define TTYDEV   BOOT_TTY /* Device used by kernel for messages, panics */
 #define SWAPDEV  (256 + 1)  /* Device for swapping. (FIXME) */
-#define NBUFS    8       /* Number of block buffers */
+#define NBUFS    6       /* Number of block buffers */
 #define NMOUNTS         4        /* Number of mounts at a time */
 
 #define platform_discard()
index f5627c4..0054c4a 100644 (file)
@@ -204,6 +204,7 @@ _tty_pollirq:
        jnc poll2
        in 1
        mov e,a
+       mvi d,0
        push d
        mvi e,1
        push d
@@ -216,6 +217,7 @@ poll2:
        rnc
        in 41
        mov e,a
+       mvi d,0
        push d
        mvi e,2
        push d
index 75e8b65..1076c5c 100644 (file)
@@ -99,8 +99,6 @@ void create_init(void)
 
        udata.u_insys = 1;
 
-       init_process->p_status = P_RUNNING;
-
        /* Poke the execve arguments into user data space so _execve() can read them back */
        /* Some systems only have a tiny window we can use at boot as most of
           this space is loaded with common memory */