FUZIX.git
9 years agoAllow easier init configuration.
David Given [Sat, 27 Jun 2015 23:06:48 +0000 (01:06 +0200)]
Allow easier init configuration.

9 years agoinit runs! But the syscall interface isn't right yet, so it just hangs.
David Given [Sat, 27 Jun 2015 23:01:21 +0000 (01:01 +0200)]
init runs! But the syscall interface isn't right yet, so it just hangs.

9 years agoUser processes start running; they can call back to the kernel via the
David Given [Sat, 27 Jun 2015 11:42:30 +0000 (13:42 +0200)]
User processes start running; they can call back to the kernel via the
syscall interface.

9 years agoPut userland back into small mode --- it simplifies things no end.
David Given [Sat, 27 Jun 2015 10:03:19 +0000 (12:03 +0200)]
Put userland back into small mode --- it simplifies things no end.
Increase the kernel stack size as the filesystem tends to blow through
it.

9 years agoSwitch back to 16-bit mode for userland; the binaries are significantly smaller
David Given [Sat, 27 Jun 2015 08:52:04 +0000 (10:52 +0200)]
Switch back to 16-bit mode for userland; the binaries are significantly smaller
and it avoids having to deal with int-vs-ptr size issues in the kernel.

9 years agoUpdate to newer SD card hardware.
David Given [Sat, 27 Jun 2015 08:43:45 +0000 (10:43 +0200)]
Update to newer SD card hardware.

9 years agoNow boots as far as loading init and trying to run it!
David Given [Thu, 25 Jun 2015 21:59:21 +0000 (23:59 +0200)]
Now boots as far as loading init and trying to run it!

9 years agoAllow files to be added to the root.
David Given [Thu, 25 Jun 2015 21:41:48 +0000 (23:41 +0200)]
Allow files to be added to the root.

9 years agoCrudely and probably incorrectly rejig userland to run in large mode.
David Given [Wed, 24 Jun 2015 21:26:52 +0000 (23:26 +0200)]
Crudely and probably incorrectly rejig userland to run in large mode.

9 years agoGet to the point of failing to load /init.
David Given [Wed, 24 Jun 2015 21:15:39 +0000 (23:15 +0200)]
Get to the point of failing to load /init.

Seems that running the kernel in large mode and user processes in small
mode isn't going to work; there are too many places where the kernel
assumes that sizeof(userptr) == sizeof(kernelptr). I'll have to rebuild
userland in large mode.

9 years agoThe SD card is much happier run at full speed.
David Given [Wed, 24 Jun 2015 20:40:41 +0000 (22:40 +0200)]
The SD card is much happier run at full speed.

9 years agoBrief moment of hardware workingness --- this is now known to be good.
David Given [Wed, 24 Jun 2015 19:42:42 +0000 (21:42 +0200)]
Brief moment of hardware workingness --- this is now known to be good.

9 years agoNow almost talks to SD cards. (I think my SD card hardware has died.)
David Given [Tue, 23 Jun 2015 20:18:53 +0000 (22:18 +0200)]
Now almost talks to SD cards. (I think my SD card hardware has died.)

9 years agoBasic interrupt handling; enough so that timers work.
David Given [Sun, 21 Jun 2015 21:56:38 +0000 (23:56 +0200)]
Basic interrupt handling; enough so that timers work.

