FUZIX.git
8 years agoz80pack: add this lot to the build
Alan Cox [Mon, 11 Jan 2016 19:06:40 +0000 (19:06 +0000)]
z80pack: add this lot to the build

8 years agoz80pack: add a network socket simulation helper
Alan Cox [Mon, 11 Jan 2016 19:05:48 +0000 (19:05 +0000)]
z80pack: add a network socket simulation helper

This just uses the 3rd network virtual serial. There's a small tweak to the
cpmsim source also needed to report bit 2 as "carrier"

8 years agonet_at: silly test stack
Alan Cox [Mon, 11 Jan 2016 19:04:08 +0000 (19:04 +0000)]
net_at: silly test stack

The first bits of a "network" stack which implements a single offload socket
driven via AT commands. It's easier to debug this and then tackle stuff like
the WizNet5200 offloads and perhaps Drivewire for offload stacks.

8 years agonet: shuffle things around and add syscall to protocol stack bindings
Alan Cox [Mon, 11 Jan 2016 19:03:40 +0000 (19:03 +0000)]
net: shuffle things around and add syscall to protocol stack bindings

8 years agokernel: a couple of error numbers we'll need for networking
Alan Cox [Mon, 11 Jan 2016 19:01:55 +0000 (19:01 +0000)]
kernel: a couple of error numbers we'll need for networking

8 years agocpu: add a standardised BIG_ENDIAN define
Alan Cox [Mon, 11 Jan 2016 19:01:41 +0000 (19:01 +0000)]
cpu: add a standardised BIG_ENDIAN define

8 years agonet: hook together all the networking kernel bits into z80pack
Alan Cox [Sun, 10 Jan 2016 16:23:58 +0000 (16:23 +0000)]
net: hook together all the networking kernel bits into z80pack

This doesn't give us anything remotely useful yet but means it's possible
to start testing out the syscall paths a bit and seeing what is needed
to finish the job off

8 years agomakeversion: pass the level 2 flag via uname
Alan Cox [Sun, 10 Jan 2016 12:34:22 +0000 (12:34 +0000)]
makeversion: pass the level 2 flag via uname

8 years agops: adaptions for level 2 handling
Alan Cox [Sun, 10 Jan 2016 12:33:31 +0000 (12:33 +0000)]
ps: adaptions for level 2 handling

Actually more generally fix it to be far less fragile about struct sizes

8 years agoz80fixedbank: remove old debug
Alan Cox [Sat, 9 Jan 2016 21:18:23 +0000 (21:18 +0000)]
z80fixedbank: remove old debug

8 years agoz80pack: fix wakeup on console 2 and console 3
Alan Cox [Sat, 9 Jan 2016 21:15:22 +0000 (21:15 +0000)]
z80pack: fix wakeup on console 2 and console 3

Fixes the "must telnet before starting fuzix" bug

8 years agotty: Fix O_NOCTTY handling
Alan Cox [Sat, 9 Jan 2016 21:00:32 +0000 (21:00 +0000)]
tty: Fix O_NOCTTY handling

Finally we get the right process groups in the right places and init does
what we expect

8 years agoinit: don't acquire a controlling tty
Alan Cox [Sat, 9 Jan 2016 20:45:01 +0000 (20:45 +0000)]
init: don't acquire a controlling tty

We want getty to be controlling /dev/tty1 so it that the shell can do job
control on it once that all works.

8 years agolevel2: update headers to match job control changes
Alan Cox [Sat, 9 Jan 2016 20:44:46 +0000 (20:44 +0000)]
level2: update headers to match job control changes

8 years agoprocess: update signal handling
Alan Cox [Sat, 9 Jan 2016 20:44:29 +0000 (20:44 +0000)]
process: update signal handling

SIGTTIN/TTOU are not default fatal

8 years agotty: job control needs minor passing
Alan Cox [Sat, 9 Jan 2016 20:44:14 +0000 (20:44 +0000)]
tty: job control needs minor passing

