6502: begin fixing bitrot
authorAlan Cox <alan@linux.intel.com>
Thu, 3 Nov 2016 18:14:24 +0000 (18:14 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 3 Nov 2016 18:14:24 +0000 (18:14 +0000)
Kernel/cpu-6502/cpu.h
Kernel/lowlevel-6502.s
Kernel/platform-tgl6502/Makefile

index ceaef19..9ddb68b 100644 (file)
@@ -4,7 +4,8 @@ typedef unsigned short uint16_t;
 typedef signed short int16_t;
 typedef unsigned char uint8_t;
 typedef signed char int8_t;
-typedef signed int size_t;
+typedef unsigned int size_t;
+typedef signed int ssize_t;
 
 typedef uint8_t irqflags_t;
 
index e1e14bf..2ed0274 100644 (file)
@@ -12,6 +12,8 @@
        .export outxa
        .export stash_zp
 
+       .export _need_resched
+
        .import outchar
        .import _kernel_flag
        .import _unix_syscall_i
@@ -202,3 +204,6 @@ outxa:      pha
        jsr outcharhex
        pla
        jmp outcharhex
+
+_need_resched:
+       .byte 0
index 0a5f878..a1c4bb5 100644 (file)
@@ -28,5 +28,5 @@ image:
        tricks.o main.o ../timer.o ../kdata.o devrd.o devices.o \
        ../devio.o ../filesys.o ../process.o ../inode.o ../syscall_fs.o \
        ../syscall_proc.o ../syscall_other.o ../mm.o ../swap.o ../bank16k_low.o \
-       ../tty.o ../devsys.o ../syscall_fs2.o ../syscall_exec.o \
+       ../tty.o ../devsys.o ../syscall_fs2.o ../syscall_fs3.o ../syscall_exec16.o \
        ../usermem.o ../usermem_std-6502.o devtty.o