FUZIX.git
5 years agotiny68k: status update
Alan Cox [Sun, 20 Jan 2019 00:48:31 +0000 (00:48 +0000)]
tiny68k: status update

5 years agostartrek: missing fflush
Alan Cox [Sat, 19 Jan 2019 23:38:45 +0000 (23:38 +0000)]
startrek: missing fflush

5 years ago68000: fix longjmp
Alan Cox [Sat, 19 Jan 2019 23:36:30 +0000 (23:36 +0000)]
68000: fix longjmp

This sorts out the weird crashes in shell

5 years agosh: remove old dead ifdeffed stuff
Alan Cox [Sat, 19 Jan 2019 23:36:18 +0000 (23:36 +0000)]
sh: remove old dead ifdeffed stuff

5 years agofsh: fix build on 68000
Alan Cox [Sat, 19 Jan 2019 23:03:08 +0000 (23:03 +0000)]
fsh: fix build on 68000

Forgot to set the define so it build a generic sh

5 years agoutil: fix clean on 68000
Alan Cox [Sat, 19 Jan 2019 23:02:49 +0000 (23:02 +0000)]
util: fix clean on 68000

5 years agops: fix kernel and user bits to get ps working 32bit
Alan Cox [Sat, 19 Jan 2019 22:58:43 +0000 (22:58 +0000)]
ps: fix kernel and user bits to get ps working 32bit

5 years agokernel rearrange some optional p_tab stuff a bit
Alan Cox [Sat, 19 Jan 2019 22:58:20 +0000 (22:58 +0000)]
kernel rearrange some optional p_tab stuff a bit

5 years agoerr: fix missing : space
Alan Cox [Sat, 19 Jan 2019 22:31:02 +0000 (22:31 +0000)]
err: fix missing : space

5 years agosort: drop MWC version - too big for some boxes
Alan Cox [Sat, 19 Jan 2019 21:57:30 +0000 (21:57 +0000)]
sort: drop MWC version - too big for some boxes

5 years agotiny68k: README update
Alan Cox [Sat, 19 Jan 2019 21:56:59 +0000 (21:56 +0000)]
tiny68k: README update

5 years agotty: Fix deadlock in tty output
Alan Cox [Sat, 19 Jan 2019 21:38:54 +0000 (21:38 +0000)]
tty: Fix deadlock in tty output

If you had a dumb tty port (or driver) and your write blocked until pre-emption
then we'd sleep expecting a tty wake event even though the tty doesn't provide
one.

Instead if we got told 'soon' we yield when asked to pre-empt.

5 years agopcw8256: static tty buffers and basis for nice tty wakeups later
Alan Cox [Sat, 19 Jan 2019 21:38:29 +0000 (21:38 +0000)]
pcw8256: static tty buffers and basis for nice tty wakeups later

5 years agomtx: static tty buffers and set basis for nice wakeups and flow control
Alan Cox [Sat, 19 Jan 2019 21:37:59 +0000 (21:37 +0000)]
mtx: static tty buffers and set basis for nice wakeups and flow control

5 years agosocz80: switch to static tty buffers
Alan Cox [Sat, 19 Jan 2019 21:37:09 +0000 (21:37 +0000)]
socz80: switch to static tty buffers

5 years agotbblue: typo fix
Alan Cox [Sat, 19 Jan 2019 21:36:55 +0000 (21:36 +0000)]
tbblue: typo fix

5 years agotrs80: static tty buffers
Alan Cox [Sat, 19 Jan 2019 21:36:42 +0000 (21:36 +0000)]
trs80: static tty buffers

5 years agoz280rc: fix tty blocking
Alan Cox [Sat, 19 Jan 2019 21:36:24 +0000 (21:36 +0000)]
z280rc: fix tty blocking

5 years agozetav2: static tty buffers
Alan Cox [Sat, 19 Jan 2019 21:36:12 +0000 (21:36 +0000)]
zetav2: static tty buffers

5 years agodragon-nx32: static tty buffers, note a bug to fix on gfx
Alan Cox [Sat, 19 Jan 2019 21:35:19 +0000 (21:35 +0000)]
dragon-nx32: static tty buffers, note a bug to fix on gfx

5 years agosbcv2: fix console blocking, static buffers
Alan Cox [Sat, 19 Jan 2019 21:34:54 +0000 (21:34 +0000)]
sbcv2: fix console blocking, static buffers

5 years agosc114: fix console blocking
Alan Cox [Sat, 19 Jan 2019 21:32:30 +0000 (21:32 +0000)]
sc114: fix console blocking