8 years agolevel2: clear the tty on a setsid
Alan Cox [Sat, 9 Jan 2016 20:43:33 +0000 (20:43 +0000)]
level2: clear the tty on a setsid

8 years agostart: Make sure we don't acquire a controlling tty before running init
Alan Cox [Sat, 9 Jan 2016 20:43:08 +0000 (20:43 +0000)]
start: Make sure we don't acquire a controlling tty before running init

8 years agolevel2: fix various job control logics
Alan Cox [Sat, 9 Jan 2016 20:42:41 +0000 (20:42 +0000)]
level2: fix various job control logics

8 years agoz80pack: bring the tty layer into compliance with current code
Alan Cox [Sat, 9 Jan 2016 20:41:24 +0000 (20:41 +0000)]
z80pack: bring the tty layer into compliance with current code

8 years agolevel2: fix first couple of bits
Alan Cox [Sat, 9 Jan 2016 19:38:31 +0000 (19:38 +0000)]
level2: fix first couple of bits

8 years agolibs: link in opendir_r/closedir_r on Z80
Alan Cox [Sat, 9 Jan 2016 18:30:48 +0000 (18:30 +0000)]
libs: link in opendir_r/closedir_r on Z80

8 years agoMakefile: hook in the various level 2 files
Alan Cox [Sat, 9 Jan 2016 16:46:40 +0000 (16:46 +0000)]
Makefile: hook in the various level 2 files

8 years agoz80pack: make this a level2 platform so we can begin test/debug
Alan Cox [Sat, 9 Jan 2016 16:46:00 +0000 (16:46 +0000)]
z80pack: make this a level2 platform so we can begin test/debug

8 years agolevel2: update the remaining bits to get a level2 library
Alan Cox [Sat, 9 Jan 2016 16:45:24 +0000 (16:45 +0000)]
level2: update the remaining bits to get a level2 library

8 years agosyscall_name: use the right count
Alan Cox [Sat, 9 Jan 2016 16:44:11 +0000 (16:44 +0000)]
syscall_name: use the right count

With this the new syscall tool can build and the libc with the level 2 feature
set

8 years agolevel2: plumb together all the level2 work and make it actually build
Alan Cox [Sat, 9 Jan 2016 15:27:13 +0000 (15:27 +0000)]
level2: plumb together all the level2 work and make it actually build

8 years agolevel2: add hooks to allow level 2 platforms to provide their own path buffers
Alan Cox [Tue, 29 Dec 2015 23:30:23 +0000 (23:30 +0000)]
level2: add hooks to allow level 2 platforms to provide their own path buffers

(If you go over 512 bytes the standard tmpbuf/brelse solution won't work, so
 for bigger systems malloc may be preferred)

8 years agoprocess: fix dumb error in last commit
Alan Cox [Tue, 29 Dec 2015 23:24:44 +0000 (23:24 +0000)]
process: fix dumb error in last commit

8 years agoprocess: add initial SIGCHLD handling
Alan Cox [Tue, 29 Dec 2015 23:18:26 +0000 (23:18 +0000)]
process: add initial SIGCHLD handling

8 years agotty: bring comments up to date
Alan Cox [Tue, 29 Dec 2015 22:53:54 +0000 (22:53 +0000)]
tty: bring comments up to date

8 years agokill: allow for special rules for SIGCONT with job control
Alan Cox [Tue, 29 Dec 2015 22:50:47 +0000 (22:50 +0000)]
kill: allow for special rules for SIGCONT with job control

8 years agosignals: SIGCONT should be sent after a SIGHUP
Alan Cox [Tue, 29 Dec 2015 22:43:14 +0000 (22:43 +0000)]
signals: SIGCONT should be sent after a SIGHUP

8 years agolevel2: update header to match
Alan Cox [Tue, 29 Dec 2015 22:43:02 +0000 (22:43 +0000)]
level2: update header to match

