FUZIX.git
7 years agosunrise: assorted fixes
Alan Cox [Sat, 6 Apr 2019 21:33:57 +0000 (22:33 +0100)]
sunrise: assorted fixes

With these fixed we can mount the root fs and load stuff from the Sunrise
IDE controller. There are a ton of races with switching and interrupts to
fix after this

7 years agomsx1: we don't have a stash on one process model remove old bits
Alan Cox [Sat, 6 Apr 2019 21:33:12 +0000 (22:33 +0100)]
msx1: we don't have a stash on one process model remove old bits

7 years agosc108: need to support ACIA
Alan Cox [Sun, 31 Mar 2019 21:16:09 +0000 (22:16 +0100)]
sc108: need to support ACIA

7 years agomtx: update README
Alan Cox [Sun, 31 Mar 2019 21:15:47 +0000 (22:15 +0100)]
mtx: update README

Still work to do before we are up and running on the real box and CFII+

7 years ago8080/8085: optimizations that are useful go to -O4
Alan Cox [Sun, 31 Mar 2019 21:15:14 +0000 (22:15 +0100)]
8080/8085: optimizations that are useful go to -O4

7 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Sun, 31 Mar 2019 21:14:44 +0000 (22:14 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

7 years agoMerge pull request #697 from beretta42/tar
EtchedPixels [Sun, 31 Mar 2019 21:13:58 +0000 (22:13 +0100)]
Merge pull request #697 from beretta42/tar

Tar take 2

7 years agotar: embolster documentation!
Brett Gordon [Sat, 30 Mar 2019 20:37:28 +0000 (16:37 -0400)]
tar: embolster documentation!

7 years agotar: debug stat problems
Brett Gordon [Sat, 30 Mar 2019 20:28:47 +0000 (16:28 -0400)]
tar: debug stat problems

* Don't report chown failure. (this would bombard non-priv users tty)
* We're storing too much of fuzix's stat.mode in tar header! (see
header.type)
* got to specify some sort of file mode with O_CREAT !

7 years agotar: support block factor for tape
Brett Gordon [Sat, 30 Mar 2019 19:27:00 +0000 (15:27 -0400)]
tar: support block factor for tape

7 years agosyscall_fs2: Add parentheses to fix gcc warning
Tormod Volden [Fri, 15 Mar 2019 21:47:19 +0000 (22:47 +0100)]
syscall_fs2: Add parentheses to fix gcc warning

[Alan's note: This is correct. The condition checks are really confusing and
 probably we should have an in_group type test that includes the egid.]

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
7 years agodragon-mooh: Fix signedness mismatch in vc functions
Tormod Volden [Fri, 15 Mar 2019 21:47:21 +0000 (22:47 +0100)]
dragon-mooh: Fix signedness mismatch in vc functions

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
7 years agofilesys: Fix gcc warning
Tormod Volden [Fri, 15 Mar 2019 21:47:20 +0000 (22:47 +0100)]
filesys: Fix gcc warning

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
7 years agodragon-nx32: Update custom /etc/rc with mount change
Tormod Volden [Fri, 15 Mar 2019 21:47:18 +0000 (22:47 +0100)]
dragon-nx32: Update custom /etc/rc with mount change

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
7 years agoREADME: update on 8080/5 front
Alan Cox [Sat, 23 Mar 2019 21:05:52 +0000 (21:05 +0000)]
README: update on 8080/5 front

7 years agoatarist: Start filling in the drivers
Alan Cox [Sat, 23 Mar 2019 20:55:18 +0000 (20:55 +0000)]
atarist: Start filling in the drivers

Floppy and ACSI to begin with, along with the IDE adapters often added.

7 years agombr: note we will need to make this return a code at some point
Alan Cox [Sat, 23 Mar 2019 20:51:44 +0000 (20:51 +0000)]
mbr: note we will need to make this return a code at some point

There are systems we might find multiple partition types on and we need to not
install both sets wrongly

7 years agodevide: fix missing REG in name
Alan Cox [Sat, 23 Mar 2019 20:51:29 +0000 (20:51 +0000)]
devide: fix missing REG in name

7 years agoahdi: first cut at Atari partition formats
Alan Cox [Sat, 23 Mar 2019 20:50:59 +0000 (20:50 +0000)]
ahdi: first cut at Atari partition formats

7 years agomtx: Memotech updates
Alan Cox [Mon, 18 Mar 2019 23:08:35 +0000 (23:08 +0000)]
mtx: Memotech updates

Start putting in place the stuff for the CFII and the Propeller based 80 column
card. Also fill in some of the graphics and other bits. Fix the maximum memory
banks.

There are still some really ugly things to deal with. Do we expose the propeller
directly or via the VT layer. How do we align that with the graphics ioctls.

Stil need to think about UDGs

7 years agographics: add another format
Alan Cox [Mon, 18 Mar 2019 23:02:44 +0000 (23:02 +0000)]
graphics: add another format

Memotech graphic blocks are 2 x 4 for 256 symbols

7 years agosbcv2: update README
Alan Cox [Sun, 17 Mar 2019 14:35:21 +0000 (14:35 +0000)]
sbcv2: update README

7 years agoatarist: get the fdc probing and add blkdev for the block devices
Alan Cox [Sun, 17 Mar 2019 00:39:09 +0000 (00:39 +0000)]
atarist: get the fdc probing and add blkdev for the block devices

No actual hard disk drivers yet, and it wil also need a GEMDOS partition table
parser adding.

7 years agoatarist: first cut at writing a floppy driver for the Atari 1772 + DMA
Alan Cox [Sun, 17 Mar 2019 00:15:53 +0000 (00:15 +0000)]
atarist: first cut at writing a floppy driver for the Atari 1772 + DMA

Heavily cribbed from the GPL EmuTOS codebase

7 years agoatarist: 200Hz ticker
Alan Cox [Sun, 17 Mar 2019 00:15:19 +0000 (00:15 +0000)]
atarist: 200Hz ticker

7 years agoatarist: get the timers and console working
Alan Cox [Sat, 16 Mar 2019 22:13:31 +0000 (22:13 +0000)]
atarist: get the timers and console working

No device drivers so you can't yet mount a file system

7 years agoatari-st: this gets us to the point the mono console kind of works-ish
Alan Cox [Sat, 16 Mar 2019 16:26:19 +0000 (16:26 +0000)]
atari-st: this gets us to the point the mono console kind of works-ish

Sufficient to print useful messages. We still need to debug this further and
sort out non mono displays.

7 years ago68000: add Atari ST bootblock checksumming tool
Alan Cox [Sat, 16 Mar 2019 16:24:40 +0000 (16:24 +0000)]
68000: add Atari ST bootblock checksumming tool

7 years agorc2014: fix up the banking code and update the bootloader
Alan Cox [Sat, 16 Mar 2019 00:22:26 +0000 (00:22 +0000)]
rc2014: fix up the banking code and update the bootloader

At this point the banked kernel appears to work. Needs a bit more testing and
to be tested on the actual board.

7 years agodevide: make the generic devide correct for banked and other cases
Alan Cox [Sat, 16 Mar 2019 00:21:51 +0000 (00:21 +0000)]
devide: make the generic devide correct for banked and other cases

Only map kernel back if we map something else

7 years agorc2014: lay groundwork to make rc2014 run a banked kernel.
Alan Cox [Fri, 15 Mar 2019 22:03:37 +0000 (22:03 +0000)]
rc2014: lay groundwork to make rc2014 run a banked kernel.

RC2014 has so many toys they do not all fit any more and there is still sound,
PIO and TMS9918A support to add!

This breaks everything. The loader needs a rewrite and the code debugging so
if you are doing a build go back before this commit

7 years agods1302: unify all the code and banked versions too
Alan Cox [Fri, 15 Mar 2019 22:01:47 +0000 (22:01 +0000)]
ds1302: unify all the code and banked versions too

7 years agodevfd_hw: add a banked version
Alan Cox [Fri, 15 Mar 2019 22:01:30 +0000 (22:01 +0000)]
devfd_hw: add a banked version

7 years agotrs80m1: fix banking to cover CODE4
Alan Cox [Fri, 15 Mar 2019 20:02:35 +0000 (20:02 +0000)]
trs80m1: fix banking to cover CODE4

7 years agomore type alignments
Alan Cox [Fri, 15 Mar 2019 19:21:40 +0000 (19:21 +0000)]
more type alignments

None of these really matter as uint8_t == uint_fast8_t for Z80 but it's good
to get it and the signed/unsigned clashes tidied up.

7 years agodev: sync more types
Alan Cox [Fri, 15 Mar 2019 19:21:19 +0000 (19:21 +0000)]
dev: sync more types

7 years agorc2014-tiny: align types
Alan Cox [Thu, 14 Mar 2019 14:34:10 +0000 (14:34 +0000)]
rc2014-tiny: align types

7 years agorc2014-sbc64: align types and fix a Makefile ordering bug
Alan Cox [Thu, 14 Mar 2019 14:09:50 +0000 (14:09 +0000)]
rc2014-sbc64: align types and fix a Makefile ordering bug

We need boot to be built to generate loader.inc, not to depend on boot.s

7 years agorc2014: align types
Alan Cox [Thu, 14 Mar 2019 14:00:35 +0000 (14:00 +0000)]
rc2014: align types

7 years agop112: align types
Alan Cox [Thu, 14 Mar 2019 13:38:36 +0000 (13:38 +0000)]
p112: align types

7 years agodevscsi: align types
Alan Cox [Thu, 14 Mar 2019 13:38:22 +0000 (13:38 +0000)]
devscsi: align types

7 years agodev: more device type alignment
Alan Cox [Wed, 13 Mar 2019 23:42:07 +0000 (23:42 +0000)]
dev: more device type alignment

7 years agon8vem-mark4: align types
Alan Cox [Wed, 13 Mar 2019 23:41:48 +0000 (23:41 +0000)]
n8vem-mark4: align types

7 years agomulticomp09: align types
Alan Cox [Wed, 13 Mar 2019 23:05:49 +0000 (23:05 +0000)]
multicomp09: align types

7 years agomtx: align with type changes and update TODO list
Alan Cox [Wed, 13 Mar 2019 23:01:35 +0000 (23:01 +0000)]
mtx: align with type changes and update TODO list

Time to move this onto real hardware with CF card support etc

7 years agomsx2: align types
Alan Cox [Wed, 13 Mar 2019 22:50:22 +0000 (22:50 +0000)]
msx2: align types

7 years agotty: fix some of the kputchar sign breakages
Alan Cox [Wed, 13 Mar 2019 22:34:50 +0000 (22:34 +0000)]
tty: fix some of the kputchar sign breakages

7 years agodragon-nx32: initial type resync
Alan Cox [Wed, 13 Mar 2019 22:32:36 +0000 (22:32 +0000)]
dragon-nx32: initial type resync

7 years agovt: align with type changes
Alan Cox [Wed, 13 Mar 2019 22:27:02 +0000 (22:27 +0000)]
vt: align with type changes

We ought to fix up the internal type usages but a lot of these lead into asm
code so some review is called for.

7 years agococo3: initial alignment of type changes
Alan Cox [Wed, 13 Mar 2019 22:26:03 +0000 (22:26 +0000)]
coco3: initial alignment of type changes

More to do eventually

7 years agococo2cart: align with type changes
Alan Cox [Wed, 13 Mar 2019 22:25:50 +0000 (22:25 +0000)]
coco2cart: align with type changes

7 years agodevsd:fix breakage from type conversions
Alan Cox [Wed, 13 Mar 2019 22:25:37 +0000 (22:25 +0000)]
devsd:fix breakage from type conversions

7 years agoamstradnc: align with uint_fast8_t and tty unsigned changes
Alan Cox [Wed, 13 Mar 2019 22:20:10 +0000 (22:20 +0000)]
amstradnc: align with uint_fast8_t and tty unsigned changes

7 years agov68: fix the devtty type changes that matter
Alan Cox [Wed, 13 Mar 2019 20:52:46 +0000 (20:52 +0000)]
v68: fix the devtty type changes that matter

7 years agov85: align with the _fast8_t changes
Alan Cox [Wed, 13 Mar 2019 20:52:28 +0000 (20:52 +0000)]
v85: align with the _fast8_t changes

7 years agov8080: align with the _fast8_t changes
Alan Cox [Wed, 13 Mar 2019 20:52:15 +0000 (20:52 +0000)]
v8080: align with the _fast8_t changes

7 years agodev: bring some of the core devices we need in line with uint_fast8_t
Alan Cox [Wed, 13 Mar 2019 20:51:32 +0000 (20:51 +0000)]
dev: bring some of the core devices we need in line with uint_fast8_t

We can defer a lot because only 8080/8085 at this point have it differing
from uint8_t

7 years agokernel: core changes to get uint_fast8_t into the drivr layer
Alan Cox [Wed, 13 Mar 2019 20:50:34 +0000 (20:50 +0000)]
kernel: core changes to get uint_fast8_t into the drivr layer

This whole set of work saves us a mindboggling 2.2K on 8080/8085 !

7 years agousermem: Fix accidentally 16bitisms
Alan Cox [Wed, 13 Mar 2019 20:48:55 +0000 (20:48 +0000)]
usermem: Fix accidentally 16bitisms

In some 32bit cases we use the generic valaddr(). Thus we shouldn't cast things
to 16bit or hardcode 0xFFFF. Fix these.

7 years agosyscall_exec32: using unsigned for names
Alan Cox [Wed, 13 Mar 2019 20:47:57 +0000 (20:47 +0000)]
syscall_exec32: using unsigned for names

7 years agomsm5832: sync to new prototypes
Alan Cox [Wed, 13 Mar 2019 18:53:29 +0000 (18:53 +0000)]
msm5832: sync to new prototypes

7 years agov8080: sync tty to new prototypes
Alan Cox [Wed, 13 Mar 2019 18:52:40 +0000 (18:52 +0000)]
v8080: sync tty to new prototypes

7 years agoide: optimise internal logic for uint_fast8_t
Alan Cox [Wed, 13 Mar 2019 18:52:17 +0000 (18:52 +0000)]
ide: optimise internal logic for uint_fast8_t

7 years agov8080: change to match new prototypes
Alan Cox [Wed, 13 Mar 2019 18:51:43 +0000 (18:51 +0000)]
v8080: change to match new prototypes

7 years agotty: use _fast8_t types
Alan Cox [Wed, 13 Mar 2019 18:44:19 +0000 (18:44 +0000)]
tty: use _fast8_t types

This affects the core and the platform code but as only 8080 and 8085 currently
have a non char fast type we don't have to fix it all up at once

7 years agov8080: add the floppy driver I forgot to commit originally
Alan Cox [Wed, 13 Mar 2019 18:31:47 +0000 (18:31 +0000)]
v8080: add the floppy driver I forgot to commit originally

7 years agov8080: low hanging fruit for _fast8_t
Alan Cox [Wed, 13 Mar 2019 18:30:26 +0000 (18:30 +0000)]
v8080: low hanging fruit for _fast8_t

7 years agov85: use _fast8_t types
Alan Cox [Wed, 13 Mar 2019 18:27:06 +0000 (18:27 +0000)]
v85: use _fast8_t types

7 years agokernel: use _fast8_t types
Alan Cox [Wed, 13 Mar 2019 18:26:32 +0000 (18:26 +0000)]
kernel: use _fast8_t types

7 years agodevide_discard: tidy up some particularly horrible code gen
Alan Cox [Wed, 13 Mar 2019 18:25:34 +0000 (18:25 +0000)]
devide_discard: tidy up some particularly horrible code gen

7 years agocpu: introduce _fast8_t types
Alan Cox [Wed, 13 Mar 2019 18:24:05 +0000 (18:24 +0000)]
cpu: introduce _fast8_t types

The 8080 compiler is much happier using 16bits for working values

7 years agocrt0_nostdio-z80: remove bogus ;
Alan Cox [Tue, 12 Mar 2019 23:21:02 +0000 (23:21 +0000)]
crt0_nostdio-z80: remove bogus ;

7 years agops: adopt new p_time meaning and tidy output further
Alan Cox [Tue, 12 Mar 2019 23:20:43 +0000 (23:20 +0000)]
ps: adopt new p_time meaning and tidy output further

7 years agokernel: change p_time (the start time)
Alan Cox [Tue, 12 Mar 2019 22:58:05 +0000 (22:58 +0000)]
kernel: change p_time (the start time)

We really want to know this in ticks not time otherwise it gets nonsensical
when you set the clock. In particular init is almost certainly created with a
bogus time of day.

It's then easy enough to fix ps to instead ask for the tick counter and do
the maths relative to current time to work out what is going on.

Also conveniently fixes the 2038 issue

7 years agotimer: actually we have until a bit after 2100 to fix this
Alan Cox [Tue, 12 Mar 2019 22:57:41 +0000 (22:57 +0000)]
timer: actually we have until a bit after 2100 to fix this

7 years agops: note something to revisit
Alan Cox [Tue, 12 Mar 2019 22:50:34 +0000 (22:50 +0000)]
ps: note something to revisit

7 years agoinode: fix the pipe deadlock
Alan Cox [Tue, 12 Mar 2019 22:48:06 +0000 (22:48 +0000)]
inode: fix the pipe deadlock

I think this will do the trick. It could do with more review and testing.

7 years agov85: don't keep temporaries
Alan Cox [Tue, 12 Mar 2019 22:02:08 +0000 (22:02 +0000)]
v85: don't keep temporaries

We are no longer debugging the discard tool

7 years agops: fix formatting messes
Alan Cox [Tue, 12 Mar 2019 22:01:38 +0000 (22:01 +0000)]
ps: fix formatting messes

7 years agov85: add discard segment
Alan Cox [Tue, 12 Mar 2019 22:01:10 +0000 (22:01 +0000)]
v85: add discard segment

We don't yet reclaim it for buffers

7 years agodiscard85: make this work
Alan Cox [Tue, 12 Mar 2019 21:59:35 +0000 (21:59 +0000)]
discard85: make this work

7 years agoack2kernel: don't core dump if code goes over the end of RAM
Alan Cox [Tue, 12 Mar 2019 21:59:18 +0000 (21:59 +0000)]
ack2kernel: don't core dump if code goes over the end of RAM

7 years agocpu-8080: clean up header a bit
Alan Cox [Tue, 12 Mar 2019 21:58:24 +0000 (21:58 +0000)]
cpu-8080: clean up header a bit

7 years agosyscall_fs: remove dead function
Alan Cox [Tue, 12 Mar 2019 16:51:10 +0000 (16:51 +0000)]
syscall_fs: remove dead function

7 years agosyscall_fs3: remove some temporaries that make code generation worse
Alan Cox [Tue, 12 Mar 2019 16:45:53 +0000 (16:45 +0000)]
syscall_fs3: remove some temporaries that make code generation worse

7 years agov85: use 8085 optimized tricks.s
Alan Cox [Tue, 12 Mar 2019 00:18:51 +0000 (00:18 +0000)]
v85: use 8085 optimized tricks.s

7 years ago8085: minimal optimizations for fixed bank
Alan Cox [Tue, 12 Mar 2019 00:18:33 +0000 (00:18 +0000)]
8085: minimal optimizations for fixed bank

7 years agousermem_std-8085: and with uput it's easy to do uget
Alan Cox [Tue, 12 Mar 2019 00:15:22 +0000 (00:15 +0000)]
usermem_std-8085: and with uput it's easy to do uget

7 years agousermem_std-8085: add optimized uput
Alan Cox [Tue, 12 Mar 2019 00:11:52 +0000 (00:11 +0000)]
usermem_std-8085: add optimized uput

7 years agov85: use 8085 optimization work
Alan Cox [Tue, 12 Mar 2019 00:07:33 +0000 (00:07 +0000)]
v85: use 8085 optimization work

7 years ago8085: some basic 8085 optimizing work
Alan Cox [Tue, 12 Mar 2019 00:07:14 +0000 (00:07 +0000)]
8085: some basic 8085 optimizing work

7 years agocpu-8080: remove a fixed fixme
Alan Cox [Tue, 12 Mar 2019 00:06:44 +0000 (00:06 +0000)]
cpu-8080: remove a fixed fixme

7 years ago68000: dw Makefile
Alan Cox [Mon, 11 Mar 2019 20:04:40 +0000 (20:04 +0000)]
68000: dw Makefile

7 years ago8080: commit games Makefile
Alan Cox [Mon, 11 Mar 2019 20:04:00 +0000 (20:04 +0000)]
8080: commit games Makefile

We don't build most games due a compiler problem

7 years agousermem: fix warning caused by missing cast
Alan Cox [Mon, 11 Mar 2019 14:17:57 +0000 (14:17 +0000)]
usermem: fix warning caused by missing cast

7 years agoeasy-z80: arrange memory map correctly for alignments
Alan Cox [Sun, 10 Mar 2019 23:33:54 +0000 (23:33 +0000)]
easy-z80: arrange memory map correctly for alignments

And with this it seems to actually work

7 years agoeasyz80: we need to di before setup
Alan Cox [Sun, 10 Mar 2019 01:05:59 +0000 (01:05 +0000)]
easyz80: we need to di before setup

7 years agosh: we don't use stdio so don't suck it in at all
Alan Cox [Sun, 10 Mar 2019 00:42:03 +0000 (00:42 +0000)]
sh: we don't use stdio so don't suck it in at all

And no .. fsh is still too big to run in 32K userspace sorry

7 years agosh: fix out of memory handling
Alan Cox [Sun, 10 Mar 2019 00:41:10 +0000 (00:41 +0000)]
sh: fix out of memory handling

The original code doesn't actually handle out of memory but explodes. On a PDP11
I guess that's merely annoying, on a Z80 it tends to break more. Add a proper
out of memory exit.

7 years agoz80: brk to the correct point in the relocatable binaries
Alan Cox [Sun, 10 Mar 2019 00:31:07 +0000 (00:31 +0000)]
z80: brk to the correct point in the relocatable binaries

In the cases where we couldn't put the relocations into the end of data and
make it BSS we end up with a binary that is a bit bigger than expected. Most
stuff doesn't care but for correctness and tight memory cases use brk() to
put the end of BSS back at the right point so future sbrk() calls give the
expected result.