5 years agopx4plus: keep dead tree in sync
Alan Cox [Sat, 19 Jan 2019 21:31:19 +0000 (21:31 +0000)]
px4plus: keep dead tree in sync

5 years agorc2014 series: tty static buffers, basis for nice wakeups
Alan Cox [Sat, 19 Jan 2019 21:30:51 +0000 (21:30 +0000)]
rc2014 series: tty static buffers, basis for nice wakeups

5 years agon8vem: static tty buffers
Alan Cox [Sat, 19 Jan 2019 21:24:19 +0000 (21:24 +0000)]
n8vem: static tty buffers

5 years agopdp11: static tty buffers, fix console blocking
Alan Cox [Sat, 19 Jan 2019 21:23:56 +0000 (21:23 +0000)]
pdp11: static tty buffers, fix console blocking

5 years agov68: static tty buffers
Alan Cox [Sat, 19 Jan 2019 21:23:13 +0000 (21:23 +0000)]
v68: static tty buffers

5 years agov68: static tty buffers
Alan Cox [Sat, 19 Jan 2019 21:22:56 +0000 (21:22 +0000)]
v68: static tty buffers

5 years agozx series: static tty buffers
Alan Cox [Sat, 19 Jan 2019 21:22:36 +0000 (21:22 +0000)]
zx series: static tty buffers

5 years agonascom: static tty buffers
Alan Cox [Sat, 19 Jan 2019 21:21:44 +0000 (21:21 +0000)]
nascom: static tty buffers

5 years agop112: static tty buffers
Alan Cox [Sat, 19 Jan 2019 21:21:35 +0000 (21:21 +0000)]
p112: static tty buffers

5 years agomulticomp: static tty buffers
Alan Cox [Sat, 19 Jan 2019 21:21:22 +0000 (21:21 +0000)]
multicomp: static tty buffers

5 years agomsx: static tty buffers
Alan Cox [Sat, 19 Jan 2019 21:21:03 +0000 (21:21 +0000)]
msx: static tty buffers

5 years agococo2: static tty buffers
Alan Cox [Sat, 19 Jan 2019 21:20:40 +0000 (21:20 +0000)]
coco2: static tty buffers

5 years agomicropack: use static for tty buffers
Alan Cox [Sat, 19 Jan 2019 21:19:15 +0000 (21:19 +0000)]
micropack: use static for tty buffers

5 years agostale code: keep tty changes more in sync
Alan Cox [Sat, 19 Jan 2019 21:18:49 +0000 (21:18 +0000)]
stale code: keep tty changes more in sync

5 years agoatarist: keep dead prototype code in sync
Alan Cox [Sat, 19 Jan 2019 21:17:51 +0000 (21:17 +0000)]
atarist: keep dead prototype code in sync

5 years agoamstradnc: static tty buffers and lay framework for cts/rts wakeups
Alan Cox [Sat, 19 Jan 2019 21:17:13 +0000 (21:17 +0000)]
amstradnc: static tty buffers and lay framework for cts/rts wakeups

5 years agoz80pack: make tty buffers static
Alan Cox [Sat, 19 Jan 2019 21:14:17 +0000 (21:14 +0000)]
z80pack: make tty buffers static

5 years agocromemco: make the tty buffers static
Alan Cox [Sat, 19 Jan 2019 20:55:18 +0000 (20:55 +0000)]
cromemco: make the tty buffers static

5 years agocpuinfo: fix use of removed identifier
Alan Cox [Sat, 19 Jan 2019 20:20:11 +0000 (20:20 +0000)]
cpuinfo: fix use of removed identifier

5 years agoprocess: fix warnings
Alan Cox [Sat, 19 Jan 2019 20:07:12 +0000 (20:07 +0000)]
process: fix warnings

5 years agostart: fix typo
Alan Cox [Sat, 19 Jan 2019 20:06:47 +0000 (20:06 +0000)]
start: fix typo

5 years agosyscall_proc: note a case we need to dig into
Alan Cox [Sat, 19 Jan 2019 19:57:38 +0000 (19:57 +0000)]
syscall_proc: note a case we need to dig into

5 years agotiny68k: dont push a swapmap 0
Alan Cox [Sat, 19 Jan 2019 19:57:21 +0000 (19:57 +0000)]
tiny68k: dont push a swapmap 0

5 years agotiny68k: pass correct argument
Alan Cox [Sat, 19 Jan 2019 19:57:05 +0000 (19:57 +0000)]
tiny68k: pass correct argument