8 years agokernel: update some header bits for level2 work
Alan Cox [Tue, 29 Dec 2015 22:42:48 +0000 (22:42 +0000)]
kernel: update some header bits for level2 work

8 years agoopendir_r: shuffle structures about, implement and use opendir_r
Alan Cox [Tue, 29 Dec 2015 20:11:50 +0000 (20:11 +0000)]
opendir_r: shuffle structures about, implement and use opendir_r

8 years agosyscall_proc: use setsid() to implement setpgrp() on level 2
Alan Cox [Tue, 29 Dec 2015 19:16:47 +0000 (19:16 +0000)]
syscall_proc: use setsid() to implement setpgrp() on level 2

8 years agokernel: add p_session for level 2 job control
Alan Cox [Sun, 27 Dec 2015 14:04:14 +0000 (14:04 +0000)]
kernel: add p_session for level 2 job control

8 years agotty: further chunks of work on the tty job control interfaces
Alan Cox [Sun, 27 Dec 2015 14:02:23 +0000 (14:02 +0000)]
tty: further chunks of work on the tty job control interfaces

There is a fair bit left to do, in particular all the silly signal handling
funnies BSD job control does and the signal handling special cases it causes.

8 years agokernel: first pieces of job control logic
Alan Cox [Sun, 27 Dec 2015 13:06:49 +0000 (13:06 +0000)]
kernel: first pieces of job control logic

8 years agotty: make TIOC[GS]WINSZ available
Alan Cox [Sun, 27 Dec 2015 12:50:41 +0000 (12:50 +0000)]
tty: make TIOC[GS]WINSZ available

8 years agotty: update for TIOCGWINSZ/SWINSZ
Alan Cox [Sun, 27 Dec 2015 12:50:21 +0000 (12:50 +0000)]
tty: update for TIOCGWINSZ/SWINSZ

8 years agofilesys: fix build error with level 2
Alan Cox [Sun, 27 Dec 2015 12:47:48 +0000 (12:47 +0000)]
filesys: fix build error with level 2

8 years agokernel: hook in level2 include and udata changes
Alan Cox [Sun, 27 Dec 2015 12:47:37 +0000 (12:47 +0000)]
kernel: hook in level2 include and udata changes

8 years agokernel: start adding functions and files for "level 2" functionality
Alan Cox [Sun, 27 Dec 2015 12:46:54 +0000 (12:46 +0000)]
kernel: start adding functions and files for "level 2" functionality

This is the bigger stuff that won't fit well on a small 8bit box but which
isn't by any means essential.

8 years agofilesys: add the needed hook point for BSD groups
Alan Cox [Sat, 26 Dec 2015 23:47:05 +0000 (23:47 +0000)]
filesys: add the needed hook point for BSD groups

8 years agotty: first cut at SIGWINCH and friends
Alan Cox [Sat, 26 Dec 2015 23:34:35 +0000 (23:34 +0000)]
tty: first cut at SIGWINCH and friends

Actually looks small enough that this would make sense for level 1.

8 years agoutils: update library and ps for repurposing of P_XSLEEP
Alan Cox [Sat, 26 Dec 2015 23:18:01 +0000 (23:18 +0000)]
utils: update library and ps for repurposing of P_XSLEEP

8 years agokernel: rename XSLEEP (unused) into STOPPED
Alan Cox [Sat, 26 Dec 2015 23:15:12 +0000 (23:15 +0000)]
kernel: rename XSLEEP (unused) into STOPPED

8 years agoprocess: first cut at SIGCONT/SIGSTOP handling done properly
Alan Cox [Sat, 26 Dec 2015 23:14:48 +0000 (23:14 +0000)]
process: first cut at SIGCONT/SIGSTOP handling done properly

8 years ago6809: add asm define for gcc bug workaround
Alan Cox [Sat, 26 Dec 2015 23:02:12 +0000 (23:02 +0000)]
6809: add asm define for gcc bug workaround