9 years agoBoots up to the point of hanging trying to probe SD cards (no SD driver
David Given [Sun, 21 Jun 2015 17:32:36 +0000 (19:32 +0200)]
Boots up to the point of hanging trying to probe SD cards (no SD driver
software, no timers to let it fail, and I haven't built the hardware
anyway).

9 years agoBoots up to fstabinit().
David Given [Sat, 20 Jun 2015 20:34:20 +0000 (22:34 +0200)]
Boots up to fstabinit().

9 years ago*Actually* make it bootable in large mode.
David Given [Sat, 20 Jun 2015 19:54:51 +0000 (21:54 +0200)]
*Actually* make it bootable in large mode.

9 years agoBuild the kernel in large mode.
David Given [Sat, 20 Jun 2015 19:29:58 +0000 (21:29 +0200)]
Build the kernel in large mode.

9 years agoBootstrap the MSP430 kernel up to the 'Hello, world!' stage. Still running
David Given [Sat, 20 Jun 2015 18:49:26 +0000 (20:49 +0200)]
Bootstrap the MSP430 kernel up to the 'Hello, world!' stage. Still running
in small mode.

9 years agoplatform-coco3: Forgot to commit/add link script for Applications/utils
Brett Gordon [Wed, 17 Jun 2015 13:40:33 +0000 (09:40 -0400)]
platform-coco3: Forgot to commit/add link script for Applications/utils

platform-coco3:  Forgot to commit/add link script for Applications/utils.

side note:  I'll be more careful about trailing white space /
indentation. Do we prefer tabs or spaces in C code? I'll change my
emacs to give the C code a bit more indentation.

--
Brett M. Gordon,
beretta42@gmail.com

9 years agoCoCo3 Fuzix (take two)
Brett Gordon [Wed, 17 Jun 2015 11:25:08 +0000 (12:25 +0100)]
CoCo3 Fuzix (take two)

UDATA/Banking is still non-ideal.
DriveWire virtual terminal still need help.
Stupid Comments fixed
devlpr removed

9 years agococo3: trailing space stripping
Alan Cox [Wed, 17 Jun 2015 11:24:11 +0000 (12:24 +0100)]
coco3: trailing space stripping

9 years agococo3: more white space
Alan Cox [Wed, 17 Jun 2015 11:20:27 +0000 (12:20 +0100)]
coco3: more white space

9 years agococo3: trimmed trailing white space in a few spots
Alan Cox [Wed, 17 Jun 2015 11:19:56 +0000 (12:19 +0100)]
coco3: trimmed trailing white space in a few spots

9 years agococo3: indent devtty again
Alan Cox [Wed, 17 Jun 2015 11:18:50 +0000 (12:18 +0100)]
coco3: indent devtty again

It was looking a bit odd with a mix of tabs and spaces giving weird alignments
No code changes

9 years agoCoCo3 Fuzix (take two)
Brett Gordon [Wed, 17 Jun 2015 11:07:05 +0000 (12:07 +0100)]
CoCo3 Fuzix (take two)

UDATA/Banking is still non-ideal.
DriveWire virtual terminal still need help.
Stupid Comments fixed
devlpr removed

9 years agoAdd 6809 simple to the list for dev work
Alan Cox [Wed, 17 Jun 2015 11:03:19 +0000 (12:03 +0100)]
Add 6809 simple to the list for dev work

9 years agomicropack: straighten out defines
Alan Cox [Tue, 16 Jun 2015 12:35:37 +0000 (13:35 +0100)]
micropack: straighten out defines

This is our starting point for a minimal build and for Z80 gets us an 0x6000
(strictly 0x5F00) sized user space which we could push up to 0x6200.

Our target is 0x7D00, however 0x6000 is enough to run many of the apps/tools.

9 years agomicropack: experimenting with some smallness ideas
Alan Cox [Mon, 15 Jun 2015 22:13:32 +0000 (23:13 +0100)]
micropack: experimenting with some smallness ideas

9 years agotty: cannot putc_wait from an interrupt
Alan Cox [Mon, 15 Jun 2015 22:12:55 +0000 (23:12 +0100)]
tty: cannot putc_wait from an interrupt

9 years agosh: Optimize all files for size on 6809
Tormod Volden [Mon, 15 Jun 2015 21:21:43 +0000 (23:21 +0200)]
sh: Optimize all files for size on 6809

No workaround exception needed for word.c any longer.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoRemove empty toascii.c, also from build.mk
Tormod Volden [Mon, 15 Jun 2015 20:47:46 +0000 (22:47 +0200)]
Remove empty toascii.c, also from build.mk

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoBuild: Add missing library files
Tormod Volden [Mon, 15 Jun 2015 20:47:45 +0000 (22:47 +0200)]
Build: Add missing library files

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoBuild: Fix liberror.txt endianness on dragon-nx32
Tormod Volden [Mon, 15 Jun 2015 20:47:44 +0000 (22:47 +0200)]
Build: Fix liberror.txt endianness on dragon-nx32

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoanalysemap: Fix to with with newer SDCC
Alan Cox [Sun, 14 Jun 2015 23:24:39 +0000 (00:24 +0100)]
analysemap: Fix to with with newer SDCC

9 years agoMerge pull request #209 from davidgiven/msp430
EtchedPixels [Sun, 14 Jun 2015 11:18:46 +0000 (12:18 +0100)]
Merge pull request #209 from davidgiven/msp430

Fix 6809 Travis setup; add MSP430

9 years agostring.h: enable SDCC builtins
Alan Cox [Sun, 14 Jun 2015 10:14:31 +0000 (11:14 +0100)]
string.h: enable SDCC builtins

Shrinks binaries a little bit more

9 years agossh: kill is no longer expensive with tiny atoi
Alan Cox [Sat, 13 Jun 2015 21:39:34 +0000 (22:39 +0100)]
ssh: kill is no longer expensive with tiny atoi

9 years agolib: add a smaller atoi
Alan Cox [Sat, 13 Jun 2015 21:38:49 +0000 (22:38 +0100)]
lib: add a smaller atoi

9 years agotelinit: fix SDCC build
Alan Cox [Sat, 13 Jun 2015 21:38:20 +0000 (22:38 +0100)]
telinit: fix SDCC build

9 years agoGrr, brain fade.
David Given [Sat, 13 Jun 2015 11:59:56 +0000 (13:59 +0200)]
Grr, brain fade.

9 years agoMore dependency fixing.
David Given [Sat, 13 Jun 2015 11:57:03 +0000 (13:57 +0200)]
More dependency fixing.

9 years agoFix i386 issues with lwtools.
David Given [Sat, 13 Jun 2015 11:34:32 +0000 (13:34 +0200)]
Fix i386 issues with lwtools.

9 years agoFix spilling orrer.
David Given [Sat, 13 Jun 2015 11:29:09 +0000 (13:29 +0200)]
Fix spilling orrer.

9 years agoMerge from upstream.
David Given [Sat, 13 Jun 2015 10:36:13 +0000 (12:36 +0200)]
Merge from upstream.

9 years agoSlowly getting there...
David Given [Sat, 13 Jun 2015 10:33:42 +0000 (12:33 +0200)]
Slowly getting there...

9 years agoChange MSP430 install path ('Error changing permissions to 0755 in /usr/local/bin...
David Given [Sat, 13 Jun 2015 10:28:39 +0000 (12:28 +0200)]
Change MSP430 install path ('Error changing permissions to 0755 in /usr/local/bin/search'?).

9 years agoTurns out the MSP430 compiler needs the 32-bit environment.
David Given [Sat, 13 Jun 2015 10:20:24 +0000 (12:20 +0200)]
Turns out the MSP430 compiler needs the 32-bit environment.

9 years agoBuild: Add dragon-nx32 to travis CI script
Tormod Volden [Sat, 13 Jun 2015 09:33:26 +0000 (11:33 +0200)]
Build: Add dragon-nx32 to travis CI script

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agozx128: add vtattr_cap
Alan Cox [Sat, 13 Jun 2015 09:47:01 +0000 (10:47 +0100)]
zx128: add vtattr_cap

9 years agopx4plus: vtattr_cap addition
Alan Cox [Sat, 13 Jun 2015 09:46:31 +0000 (10:46 +0100)]
px4plus: vtattr_cap addition

9 years agomtx: add vtattr_cap and note awkward special case to do
Alan Cox [Sat, 13 Jun 2015 09:46:07 +0000 (10:46 +0100)]
mtx: add vtattr_cap and note awkward special case to do

9 years agobihx: fix warning
Alan Cox [Sat, 13 Jun 2015 09:45:53 +0000 (10:45 +0100)]
bihx: fix warning

9 years agoBuild: Add reboot to dragon-nx32
Tormod Volden [Sat, 13 Jun 2015 09:06:56 +0000 (11:06 +0200)]
Build: Add reboot to dragon-nx32

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoBuild: Add init to the root directory
Tormod Volden [Sat, 13 Jun 2015 09:06:55 +0000 (11:06 +0200)]
Build: Add init to the root directory

Because of how the parsing is done, it needs a double slash.
Also add the missing inittab.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoBuild: Build disk not floppy image for dragon-nx32
Tormod Volden [Sat, 13 Jun 2015 09:06:54 +0000 (11:06 +0200)]
Build: Build disk not floppy image for dragon-nx32

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoBuild: gcc: Don't compile into separate sections
Tormod Volden [Sat, 13 Jun 2015 09:06:53 +0000 (11:06 +0200)]
Build: gcc: Don't compile into separate sections

Now that we link libraries correctly, we shouldn't
need the garbage collection of unused objects.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoBuild: Link 6809 libc and libgcc as libraries
Tormod Volden [Sat, 13 Jun 2015 09:06:52 +0000 (11:06 +0200)]
Build: Link 6809 libc and libgcc as libraries

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoTweak msp430 compiler setup.
David Given [Fri, 12 Jun 2015 20:28:33 +0000 (22:28 +0200)]
Tweak msp430 compiler setup.

9 years agoBuild: Use lwtools ld wrapper for 6809
Tormod Volden [Fri, 12 Jun 2015 17:10:46 +0000 (19:10 +0200)]
Build: Use lwtools ld wrapper for 6809

This is a patched version. We use our own copy until
we get our changes upstream.

Also add a simple objcopy wrapper.

Add a catch-all text segment pattern to the linker script
because the build uses gcc -ffunction-sections.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoBuild: Support reversed byte order filesystems
Tormod Volden [Fri, 12 Jun 2015 17:10:45 +0000 (19:10 +0200)]
Build: Support reversed byte order filesystems

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoFix typo.
David Given [Fri, 12 Jun 2015 19:34:03 +0000 (21:34 +0200)]
Fix typo.

9 years agoAttempt to build MSP430 userland.
David Given [Fri, 12 Jun 2015 19:22:23 +0000 (21:22 +0200)]
Attempt to build MSP430 userland.

9 years agoplatforms: more vtattr fixups
Alan Cox [Thu, 11 Jun 2015 21:14:18 +0000 (22:14 +0100)]
platforms: more vtattr fixups

None of these actually add an attr support yet

9 years agodragon: fix build
Alan Cox [Thu, 11 Jun 2015 19:51:59 +0000 (20:51 +0100)]
dragon: fix build

9 years agoMerge pull request #207 from davidgiven/travis
EtchedPixels [Wed, 10 Jun 2015 22:50:32 +0000 (23:50 +0100)]
Merge pull request #207 from davidgiven/travis

Use precompiled sdcc for Travis builds

9 years agotrs80: add the needed blank attribute variable
Alan Cox [Wed, 10 Jun 2015 22:50:15 +0000 (23:50 +0100)]
trs80: add the needed blank attribute variable

9 years agoFix typo.
David Given [Wed, 10 Jun 2015 22:33:18 +0000 (00:33 +0200)]
Fix typo.

9 years agodragon-nx32: add attribute support
Alan Cox [Wed, 10 Jun 2015 22:24:05 +0000 (23:24 +0100)]
dragon-nx32: add attribute support

Useful as an example hopefully. Everything supported except flash, which isn't
in the hardware in a practical manner.

9 years agodecbdragon: fix warning
Alan Cox [Wed, 10 Jun 2015 22:23:52 +0000 (23:23 +0100)]
decbdragon: fix warning

9 years agovt: add bits for attribute setting/reporting
Alan Cox [Wed, 10 Jun 2015 22:22:35 +0000 (23:22 +0100)]
vt: add bits for attribute setting/reporting

Done with a single escape code to make the parsing tiny. It's then up to the
platform what if anything to offer, but if nothing is supported then the
platform needs the vtattr_cap byte defining.

9 years agoUse the precompiled sdcc rather than building it ourselves.
David Given [Wed, 10 Jun 2015 22:08:22 +0000 (00:08 +0200)]
Use the precompiled sdcc rather than building it ourselves.

9 years agotrs80: fix incorrect tty struct reference
Alan Cox [Tue, 9 Jun 2015 21:51:15 +0000 (22:51 +0100)]
trs80: fix incorrect tty struct reference

9 years agoMerge pull request #206 from davidgiven/m6809
EtchedPixels [Tue, 9 Jun 2015 21:50:58 +0000 (22:50 +0100)]
Merge pull request #206 from davidgiven/m6809

Some 6809 build system fixes

9 years agoMade a few minor fixes where the build system was assuming things about
David Given [Tue, 9 Jun 2015 21:24:33 +0000 (23:24 +0200)]
Made a few minor fixes where the build system was assuming things about
targetgcc platforms that it shouldn't. Add some workaround scripts to
deal with the 6809 platform not actually using binutils as a backend to
gcc.

9 years agoSwitch to using a precompiled cc65.
David Given [Tue, 9 Jun 2015 21:10:35 +0000 (23:10 +0200)]
Switch to using a precompiled cc65.

9 years agocpp: build with -Os
Alan Cox [Mon, 8 Jun 2015 21:40:43 +0000 (22:40 +0100)]
cpp: build with -Os

9 years agodragon-nx32: Add new build system support
Tormod Volden [Mon, 8 Jun 2015 21:20:50 +0000 (23:20 +0200)]
dragon-nx32: Add new build system support

The m6809-unknown-ld wrapper must be patched.

libc-functions.localsrcs doesn't work yet though.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agocpp: CPP from bcc
Alan Cox [Mon, 8 Jun 2015 21:30:51 +0000 (22:30 +0100)]
cpp: CPP from bcc

48K rather than 32K target. Some thought might be needed for a 32K cpp
however!

9 years agold09: first cut
Alan Cox [Mon, 8 Jun 2015 21:22:55 +0000 (22:22 +0100)]
ld09: first cut

Needs the output side replacing with a simple binary writer for FUZIX
format headers.

This one actually should fit nicely on a Dragon32 !

9 years agoas09: 6809 assembler for native asm work
Alan Cox [Mon, 8 Jun 2015 21:03:48 +0000 (22:03 +0100)]
as09: 6809 assembler for native asm work

Right now this won't *quite* fit on the Dragon32, but I think it would with
a tiny bit of tidying up and if 6809 is fixed to not suck in stdio always
(or has a stdio free link option as Z80 has for now)

9 years agoinit: add telinit code
Alan Cox [Mon, 8 Jun 2015 19:33:23 +0000 (20:33 +0100)]
init: add telinit code

9 years agogets: correct behaviour of gets_s
Alan Cox [Mon, 8 Jun 2015 19:32:56 +0000 (20:32 +0100)]
gets: correct behaviour of gets_s

9 years agoFrom: Brett Gordon <beretta42@gmail.com>
Alan Cox [Mon, 8 Jun 2015 14:02:54 +0000 (15:02 +0100)]
From: Brett Gordon <beretta42@gmail.com>

reboot: Fix missing newline

9 years agotrap_reboot: fix the first batch of platforms to export it
Alan Cox [Sun, 7 Jun 2015 23:35:24 +0000 (00:35 +0100)]
trap_reboot: fix the first batch of platforms to export it

9 years agozx128: export trap_reboot
Alan Cox [Sun, 7 Jun 2015 22:45:18 +0000 (23:45 +0100)]
zx128: export trap_reboot

9 years agoz80: first cut at lowlevel-z80-banked.S for new pre-empt
Alan Cox [Sun, 7 Jun 2015 22:45:05 +0000 (23:45 +0100)]
z80: first cut at lowlevel-z80-banked.S for new pre-empt

9 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Sun, 7 Jun 2015 22:30:13 +0000 (23:30 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

9 years agoMerge pull request #202 from davidgiven/travis
EtchedPixels [Sun, 7 Jun 2015 22:28:34 +0000 (23:28 +0100)]
Merge pull request #202 from davidgiven/travis

Add Travis continuous integration support

9 years agodragon-nx32: Set BASIC cold start flag
Tormod Volden [Sun, 7 Jun 2015 09:47:26 +0000 (11:47 +0200)]
dragon-nx32: Set BASIC cold start flag

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agoFixup after merge.
David Given [Sun, 7 Jun 2015 21:19:14 +0000 (23:19 +0200)]
Fixup after merge.

9 years agoMerge from master.
David Given [Sun, 7 Jun 2015 21:07:46 +0000 (23:07 +0200)]
Merge from master.

9 years agoUpdate to work with sdcc snapshot. opt-code-size is apparently broken, so use
David Given [Sun, 7 Jun 2015 20:53:15 +0000 (22:53 +0200)]
Update to work with sdcc snapshot. opt-code-size is apparently broken, so use
opt-code-speed instead.

9 years agoDon't download sdcc directly from SourceForge; instead go via a curated github
David Given [Sun, 7 Jun 2015 20:22:46 +0000 (22:22 +0200)]
Don't download sdcc directly from SourceForge; instead go via a curated github
repository.

9 years agofilesystem: add /var/run for utmp
Alan Cox [Sun, 7 Jun 2015 09:24:44 +0000 (10:24 +0100)]
filesystem: add /var/run for utmp

9 years agoAdd sh to disk image
Tormod Volden [Sun, 7 Jun 2015 09:00:59 +0000 (11:00 +0200)]
Add sh to disk image

Also fix inittab file permissions.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
9 years agocarts: add a lookup for slot/cartridge
Alan Cox [Sun, 7 Jun 2015 09:23:15 +0000 (10:23 +0100)]
carts: add a lookup for slot/cartridge

Hopefully we can eventually sort of autodetect floppy type etc

9 years agodragon-nx-32: reboot method
Alan Cox [Sun, 7 Jun 2015 09:22:34 +0000 (10:22 +0100)]
dragon-nx-32: reboot method

Doesn't however seem to get us back into basic. More research needed

9 years agouadmin: make A_REBOOT call trap_reboot
Alan Cox [Sat, 6 Jun 2015 23:01:43 +0000 (00:01 +0100)]
uadmin: make A_REBOOT call trap_reboot

9 years agoIt's different from Debian, too.
David Given [Sat, 6 Jun 2015 22:54:48 +0000 (00:54 +0200)]
It's different from Debian, too.