5 years agokernel: we should go back to the ro default not change to rw on mount fail
Alan Cox [Sat, 19 Jan 2019 19:56:23 +0000 (19:56 +0000)]
kernel: we should go back to the ro default not change to rw on mount fail

Otherwise if you hit enter then type in the fs name you get a r/w mount
unexpectedly

5 years ago68000: add some very crude basic register dumping on traps
Alan Cox [Sat, 19 Jan 2019 19:17:03 +0000 (19:17 +0000)]
68000: add some very crude basic register dumping on traps

We need to print the proper trap number and do the frame processing somewhere,
this is for now partly just a hack.

5 years agotiny68k: remember to fix memcpy etc
Alan Cox [Sat, 19 Jan 2019 19:16:20 +0000 (19:16 +0000)]
tiny68k: remember to fix memcpy etc

5 years agosyscall_exec32: set top properly
Alan Cox [Sat, 19 Jan 2019 19:15:39 +0000 (19:15 +0000)]
syscall_exec32: set top properly

5 years agousermem: fix dumb error where some out of range addresses were not errorred
Alan Cox [Sat, 19 Jan 2019 19:14:56 +0000 (19:14 +0000)]
usermem: fix dumb error where some out of range addresses were not errorred

5 years agoinode: Fix non 32bit clean path
Alan Cox [Sat, 19 Jan 2019 19:14:12 +0000 (19:14 +0000)]
inode: Fix non 32bit clean path

5 years ago68000: update to build needed code
Alan Cox [Sat, 19 Jan 2019 19:13:48 +0000 (19:13 +0000)]
68000: update to build needed code

5 years agotiny68k: TTY driver fixes
Alan Cox [Sat, 19 Jan 2019 16:27:52 +0000 (16:27 +0000)]
tiny68k: TTY driver fixes

5 years agotiny68k: fix off by one in swap map
Alan Cox [Sat, 19 Jan 2019 16:27:36 +0000 (16:27 +0000)]
tiny68k: fix off by one in swap map

5 years agotiny68k: low level IRQ and serial fixes
Alan Cox [Sat, 19 Jan 2019 16:27:22 +0000 (16:27 +0000)]
tiny68k: low level IRQ and serial fixes

5 years agotiny68k: correct IDE regs for tiny68k
Alan Cox [Sat, 19 Jan 2019 16:27:04 +0000 (16:27 +0000)]
tiny68k: correct IDE regs for tiny68k

5 years agotiny68k: make the loader work
Alan Cox [Sat, 19 Jan 2019 16:26:51 +0000 (16:26 +0000)]
tiny68k: make the loader work

5 years agotiny68k: start up fixes
Alan Cox [Sat, 19 Jan 2019 16:26:17 +0000 (16:26 +0000)]
tiny68k: start up fixes

5 years agocpu: add a barrier() macro
Alan Cox [Sat, 19 Jan 2019 16:25:49 +0000 (16:25 +0000)]
cpu: add a barrier() macro

5 years agotiny68k: don't assume a fixed swapfile (we do dynamic now)
Alan Cox [Sat, 19 Jan 2019 16:25:02 +0000 (16:25 +0000)]
tiny68k: don't assume a fixed swapfile (we do dynamic now)

5 years agoBuild V7 and MWC sort commands on 6809
Tormod Volden [Wed, 16 Jan 2019 22:43:08 +0000 (23:43 +0100)]
Build V7 and MWC sort commands on 6809

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
5 years agogames: Build fortune.dat in Makefile.6809 too
Tormod Volden [Thu, 10 Jan 2019 21:44:34 +0000 (22:44 +0100)]
games: Build fortune.dat in Makefile.6809 too

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
5 years agofortune: Count is also fixed endian
Tormod Volden [Thu, 10 Jan 2019 23:46:59 +0000 (00:46 +0100)]
fortune: Count is also fixed endian

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
5 years agotiny68K; just an initial commit
Alan Cox [Wed, 16 Jan 2019 22:19:01 +0000 (22:19 +0000)]
tiny68K; just an initial commit

5 years agobinnam: handle platforms with an _BOOT section leading
Alan Cox [Wed, 16 Jan 2019 14:59:52 +0000 (14:59 +0000)]
binnam: handle platforms with an _BOOT section leading

We need in some cases to put a bootstrap entry below everything else and not
have code first. In that case binman needs to back from boot not from code.

5 years agosyscall_exec32: 32bit pieces for core dump (incomplete)
Alan Cox [Wed, 16 Jan 2019 14:59:17 +0000 (14:59 +0000)]
syscall_exec32: 32bit pieces for core dump (incomplete)