8 years agokernel.h: add defines for new length checking
Alan Cox [Sat, 26 Dec 2015 23:01:53 +0000 (23:01 +0000)]
kernel.h: add defines for new length checking

8 years agoinode.c: gcc 6809 workaround
Alan Cox [Sat, 26 Dec 2015 23:01:29 +0000 (23:01 +0000)]
inode.c: gcc 6809 workaround

8 years agofsck: fix endian handling error when correcting counts
Alan Cox [Sat, 26 Dec 2015 22:35:57 +0000 (22:35 +0000)]
fsck: fix endian handling error when correcting counts

8 years agofilesys: fix error reporting when trying to ch_unlink a missing name
Alan Cox [Sat, 26 Dec 2015 22:09:22 +0000 (22:09 +0000)]
filesys: fix error reporting when trying to ch_unlink a missing name

This fixes rmdir "nosuchname"

8 years agofilesys: fix dumb bug introduced in previous commit
Alan Cox [Sat, 26 Dec 2015 22:02:41 +0000 (22:02 +0000)]
filesys: fix dumb bug introduced in previous commit

8 years agofilesys: Fix trailing / handling (hopefully)
Alan Cox [Sat, 26 Dec 2015 21:47:32 +0000 (21:47 +0000)]
filesys: Fix trailing / handling (hopefully)

Also fix a bug in null name handling

8 years agodragon-nx-32: fix warning
Alan Cox [Sat, 26 Dec 2015 21:47:19 +0000 (21:47 +0000)]
dragon-nx-32: fix warning

8 years agodragon-nx-32: fix warning
Alan Cox [Sat, 26 Dec 2015 21:47:09 +0000 (21:47 +0000)]
dragon-nx-32: fix warning

8 years agodevscsi: works better if you remember to return 0 for success
Alan Cox [Sat, 26 Dec 2015 21:46:53 +0000 (21:46 +0000)]
devscsi: works better if you remember to return 0 for success

8 years agofcc: add __FUZIX__
Alan Cox [Sat, 26 Dec 2015 21:32:23 +0000 (21:32 +0000)]
fcc: add __FUZIX__

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Sat, 26 Dec 2015 21:32:10 +0000 (21:32 +0000)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agoMerge pull request #309 from beretta42/ucp
EtchedPixels [Tue, 22 Dec 2015 19:02:03 +0000 (19:02 +0000)]
Merge pull request #309 from beretta42/ucp

ucp.c:  bugfix: attempt to compare swizzled data with unswizzled cons…

8 years agoucp.c: bugfix: attempt to compare swizzled data with unswizzled constant.
Brett Gordon [Tue, 22 Dec 2015 14:34:58 +0000 (09:34 -0500)]
ucp.c:  bugfix: attempt to compare swizzled data with unswizzled constant.

This fixes 'rm' segfault.

8 years agoMerge pull request #308 from beretta42/ls
EtchedPixels [Sun, 20 Dec 2015 16:22:29 +0000 (16:22 +0000)]
Merge pull request #308 from beretta42/ls

ls.c: add support for fifo type. (print a 'p')

8 years agols.c: add support for fifo type. (print a 'p')
Brett Gordon [Sun, 20 Dec 2015 02:39:35 +0000 (21:39 -0500)]
ls.c: add support for fifo type. (print a 'p')

8 years agoMerge pull request #305 from beretta42/tar2
EtchedPixels [Sat, 19 Dec 2015 23:20:03 +0000 (23:20 +0000)]
Merge pull request #305 from beretta42/tar2

tar

8 years agoutils: add tar
Brett Gordon [Sat, 19 Dec 2015 16:48:17 +0000 (11:48 -0500)]
utils: add tar

8 years agoMerge pull request #303 from beretta42/ttydw
EtchedPixels [Tue, 15 Dec 2015 18:02:04 +0000 (18:02 +0000)]
Merge pull request #303 from beretta42/ttydw

