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.o \
- ../tty.o ../devsys.o ../usermem.o ../syscall_fs2.o ../syscall_exec.o \
+ ../tty.o ../devsys.o ../usermem.o ../syscall_fs2.o ../syscall_exec16.o \
../usermem_std-6809.o devlpr.o devtty.o libc.o
/* Video terminal, not a serial tty */
#define CONFIG_VT
-/* We want the 8x8 font */
-#define CONFIG_FONT_8X8
/* Vt definitions */
#define VT_WIDTH 64
#define VT_HEIGHT 24
#define VT_BOTTOM 23
#define TICKSPERSEC 100 /* Ticks per second */
-#define PROGBASE ((char *)(0x0100)) /* also data base */
-#define PROGTOP ((char *)(0xF000)) /* Top of program, base of U_DATA */
+#define PROGBASE 0x0100 /* also data base */
+#define PROGLOAD 0x0800 /* also data base */
+#define PROGTOP 0x7000 /* Top of program, base of U_DATA */
#define BOOT_TTY (512 + 1) /* Set this to default device for stdio, stderr */
/* In this case, the default is the first TTY device */
#define CMDLINE NULL /* Location of root dev name */
/* Device parameters */
-#define NUM_DEV_TTY 3
+#define NUM_DEV_TTY 2
#define NDEVS 1 /* Devices 0..NDEVS-1 are capable of being mounted */
/* (add new mountable devices to beginning area.) */
#define TTYDEV BOOT_TTY /* Device used by kernel for messages, panics */
-#define NBUFS 10 /* Number of block buffers */
-#define NMOUNTS 1 /* Number of mounts at a time - nothing mountable! */
+#define NBUFS 7 /* Number of block buffers */
+#define NMOUNTS 2 /* Number of mounts at a time - nothing mountable! */
+
+#define swap_map(x) ((uint8_t *)(x))
*uarta = c;
}
+void tty_sleeping(uint8_t minor)
+{
+ used(minor);
+}
+
void tty_setup(uint8_t minor)
{
minor;
U_DATA equ 0xF000 ; (this is struct u_data from kernel.h)
U_DATA__TOTALSIZE equ 0x300 ; 256+256+256 bytes.
+SAM_USER macro
+ endm
+
+SAM_KERNEL macro
+ endm
+
+SAM_SAVE macro
+ endm
+
+SAM_RESTORE macro
+ endm
+
#include "cpu.h"
-void *memcpy(void *d, void *s, size_t sz)
+void *memcpy(void *d, const void *s, size_t sz)
{
unsigned char *dp, *sp;
while(sz--)
return e-p-1;
}
-/* Until we pull out the bits of libgcc that are useful instead */
-void abort(void)
-{
-}
-
-void *malloc(size_t size)
-{
- return 0;
-}
\ No newline at end of file
#include <printf.h>
#include <devtty.h>
-/* The uarea is already synched to the stash which is written with the
- process */
-uint8_t *swapout_prepare_uarea(ptptr p)
-{
- p;
- return NULL;
-}
-
-/* The switchin code will move the uarea into the process itself, we just
- need to fix up the u_page pointer */
-uint8_t *swapin_prepare_uarea(ptptr p)
-{
- p;
- return NULL;
-}
-
void platform_idle(void)
{
}
.globl map_process_always
.globl map_save
.globl map_restore
+ .globl _kernel_flag
; exported debugging tools
.globl _trap_monitor
; -----------------------------------------------------------------------------
; COMMON MEMORY BANK (0xF000 upwards)
; -----------------------------------------------------------------------------
- .area _COMMONMEM
+ .area .common
trapmsg: .ascii "Trapdoor: SP="
.db 0
;------------------------------------------------------------------------------
; COMMON MEMORY PROCEDURES FOLLOW
- .area _COMMONMEM
+ .area .common
_program_vectors:
;
beq outcharw
sta 0xffa1
puls b,pc
+
+ .area .data
+_kernel_flag: .db 1
include "kernel.def"
include "../kernel09.def"
- .area _COMMONMEM
+ .area .common
; ramtop must be in common for single process swapping cases
; and its a constant for the others from before init forks so it'll be fine