Just to get us up and running

5 years agozxevo: more work in progress getting towards an actual initial port
Alan Cox [Wed, 16 Jan 2019 14:58:44 +0000 (14:58 +0000)]
zxevo: more work in progress getting towards an actual initial port

5 years agotbblue: fill in more uart information c/o the zx next forum
Alan Cox [Wed, 16 Jan 2019 14:57:55 +0000 (14:57 +0000)]
tbblue: fill in more uart information c/o the zx next forum

5 years agosam: fix process size reporting
Alan Cox [Wed, 16 Jan 2019 14:55:10 +0000 (14:55 +0000)]
sam: fix process size reporting

5 years agolinc80: switch to the new SIO macros and buffering
Alan Cox [Wed, 16 Jan 2019 14:54:34 +0000 (14:54 +0000)]
linc80: switch to the new SIO macros and buffering

5 years agolinc80: dependancy
Alan Cox [Wed, 16 Jan 2019 14:53:36 +0000 (14:53 +0000)]
linc80: dependancy

5 years agoz80softspi: from 14K to 19K
Alan Cox [Wed, 16 Jan 2019 14:52:12 +0000 (14:52 +0000)]
z80softspi: from 14K to 19K

Unroll and apply a small optimization from herrw@pluspora to get 19K/sec or
so receive with an 8MHz Z80. At some point I need to test this on a faster
part and see if the signalling is clean enough to get higher still.

5 years agoz80sio: fix smart serial wrap bug
Alan Cox [Wed, 16 Jan 2019 14:51:49 +0000 (14:51 +0000)]
z80sio: fix smart serial wrap bug

5 years ago68000: Fix LEVEL_2 on 32bit systems
Alan Cox [Wed, 16 Jan 2019 14:51:28 +0000 (14:51 +0000)]
68000: Fix LEVEL_2 on 32bit systems

5 years agocredits: update for fortune db
Alan Cox [Wed, 16 Jan 2019 14:51:14 +0000 (14:51 +0000)]
credits: update for fortune db

5 years agoV7: add the V7 sort (ANSIfied)
Alan Cox [Wed, 16 Jan 2019 14:50:18 +0000 (14:50 +0000)]
V7: add the V7 sort (ANSIfied)

It's very compact so might be our best 8bit option

5 years agoMWC/sort: Add another sort candidate
Alan Cox [Wed, 16 Jan 2019 14:49:33 +0000 (14:49 +0000)]
MWC/sort: Add another sort candidate

The one we have in util right now isn't useful for an 8bit system, the
MWC one sort of is and scales well

5 years agocpuinfo: small updates for T80 and Soviet devices
Alan Cox [Wed, 16 Jan 2019 14:49:14 +0000 (14:49 +0000)]
cpuinfo: small updates for T80 and Soviet devices

5 years agobank16: we should use mapbase not progbase
Alan Cox [Wed, 16 Jan 2019 14:47:22 +0000 (14:47 +0000)]
bank16: we should use mapbase not progbase

Fixes I hope the COCO breakage

5 years agozx evolution: initial port sketch
Alan Cox [Fri, 11 Jan 2019 00:45:57 +0000 (00:45 +0000)]
zx evolution: initial port sketch

Whilst quite different to tbblue in some ways it's useful to be thinking about
both at the same time.

This is for baseconf. tsconf might be even more interesting ?

5 years agofortune: Ship the computer db as a default
Alan Cox [Thu, 10 Jan 2019 14:21:29 +0000 (14:21 +0000)]
fortune: Ship the computer db as a default

There are no shortage of fortune files but this one is a nice bit computing
history and hopefully doesn't contain anything too inappropriate

5 years agocromemco: switch to proper IRQ driven serial bufers
Alan Cox [Thu, 10 Jan 2019 13:13:03 +0000 (13:13 +0000)]
cromemco: switch to proper IRQ driven serial bufers

Not yet tested

5 years agobank8k: Fix last bank size
Tormod Volden [Wed, 9 Jan 2019 10:33:56 +0000 (11:33 +0100)]
bank8k: Fix last bank size

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
5 years agolowlevel-6809: Simplify interrupt_handler after kernel_flag was removed
Tormod Volden [Wed, 9 Jan 2019 10:36:40 +0000 (11:36 +0100)]
lowlevel-6809: Simplify interrupt_handler after kernel_flag was removed

Rewrite the null vector in the same mapping as where we check for it.