More fixed for drivewire tty support.

8 years agococo3: tty drivewire: and replace constants with defines
Brett Gordon [Thu, 10 Dec 2015 21:32:15 +0000 (16:32 -0500)]
coco3: tty drivewire: and replace constants with defines

8 years agococo3: ttydw.c: simplify port/minor number conversion
Brett Gordon [Thu, 10 Dec 2015 17:06:56 +0000 (12:06 -0500)]
coco3: ttydw.c: simplify port/minor number conversion

8 years agococo3: ttydw.c: fix bad port to minor translation on close.
Brett Gordon [Tue, 8 Dec 2015 22:56:22 +0000 (17:56 -0500)]
coco3: ttydw.c: fix bad port to minor translation on close.

8 years agoMerge pull request #301 from vandys/master
EtchedPixels [Tue, 8 Dec 2015 00:08:26 +0000 (00:08 +0000)]
Merge pull request #301 from vandys/master

Teach git about some more generated files.

8 years agoTeach git about some more generated files.
Andy Valencia [Mon, 7 Dec 2015 19:44:50 +0000 (11:44 -0800)]
Teach git about some more generated files.

8 years agoMerge pull request #299 from beretta42/tty
EtchedPixels [Sun, 29 Nov 2015 20:14:26 +0000 (20:14 +0000)]
Merge pull request #299 from beretta42/tty

Couple of tty.c fixes?

8 years agoMerge pull request #298 from beretta42/sub
EtchedPixels [Sun, 29 Nov 2015 20:13:42 +0000 (20:13 +0000)]
Merge pull request #298 from beretta42/sub

Bug fixes for coco3's drivewire tty code

8 years agotty.c: don't return EOF from read until all the data is retrieved.
Brett Gordon [Sun, 29 Nov 2015 15:24:53 +0000 (10:24 -0500)]
tty.c: don't return EOF from read until all the data is retrieved.

8 years agotty.c: need to increment our user count after a NDELAY. Not Sure about CLOCAL.
Brett Gordon [Thu, 26 Nov 2015 19:38:29 +0000 (14:38 -0500)]
tty.c: need to increment our user count after a NDELAY. Not Sure about CLOCAL.

8 years agococo3: devtty: bugfix: tty_close not closing port at dw level.
Brett Gordon [Thu, 26 Nov 2015 18:45:35 +0000 (13:45 -0500)]
coco3: devtty: bugfix: tty_close not closing port at dw level.

8 years agococo3: devdw.c: bug fix, carrier dropping wrong minor.
Brett Gordon [Thu, 26 Nov 2015 17:23:20 +0000 (12:23 -0500)]
coco3: devdw.c: bug fix, carrier dropping wrong minor.

8 years agottydw.c: bugfixes: not updating open_ports counter, bad minor mapping
Brett Gordon [Thu, 26 Nov 2015 03:32:23 +0000 (22:32 -0500)]
ttydw.c: bugfixes: not updating open_ports counter, bad minor mapping

8 years agoremove DW's \n and \r handling. (isn't needed)
Brett Gordon [Mon, 28 Sep 2015 02:19:16 +0000 (22:19 -0400)]
remove DW's \n and \r handling. (isn't needed)

8 years agoMerge pull request #282 from beretta42/issue
EtchedPixels [Sat, 14 Nov 2015 14:26:59 +0000 (14:26 +0000)]
Merge pull request #282 from beretta42/issue

bank16k's:  pass byte count to swapwrite/read not block count.

8 years agocurses: add missing getmaxyx and getbegyx
Alan Cox [Fri, 13 Nov 2015 16:38:09 +0000 (16:38 +0000)]
curses: add missing getmaxyx and getbegyx

8 years agobank16k's: pass byte count to swapwrite/read not block count.
Brett Gordon [Fri, 13 Nov 2015 14:19:39 +0000 (09:19 -0500)]
bank16k's:  pass byte count to swapwrite/read not block count.

