FUZIX.git
8 years agomalloc: allow for 16bit int types
Alan Cox [Tue, 13 Sep 2016 21:03:37 +0000 (22:03 +0100)]
malloc: allow for 16bit int types

8 years agolowlevel-z80: save a few bytes (it matters)
Alan Cox [Tue, 13 Sep 2016 21:03:24 +0000 (22:03 +0100)]
lowlevel-z80: save a few bytes (it matters)

8 years agoblkdev: type hygeine
Alan Cox [Tue, 13 Sep 2016 21:02:59 +0000 (22:02 +0100)]
blkdev: type hygeine

8 years ago68000: prototype for the 32bit conversion
Alan Cox [Tue, 13 Sep 2016 21:02:37 +0000 (22:02 +0100)]
68000: prototype for the 32bit conversion

8 years ago68000: turn optimisation off for now until we find a better gcc
Alan Cox [Tue, 13 Sep 2016 11:03:41 +0000 (12:03 +0100)]
68000: turn optimisation off for now until we find a better gcc

8 years agombr: make alignment/padding safe
Alan Cox [Tue, 13 Sep 2016 10:59:20 +0000 (11:59 +0100)]
mbr: make alignment/padding safe

8 years agokernel.h: don't assume bool is byte sized for superblock header
Alan Cox [Tue, 13 Sep 2016 10:57:10 +0000 (11:57 +0100)]
kernel.h: don't assume bool is byte sized for superblock header

8 years ago68000: avoid __builtin_bswap32 for now
Alan Cox [Tue, 13 Sep 2016 10:53:26 +0000 (11:53 +0100)]
68000: avoid __builtin_bswap32 for now

8 years agobuddy: disable user copy
Alan Cox [Tue, 13 Sep 2016 10:48:47 +0000 (11:48 +0100)]
buddy: disable user copy

The versions are wrong but worse may scribble on stuff that it shouldn't so null out for now

8 years agoprocess: newproc needs to set the udata ptr for udata ptr using platforms
Alan Cox [Mon, 12 Sep 2016 23:19:11 +0000 (00:19 +0100)]
process: newproc needs to set the udata ptr for udata ptr using platforms

8 years agodevio: fix stupid bug in kprintf %p
Alan Cox [Mon, 12 Sep 2016 23:18:40 +0000 (00:18 +0100)]
devio: fix stupid bug in kprintf %p

8 years agokernel: allow stack size to be set by platform
Alan Cox [Mon, 12 Sep 2016 23:18:18 +0000 (00:18 +0100)]
kernel: allow stack size to be set by platform

8 years ago68000: add IDE copiers, tidy up
Alan Cox [Mon, 12 Sep 2016 23:17:09 +0000 (00:17 +0100)]
68000: add IDE copiers, tidy up

8 years agov68: fix tricks handling for 68000
Alan Cox [Mon, 12 Sep 2016 23:16:51 +0000 (00:16 +0100)]
v68: fix tricks handling for 68000

8 years ago68000: swab is now not needed as we use the inlines
Alan Cox [Mon, 12 Sep 2016 23:14:20 +0000 (00:14 +0100)]
68000: swab is now not needed as we use the inlines

8 years ago68000: prepare to use 1K stacks
Alan Cox [Mon, 12 Sep 2016 23:13:52 +0000 (00:13 +0100)]
68000: prepare to use 1K stacks

8 years agolowlevel-68000: fix hex dump
Alan Cox [Mon, 12 Sep 2016 23:13:33 +0000 (00:13 +0100)]
lowlevel-68000: fix hex dump

8 years ago68000: use builtin swap functions
Alan Cox [Mon, 12 Sep 2016 23:13:19 +0000 (00:13 +0100)]
68000: use builtin swap functions

8 years agoselect: first cut at select handling
Alan Cox [Mon, 12 Sep 2016 16:39:15 +0000 (17:39 +0100)]
select: first cut at select handling

Some bits probably want a redesign but the basics are now present
and we can start debugging the code meaningfully.

8 years agokernel: Fix Makefile rebuilding everything all the time
Alan Cox [Mon, 12 Sep 2016 16:38:49 +0000 (17:38 +0100)]
kernel: Fix Makefile rebuilding everything all the time