Also simplify comments in the syscall glue.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
5 years agogames: build fortune.dat for inclusion
Alan Cox [Thu, 10 Jan 2019 12:32:19 +0000 (12:32 +0000)]
games: build fortune.dat for inclusion

Also make the fortune data file fixed endian so we can cross build it nicely
for everyone

5 years agoz80sio: tidy up the macros a bit
Alan Cox [Wed, 9 Jan 2019 22:19:49 +0000 (22:19 +0000)]
z80sio: tidy up the macros a bit

We still need to think about how IM1 is best done

5 years agolinc80: tty updates
Alan Cox [Wed, 9 Jan 2019 19:27:50 +0000 (19:27 +0000)]
linc80: tty updates

5 years agorc2014: move the default ppide base address
Alan Cox [Wed, 9 Jan 2019 13:47:50 +0000 (13:47 +0000)]
rc2014: move the default ppide base address

Somewhere along the line RC2014 picked 0x20 rather than the 0x60 that the
retrobrew based systems used.

Remember to change the jumpers if currently using 0x60.

5 years agolinc80: continued work on proper IM2 support
Alan Cox [Wed, 9 Jan 2019 03:08:08 +0000 (03:08 +0000)]
linc80: continued work on proper IM2 support

Add IM2 driven serial interrupts with proper queues. We don't yet do all the
status and error bits right.

This enables IM2 serial but we don't gain much from it because we have yet
to tackle the core changes needed to leave other interrupt lines running for
most cases where we today DI, and to soft count, skip re-entry of the
interrupt_handler/timer proper.

5 years agolinc80: fix reboot
Alan Cox [Tue, 8 Jan 2019 23:39:46 +0000 (23:39 +0000)]
linc80: fix reboot

5 years agolinc80: fix tty warning
Alan Cox [Tue, 8 Jan 2019 23:39:28 +0000 (23:39 +0000)]
linc80: fix tty warning

5 years agoz80softspi: fix timings
Alan Cox [Tue, 8 Jan 2019 23:39:11 +0000 (23:39 +0000)]
z80softspi: fix timings

5 years agokernel: allow per major decision on direct to user space
Alan Cox [Tue, 8 Jan 2019 23:38:13 +0000 (23:38 +0000)]
kernel: allow per major decision on direct to user space

This is useful if you've got a hard disk and a floppy. For all current
platforms it resolves down to the same code as before but the flexibility is
now there if you need it.

5 years agodragon-mooh: drivewire adaptions to page map switching
Tormod Volden [Mon, 7 Jan 2019 22:08:41 +0000 (23:08 +0100)]
dragon-mooh: drivewire adaptions to page map switching

Needs a tiny change from the nx32 version.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
5 years agodragon-mooh: Only rewrite MMU when user map changes
Tormod Volden [Mon, 7 Jan 2019 22:08:40 +0000 (23:08 +0100)]
dragon-mooh: Only rewrite MMU when user map changes

map_process_a sets up the MMU from the given page map vector.

map_process_always activates the user map.

map_save and map_restore only deals with kernel vs user map, and not
which user map is in use.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
5 years agodragon-mooh: Copy only unique banks on fork
Tormod Volden [Mon, 7 Jan 2019 22:08:39 +0000 (23:08 +0100)]
dragon-mooh: Copy only unique banks on fork

Once we reach a duplicated bank in the table, we are done.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
5 years agodragon-mooh: Disable interrupts while writing task registers
Tormod Volden [Mon, 7 Jan 2019 22:08:38 +0000 (23:08 +0100)]
dragon-mooh: Disable interrupts while writing task registers

map_kernel/map_process_always are in a few cases called with interrupt
enabled (e.g. from SPI transfer routines in common). If an interrupt
hits between writing "user" to map_copy and reading the process page
map, the intermediate map_save/map_restore during interrupt will restore
"user" map, and the process page map is gone.

Make map_kernel/map_process_always "atomic" to ensure that map_copy and
task registers are always coherent.

Note that we still rely on map_process_always/map_process_x to be called
with kernel being mapped so that we can read the process page map.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
5 years agodragon-mooh: Move udata stash to 0x2000
Tormod Volden [Mon, 7 Jan 2019 22:08:37 +0000 (23:08 +0100)]
dragon-mooh: Move udata stash to 0x2000

Also add the missing link file for applications

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
5 years agobank16: if PROGBASE is non zero we do the maths wrong
Alan Cox [Tue, 8 Jan 2019 17:05:18 +0000 (17:05 +0000)]
bank16: if PROGBASE is non zero we do the maths wrong

None of our bank16k ports have a non zero progbase fortunately. Fix it anyway