8 years agoLevels: first proposal of how we define a "level 1" Fuzix system
Alan Cox [Sun, 8 Nov 2015 17:20:28 +0000 (17:20 +0000)]
Levels: first proposal of how we define a "level 1" Fuzix system

We need some kind of line for the smaller 8bit boxes and having everyone with
different random varieties of features will be a support nightmare

8 years agoLibrary/libs: add telldir, seekdir and rewinddir
Faisal Abbas [Sun, 8 Nov 2015 16:16:00 +0000 (21:16 +0500)]
Library/libs: add telldir, seekdir and rewinddir

 - Also set reclen to 31 in readdir.
 - Tested on z80pack.
 - Only compile-tested on 6809.

8 years agodevsd: sdcc hack broke big-endian
Tormod Volden [Wed, 4 Nov 2015 20:06:39 +0000 (21:06 +0100)]
devsd: sdcc hack broke big-endian

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agodragon-nx32: SPI: read out blk_op before mapping user process
Tormod Volden [Fri, 6 Nov 2015 23:24:57 +0000 (00:24 +0100)]
dragon-nx32: SPI: read out blk_op before mapping user process

I wish I had seen Brett's similar fix for IDE before debugging
this...

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years ago6809 platforms: Trim spaces in assembly operands
Tormod Volden [Thu, 5 Nov 2015 23:52:45 +0000 (00:52 +0100)]
6809 platforms: Trim spaces in assembly operands

lwasm, like most 6809 assemblers, ignores everything
after a space, believing it is comments.

The next version of lwasm will have a pragma to allow
spaces and instead require a semicolon for comments.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agodragon-nx32: More SPI fixes
Tormod Volden [Tue, 3 Nov 2015 23:15:40 +0000 (00:15 +0100)]
dragon-nx32: More SPI fixes

In particular, spaces in assembly operands are bad since the
assembler believes everything after a space is comments.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
8 years agoMerge pull request #281 from davidgiven/travis
EtchedPixels [Mon, 2 Nov 2015 20:25:20 +0000 (20:25 +0000)]
Merge pull request #281 from davidgiven/travis

Fix Travis setup

8 years agoMerge from upstream.
David Given [Mon, 2 Nov 2015 20:01:14 +0000 (21:01 +0100)]
Merge from upstream.

8 years agodragon-nx32: vtattr_notify
Alan Cox [Mon, 2 Nov 2015 12:28:50 +0000 (12:28 +0000)]
dragon-nx32: vtattr_notify

8 years agovtattr_notify: Fix other Z80 platforms
Alan Cox [Mon, 2 Nov 2015 12:27:38 +0000 (12:27 +0000)]
vtattr_notify: Fix other Z80 platforms

8 years agovt: formatting
Alan Cox [Mon, 2 Nov 2015 12:27:10 +0000 (12:27 +0000)]
vt: formatting

8 years agoMerge pull request #280 from davidgiven/msp430
EtchedPixels [Mon, 2 Nov 2015 11:11:08 +0000 (11:11 +0000)]
Merge pull request #280 from davidgiven/msp430

Better MSP430 overlay support

8 years agoMerge pull request #279 from beretta42/vt
EtchedPixels [Mon, 2 Nov 2015 10:48:30 +0000 (10:48 +0000)]
Merge pull request #279 from beretta42/vt

Some more color vt.

8 years agoAll syscall banks can now be used as overlays; saves lots of space --- we have
David Given [Sun, 1 Nov 2015 22:51:46 +0000 (23:51 +0100)]
All syscall banks can now be used as overlays; saves lots of space --- we have
room for a 27kB userland now! Also moves unlinki and the guts of _sync into
common code because they're called from multiple banks.

8 years agographics: minor updates to headers
Alan Cox [Sun, 1 Nov 2015 21:25:37 +0000 (21:25 +0000)]
graphics: minor updates to headers