8 years agoMerge pull request #425 from dfffffff/master
EtchedPixels [Sat, 10 Sep 2016 12:43:36 +0000 (13:43 +0100)]
Merge pull request #425 from dfffffff/master

Applications/build.mk: added missing unix utilities, Library/build.mk added missing functions to build the missing utilities.

8 years agoApplications/build.mk: added missing unix utilities, Library/build.mk added missing...
dfffffff [Sat, 10 Sep 2016 00:22:37 +0000 (20:22 -0400)]
Applications/build.mk: added missing unix utilities, Library/build.mk added missing functions to build the missing utilities.

8 years agoMerge pull request #424 from dfffffff/master
EtchedPixels [Mon, 5 Sep 2016 12:15:21 +0000 (13:15 +0100)]
Merge pull request #424 from dfffffff/master

updated two .gitignore for automatically generated include/tool

8 years agoupdated two .gitignore for automatically generated include/tool
dfffffff [Sat, 3 Sep 2016 19:28:19 +0000 (15:28 -0400)]
updated two .gitignore for automatically generated include/tool

8 years agoMerge pull request #423 from dfffffff/master
EtchedPixels [Sat, 3 Sep 2016 16:54:17 +0000 (17:54 +0100)]
Merge pull request #423 from dfffffff/master

refactored which utility

8 years agorefactored which utility
dfffffff [Sat, 3 Sep 2016 12:43:55 +0000 (08:43 -0400)]
refactored which utility

8 years agore-indented/formated
dfffffff [Sat, 3 Sep 2016 12:42:50 +0000 (08:42 -0400)]
re-indented/formated

8 years agoMerge pull request #422 from dfffffff/master
EtchedPixels [Sat, 3 Sep 2016 12:02:38 +0000 (13:02 +0100)]
Merge pull request #422 from dfffffff/master

fix Kernel parallel build

8 years agofix Kernel parallel build
dfffffff [Sat, 3 Sep 2016 11:20:40 +0000 (07:20 -0400)]
fix Kernel parallel build

8 years agoMakefile: further fixups
Alan Cox [Fri, 2 Sep 2016 09:12:32 +0000 (10:12 +0100)]
Makefile: further fixups

Extra dependancies from Brett, and another from me
CLean up some of the other bits
Update the clean targets to clean up more mess

8 years agomakeversion: obsolete
Alan Cox [Thu, 1 Sep 2016 21:45:54 +0000 (22:45 +0100)]
makeversion: obsolete

8 years agotools/makeversion: build version headers
Alan Cox [Thu, 1 Sep 2016 21:45:42 +0000 (22:45 +0100)]
tools/makeversion: build version headers

8 years agoMakefile: force sysinfoblk.h to be built early
Alan Cox [Thu, 1 Sep 2016 21:43:00 +0000 (22:43 +0100)]
Makefile: force sysinfoblk.h to be built early

8 years agouname: fix the 6809 sysinfo problem
Alan Cox [Thu, 1 Sep 2016 21:16:00 +0000 (22:16 +0100)]
uname: fix the 6809 sysinfo problem

8 years agoMerge pull request #418 from dfffffff/master
EtchedPixels [Thu, 1 Sep 2016 15:46:32 +0000 (16:46 +0100)]
Merge pull request #418 from dfffffff/master

refactored ls utility: cleanup, added -R recursive, fixed -r reverse order

8 years agocleanup, added -R recursive, fixed -r reverse order
dfffffff [Thu, 1 Sep 2016 14:57:52 +0000 (10:57 -0400)]
cleanup, added -R recursive, fixed -r reverse order

8 years agoinit: add terminal setting
Alan Cox [Wed, 31 Aug 2016 21:02:39 +0000 (22:02 +0100)]
init: add terminal setting

We don't support setting parity yet - do we need to ?

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Wed, 31 Aug 2016 19:11:26 +0000 (20:11 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agotty: level 2 and other improvements
Alan Cox [Wed, 31 Aug 2016 19:10:01 +0000 (20:10 +0100)]
tty: level 2 and other improvements

Add what should match the rules for BSD job control. Make sure all
the crap that gets inflicted upon us for this ends up in level2.c
so we don't bloat the smaller platforms.

Do some more preparatory work on the pty support.

8 years agoprocess: fix a race in SIGSTOP handling and slightly optimize newproc
Alan Cox [Wed, 31 Aug 2016 19:09:36 +0000 (20:09 +0100)]
process: fix a race in SIGSTOP handling and slightly optimize newproc

8 years agoMerge pull request #414 from dfffffff/master
EtchedPixels [Wed, 31 Aug 2016 13:45:44 +0000 (14:45 +0100)]
Merge pull request #414 from dfffffff/master

usage now outputs to stderr

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Wed, 31 Aug 2016 13:40:30 +0000 (14:40 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agoprocess.c: make SIGSTOP/CONT work properly
Alan Cox [Wed, 31 Aug 2016 13:39:49 +0000 (14:39 +0100)]
process.c: make SIGSTOP/CONT work properly

I hope anyway 8)

8 years agousage now outputs to stderr
dfffffff [Wed, 31 Aug 2016 12:11:16 +0000 (08:11 -0400)]
usage now outputs to stderr

8 years agoMerge pull request #412 from dfffffff/master
EtchedPixels [Wed, 31 Aug 2016 10:53:41 +0000 (11:53 +0100)]
Merge pull request #412 from dfffffff/master

cosmetic

8 years agoMerge pull request #413 from vandys/kernel
EtchedPixels [Wed, 31 Aug 2016 10:53:17 +0000 (11:53 +0100)]
Merge pull request #413 from vandys/kernel

Minor edit on indentation to make it less misleading

8 years agoMinor edit on indentation to make it less misleading
Andy Valencia [Wed, 31 Aug 2016 02:28:55 +0000 (19:28 -0700)]
Minor edit on indentation to make it less misleading

8 years agocosmetic
dfffffff [Wed, 31 Aug 2016 02:01:36 +0000 (22:01 -0400)]
cosmetic

8 years agostty: struct winsz is needed
Alan Cox [Wed, 31 Aug 2016 00:23:23 +0000 (01:23 +0100)]
stty: struct winsz is needed

8 years agobuddy: add header
Alan Cox [Tue, 30 Aug 2016 23:59:13 +0000 (00:59 +0100)]
buddy: add header

8 years agoopen: fix bug introduced in handling of invalid directory paths during an open
Alan Cox [Tue, 30 Aug 2016 22:10:59 +0000 (23:10 +0100)]
open: fix bug introduced in handling of invalid directory paths during an open

8 years agoMerge pull request #408 from beretta42/net_native
EtchedPixels [Tue, 30 Aug 2016 21:48:00 +0000 (22:48 +0100)]
Merge pull request #408 from beretta42/net_native

net_native: add async event for remote shutdown.

8 years agov68: update README
Alan Cox [Tue, 30 Aug 2016 20:56:09 +0000 (21:56 +0100)]
v68: update README

8 years agoprocess.c: 32bit clean pointer printing
Alan Cox [Tue, 30 Aug 2016 20:25:55 +0000 (21:25 +0100)]
process.c: 32bit clean pointer printing

8 years agov68: fix udata naming
Alan Cox [Tue, 30 Aug 2016 20:20:24 +0000 (21:20 +0100)]
v68: fix udata naming

8 years ago68000: set the a5 pointer properly in the sig case
Alan Cox [Tue, 30 Aug 2016 20:19:52 +0000 (21:19 +0100)]
68000: set the a5 pointer properly in the sig case

8 years agov68: load the uarea shadow when needed
Alan Cox [Tue, 30 Aug 2016 20:08:38 +0000 (21:08 +0100)]
v68: load the uarea shadow when needed

8 years agov68: fix tty input
Alan Cox [Tue, 30 Aug 2016 20:08:24 +0000 (21:08 +0100)]
v68: fix tty input

8 years agodevio: add 32bit pointer support
Alan Cox [Tue, 30 Aug 2016 20:06:03 +0000 (21:06 +0100)]
devio: add 32bit pointer support

This means we need a new % code for printk and to stop misusing %x for pointers. Add %p

8 years agoplatform-v68: initial pieces to get it to build/begin booting
Alan Cox [Tue, 30 Aug 2016 19:42:04 +0000 (20:42 +0100)]
platform-v68: initial pieces to get it to build/begin booting

8 years agotty: fix need_resched ambiguity
Alan Cox [Tue, 30 Aug 2016 19:41:28 +0000 (20:41 +0100)]
tty: fix need_resched ambiguity

8 years agov68: first cut at setting up exception vectors
Alan Cox [Tue, 30 Aug 2016 19:40:56 +0000 (20:40 +0100)]
v68: first cut at setting up exception vectors

8 years agov68: specify number of block devices
Alan Cox [Tue, 30 Aug 2016 19:40:28 +0000 (20:40 +0100)]
v68: specify number of block devices

8 years ago68000: imported needed helper routines for gcc, and fix some exports
Alan Cox [Tue, 30 Aug 2016 19:39:59 +0000 (20:39 +0100)]
68000: imported needed helper routines for gcc, and fix some exports

8 years agocpu-68000: add missing endian code
Alan Cox [Tue, 30 Aug 2016 19:39:37 +0000 (20:39 +0100)]
cpu-68000: add missing endian code

8 years agobuddy: Further early work - still not usable
Alan Cox [Tue, 30 Aug 2016 19:39:15 +0000 (20:39 +0100)]
buddy: Further early work - still not usable

8 years agonet_native: add async event for remote shutdown.
Brett Gordon [Tue, 30 Aug 2016 15:33:57 +0000 (11:33 -0400)]
net_native: add async event for remote shutdown.

8 years agops: add ppid support
Alan Cox [Mon, 29 Aug 2016 16:48:16 +0000 (17:48 +0100)]
ps: add ppid support

8 years agodevsys: check for over end copies for ps
Alan Cox [Mon, 29 Aug 2016 16:46:10 +0000 (17:46 +0100)]
devsys: check for over end copies for ps

Doesn't matter too much today but it will when we have MMU support

8 years agoproc.h: add p_event to match kernel changes
Alan Cox [Mon, 29 Aug 2016 16:13:42 +0000 (17:13 +0100)]
proc.h: add p_event to match kernel changes

8 years agoinit: add tty and geometry setting support
Alan Cox [Mon, 29 Aug 2016 15:50:32 +0000 (16:50 +0100)]
init: add tty and geometry setting support

8 years agosignal: default behaviour for SIGWINCH is ignore
Alan Cox [Mon, 29 Aug 2016 15:49:59 +0000 (16:49 +0100)]
signal: default behaviour for SIGWINCH is ignore

It's not defined by POSIX but this appears to be the convention

Alan

8 years agoincludes: add the extra tty ioctls
Alan Cox [Mon, 29 Aug 2016 15:49:43 +0000 (16:49 +0100)]
includes: add the extra tty ioctls

8 years agoEndian support for size tool
Andy Valencia [Mon, 18 Jul 2016 21:55:27 +0000 (14:55 -0700)]
Endian support for size tool

Add support for 6809 variant of executable header; key off
initial byte value to decode as 6809 or Z-80.

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Mon, 29 Aug 2016 11:35:07 +0000 (12:35 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agoz80pack: fix bugs introduced with block param cleanups
Alan Cox [Mon, 29 Aug 2016 11:33:34 +0000 (12:33 +0100)]
z80pack: fix bugs introduced with block param cleanups

8 years agoinode: fix ref counts from recent ref change
Alan Cox [Mon, 29 Aug 2016 11:33:10 +0000 (12:33 +0100)]
inode: fix ref counts from recent ref change

8 years agodevio: in debug dump R/W counters
Alan Cox [Mon, 29 Aug 2016 11:32:58 +0000 (12:32 +0100)]
devio: in debug dump R/W counters

8 years agopipe: redo reader/writer counting
Alan Cox [Mon, 29 Aug 2016 10:54:01 +0000 (11:54 +0100)]
pipe: redo reader/writer counting

It's almost as cheap to keep counters as go scanning each time in terms of
memory usage and much much faster.

8 years agobinmunge: fix missing include
Alan Cox [Mon, 29 Aug 2016 10:53:31 +0000 (11:53 +0100)]
binmunge: fix missing include

8 years agoMerge pull request #404 from dfffffff/master
EtchedPixels [Mon, 29 Aug 2016 09:42:49 +0000 (10:42 +0100)]
Merge pull request #404 from dfffffff/master

added uname command

8 years agoadded uname command
dfffffff [Mon, 29 Aug 2016 00:29:10 +0000 (20:29 -0400)]
added uname command

Conflicts:
Build/platforms/dfboard.mk

8 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Sun, 28 Aug 2016 22:51:12 +0000 (23:51 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

8 years agosignals: fix other return in chksigs
Alan Cox [Sun, 28 Aug 2016 22:50:54 +0000 (23:50 +0100)]
signals: fix other return in chksigs

8 years agoMerge pull request #403 from beretta42/dwtimec
EtchedPixels [Sun, 28 Aug 2016 22:48:08 +0000 (23:48 +0100)]
Merge pull request #403 from beretta42/dwtimec

dwdate: sets system time from drivewire via userspace

8 years agosignal: fix handling of pending signals whose default behaviour is ignore
Alan Cox [Sun, 28 Aug 2016 22:45:29 +0000 (23:45 +0100)]
signal: fix handling of pending signals whose default behaviour is ignore

Also noted by David Flamand.

We make chksigs() a generally callable helper so that anyone who needs to
check if a signal is pending can just ask it. This cleans up the (broken)
poking around we were doing as well.

This also cleans up some other freaky corner cases where signals delivered
at the wrong time could be lost.

8 years agopipe: first cut at fixing a pile of pipe breakages
Alan Cox [Sun, 28 Aug 2016 22:43:51 +0000 (23:43 +0100)]
pipe: first cut at fixing a pile of pipe breakages

There is still lots more to deal with

- introduce a helper to check if a file is open for read/write
- use this to correct the EOF checking

Original bugs noted by David Flamand

8 years agoMerge pull request #401 from dfffffff/master
EtchedPixels [Sun, 28 Aug 2016 21:53:52 +0000 (22:53 +0100)]
Merge pull request #401 from dfffffff/master

added missing operation letter

8 years agoadd man pager file.
Brett Gordon [Sun, 28 Aug 2016 21:00:43 +0000 (17:00 -0400)]
add man pager file.

8 years agodrivewire: init commit "dwdate" - set system time from userspace.
Brett Gordon [Sun, 28 Aug 2016 20:48:04 +0000 (16:48 -0400)]
drivewire: init commit "dwdate" - set system time from userspace.

8 years agosyscall: stime: return 0 on success.
Brett Gordon [Sun, 28 Aug 2016 19:29:47 +0000 (15:29 -0400)]
syscall: stime: return 0 on success.

8 years agostime syscall: ptr params reversed, also finish prototype comment
Brett Gordon [Sun, 28 Aug 2016 19:28:28 +0000 (15:28 -0400)]
stime syscall: ptr params reversed, also finish prototype comment

8 years agonet_native: space tidying
Alan Cox [Sun, 28 Aug 2016 16:15:51 +0000 (17:15 +0100)]
net_native: space tidying

8 years agonet_native: lots of fixes
Brett Gordon [Sun, 28 Aug 2016 16:10:38 +0000 (17:10 +0100)]
net_native: lots of fixes

Merge a load of fixes from Brett Gordon into the net_native code. With these
applied it might even be usable!

There are a couple of changes from Brett's original - we want to report EOF
not EPIPE on reads of a closed socket, and we want to assume that the shutdown
flags will be set by the daemon rather than add extra closed socket checks.

8 years agocpu-z80: peephole rules
Alan Cox [Sun, 28 Aug 2016 15:59:37 +0000 (16:59 +0100)]
cpu-z80: peephole rules

8 years agosyscall_net: add a FIXME
Alan Cox [Sun, 28 Aug 2016 15:59:23 +0000 (16:59 +0100)]
syscall_net: add a FIXME

8 years agosyscall_exec32: add some TODO notes
Alan Cox [Sun, 28 Aug 2016 15:59:10 +0000 (16:59 +0100)]
syscall_exec32: add some TODO notes

8 years agoMakefile: add buddy.c
Alan Cox [Sun, 28 Aug 2016 15:58:50 +0000 (16:58 +0100)]
Makefile: add buddy.c

We don't use it yet and it's not finished

8 years agoadded missing operation letter
dfffffff [Sun, 28 Aug 2016 14:22:04 +0000 (10:22 -0400)]
added missing operation letter

8 years agobuddy: A segment based MMU buddy allocator
Alan Cox [Fri, 26 Aug 2016 21:01:51 +0000 (22:01 +0100)]
buddy: A segment based MMU buddy allocator

Not yet buildable and certainly not yet debugged.

This is needed for platforms where we must keep our code/data/stack on power
of two boundaries for the MMU hardware in question.