Alan Cox [Mon, 2 Apr 2018 22:01:15 +0000 (23:01 +0100)]
signals: fix signal leak by pushing back a pending signal when we recalc
Alan Cox [Mon, 2 Apr 2018 22:01:02 +0000 (23:01 +0100)]
filesys: fix errno 0 failure with overlong path
Alan Cox [Mon, 2 Apr 2018 21:39:37 +0000 (22:39 +0100)]
mkfs: make it clearer how block free list is set up
Alan Cox [Fri, 30 Mar 2018 23:29:29 +0000 (00:29 +0100)]
netd: Update for new protocol
Align the headers
Honour a request for an unhook as soon as we can (immediately if the uIP link
is already dead)
Alan Cox [Fri, 30 Mar 2018 23:27:03 +0000 (00:27 +0100)]
net_native: implement new callback behaviour
We sendd a new UNHOOK message to the netd stack and when it replies to say
it's done the job we tell the kernel it can recycle the socket.
Alan Cox [Fri, 30 Mar 2018 23:25:50 +0000 (00:25 +0100)]
syscall_net: make close non blocking add a callback for reuse
The new mode is close() sends a message to ask the stack to clean up. The
socket ends up dead until the stack calls ack into closed() to say that the
resources are now free.
Alan Cox [Fri, 30 Mar 2018 23:25:34 +0000 (00:25 +0100)]
process: turn off some debug
Alan Cox [Fri, 30 Mar 2018 21:58:06 +0000 (22:58 +0100)]
kernel: add pre-emption signal checks to assembly paths
With these in place we appear to be good except for some kind of net
breakage that needs resolving.
Alan Cox [Fri, 30 Mar 2018 21:46:46 +0000 (22:46 +0100)]
z80: fix stray switchout
This gets us close to where need to be. All that is broken by all this changing
around now is signal handling on pre-emption
Alan Cox [Fri, 30 Mar 2018 21:40:22 +0000 (22:40 +0100)]
process: make signal_parent reusable, and document
Alan Cox [Fri, 30 Mar 2018 21:31:42 +0000 (22:31 +0100)]
process: fix the various buglets in the scheduler changes
Alan Cox [Fri, 30 Mar 2018 21:24:45 +0000 (22:24 +0100)]
net_native: test use for psleep_nosig
Alan Cox [Fri, 30 Mar 2018 21:24:20 +0000 (22:24 +0100)]
kernel: pre-empt should now call the platform method directly
Alan Cox [Fri, 30 Mar 2018 19:31:16 +0000 (20:31 +0100)]
trap/platform rename: Make more consistent use of platform_ naming
Alan Cox [Thu, 29 Mar 2018 22:55:49 +0000 (23:55 +0100)]
platform_switchout
Updated everywhere that looks like it needs it
Alan Cox [Thu, 29 Mar 2018 17:23:18 +0000 (18:23 +0100)]
msx1: update to platform_ version
Alan Cox [Thu, 29 Mar 2018 14:57:13 +0000 (15:57 +0100)]
msx2: update to scheduler change
Alan Cox [Thu, 29 Mar 2018 14:56:54 +0000 (15:56 +0100)]
gpt/mbr: don't assume gcc isms are present
Alan Cox [Thu, 29 Mar 2018 14:56:34 +0000 (15:56 +0100)]
cpu.h: add __packed
Alan Cox [Thu, 29 Mar 2018 14:42:24 +0000 (15:42 +0100)]
process: move all the optimizations of switchout() into the C code
This fixes a ton of duplication in the asm code, and in addition makes the
pre-emption cases faster as we know in those cases that the optimizations
never apply.
switchout() becomes a C fnction
platform_switchout() is now the required platform specific stub which shouldn't
need to do any optimizing beyond udata copy elimiations.
Merge a z80fixedbank example of the changes.
Alan Cox [Thu, 29 Mar 2018 14:41:16 +0000 (15:41 +0100)]
filesys: add fields for extended superblock
Also add a platform_switchout define ready for the process.c changes
Alan Cox [Thu, 29 Mar 2018 14:39:42 +0000 (15:39 +0100)]
inode: file system updates
Add a superblock index to inodes. It does cost us a byte per inode but it
also speeds things up somewhat. Also we will need it for big fs support.
Fix inode * errors as inoptr should be used
Set the basis for big file system support (nowhere near complete yet)
Alan Cox [Thu, 29 Mar 2018 14:38:26 +0000 (15:38 +0100)]
mkfs: fix printf reporting
Alan Cox [Thu, 29 Mar 2018 14:37:02 +0000 (15:37 +0100)]
mkfs: first cut at supporting extended block sizes
Alan Cox [Mon, 26 Mar 2018 21:12:33 +0000 (22:12 +0100)]
proc.h: add new process state
Alan Cox [Mon, 26 Mar 2018 21:11:58 +0000 (22:11 +0100)]
syscall: Fix open() panic introduced by lock change
Alan Cox [Mon, 26 Mar 2018 21:11:41 +0000 (22:11 +0100)]
binman: off by one
Alan Cox [Mon, 26 Mar 2018 20:34:15 +0000 (21:34 +0100)]
syscall_name: make const
Alan Cox [Mon, 26 Mar 2018 19:59:35 +0000 (20:59 +0100)]
process: fix build bugs
Alan Cox [Mon, 26 Mar 2018 19:53:51 +0000 (20:53 +0100)]
z80fixedbank: first updated platform code for I/O wait
Other platforms need the smae logic to bounce out of sleep when a signal
is shown pending
Alan Cox [Mon, 26 Mar 2018 19:53:38 +0000 (20:53 +0100)]
process: I/O wait support
Alan Cox [Mon, 26 Mar 2018 19:52:38 +0000 (20:52 +0100)]
iowait:introduce pieces for iowait, also other bits for inode sleep
Alan Cox [Mon, 26 Mar 2018 19:51:59 +0000 (20:51 +0100)]
inode: draft code for sleeping file system support
Alan Cox [Sun, 18 Mar 2018 19:40:23 +0000 (19:40 +0000)]
games: Move startrek to integer
We no longer use fp in it so we don't want to suck in the FP versions of
printf and friends.
Alan Cox [Sun, 18 Mar 2018 19:39:26 +0000 (19:39 +0000)]
startrek: tidy up further
Alan Cox [Sat, 17 Mar 2018 21:34:23 +0000 (21:34 +0000)]
trek: continue tidying up and shrinking down
Alan Cox [Sat, 17 Mar 2018 20:27:49 +0000 (20:27 +0000)]
trek: keep tidying up globals
Alan Cox [Thu, 15 Mar 2018 21:54:44 +0000 (21:54 +0000)]
startrek: integer trek seems to work
Lots of debug to remove once we are sure
Alan Cox [Thu, 15 Mar 2018 21:45:29 +0000 (21:45 +0000)]
startrek: tracking now seems to work still a few floats to zap
Alan Cox [Thu, 15 Mar 2018 19:44:30 +0000 (19:44 +0000)]
startrek: integerize
There are still some bugs notably the torp/base docking computer is wrong in
some cases.
Alan Cox [Wed, 14 Mar 2018 12:24:26 +0000 (12:24 +0000)]
startrek: get rid of extra computer array and use a flag
Alan Cox [Wed, 14 Mar 2018 00:38:39 +0000 (00:38 +0000)]
startrek: further cleanup and defloating
Should be sanely playable again
Alan Cox [Tue, 13 Mar 2018 21:59:49 +0000 (21:59 +0000)]
kernel: sdcc version info
Alan Cox [Tue, 13 Mar 2018 21:39:09 +0000 (21:39 +0000)]
startrek: continue clean up
There are corner cases on the torpedo tracking and where the computer solution
is wrong. The whole positioning logic is a bit messed up and I think the
tracking corner cases are due to that. Also of course Klingons are in integer
positions whereas presumably they should be at 0.5/0.5 because they are
notionally in the middle of the square.
Would it make sense to just Bresenham the movement and torpedo logic ?
Alan Cox [Tue, 13 Mar 2018 13:06:26 +0000 (13:06 +0000)]
startrek: add an input routine for x.yz fixed point co-ords
Alan Cox [Tue, 13 Mar 2018 12:59:08 +0000 (12:59 +0000)]
startrek: clean up in the input side
Alan Cox [Mon, 12 Mar 2018 01:44:48 +0000 (01:44 +0000)]
startrek: further clean
Now done to 39995 bytes on Z80
Alan Cox [Mon, 12 Mar 2018 00:37:55 +0000 (00:37 +0000)]
startrek: more cleaning/sizing
Alan Cox [Mon, 12 Mar 2018 00:11:12 +0000 (00:11 +0000)]
startrek: make stardates fixed point
Alan Cox [Sun, 11 Mar 2018 22:15:44 +0000 (22:15 +0000)]
startrek:tidy up scratch string usage in device and quad names
Alan Cox [Sun, 11 Mar 2018 22:08:42 +0000 (22:08 +0000)]
startrek: chdir somewhere, make it all static and remove dead bits
Alan Cox [Sun, 11 Mar 2018 21:57:51 +0000 (21:57 +0000)]
startrek: instructions
Alan Cox [Sun, 11 Mar 2018 21:57:30 +0000 (21:57 +0000)]
startrek: some clean up first pass
Alan Cox [Sun, 11 Mar 2018 20:57:49 +0000 (20:57 +0000)]
startrek: use time(NULL)
Alan Cox [Sun, 11 Mar 2018 20:57:21 +0000 (20:57 +0000)]
limits: move RAND_MAX to the right spot
Alan Cox [Sun, 11 Mar 2018 17:26:39 +0000 (17:26 +0000)]
Resolving merge
Tormod Volden [Sun, 11 Mar 2018 15:00:58 +0000 (16:00 +0100)]
Allow building without IDE or SCSI support
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sun, 11 Mar 2018 14:37:00 +0000 (15:37 +0100)]
coco3: Const'ify strcmp arguments
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sun, 11 Mar 2018 13:38:19 +0000 (14:38 +0100)]
Common DriveWire files for coco2/coco2cart/dragon-nx32
The coco2 and coco2cart platforms were missing the
low-level DriveWire drivers. They can use the same as
the dragon-nx32 platform, so make them common.
Now that coco2 and coco2cart build again, also add
the build memory map check while we are at it.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Alan Cox [Sun, 11 Mar 2018 14:12:07 +0000 (14:12 +0000)]
flat: note bug
Alan Cox [Sun, 11 Mar 2018 14:02:40 +0000 (14:02 +0000)]
startrek: make sdcc happier
sdcc does weird stuff with static objects constructed inside a function. No
idea why - but it's best to keep them outside of it
Alan Cox [Sun, 11 Mar 2018 14:02:07 +0000 (14:02 +0000)]
findsdcc: fix paths
Alan Cox [Sun, 11 Mar 2018 14:01:21 +0000 (14:01 +0000)]
syscall_exec16: Fix L2 build without locking
Alan Cox [Sun, 11 Mar 2018 13:18:43 +0000 (13:18 +0000)]
startrek: fix typo
Alan Cox [Sun, 11 Mar 2018 13:09:13 +0000 (13:09 +0000)]
startrek: feed through indent
No other changes
EtchedPixels [Sun, 11 Mar 2018 12:59:50 +0000 (12:59 +0000)]
Merge pull request #596 from beretta42/vile
vile: add to package script
EtchedPixels [Sun, 11 Mar 2018 12:59:34 +0000 (12:59 +0000)]
Merge pull request #597 from beretta42/vile2
curses: tailor tty VMIN to FUZIX
EtchedPixels [Sun, 11 Mar 2018 12:59:06 +0000 (12:59 +0000)]
Merge pull request #595 from beretta42/strcmp
coco3: fix strcmp definition
Brett Gordon [Sun, 11 Mar 2018 06:32:31 +0000 (01:32 -0500)]
vile: add to package script
Brett Gordon [Sun, 11 Mar 2018 06:24:07 +0000 (01:24 -0500)]
curses: tailor tty VMIN to FUZIX
VMIN and VEOF are unioned in FUZIX, so reset VMIN to 0 on raw(),
otherwise set it to EOF (4).
Brett Gordon [Sun, 11 Mar 2018 04:04:25 +0000 (23:04 -0500)]
coco3: fix strcmp definition
Tormod Volden [Sat, 10 Mar 2018 22:40:47 +0000 (23:40 +0100)]
dragon-nx32: Only init IDE or SD devices if set in config.h
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 10 Mar 2018 22:17:10 +0000 (23:17 +0100)]
dragon-nx32: Default to "real" DriveWire (bit-banger not Becker port)
Pass on BECKER from Make environment instead, so that it can be defined
on the command line without changing the code:
make -C Kernel TARGET=dragon-nx32 BECKER=1
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 10 Mar 2018 22:17:09 +0000 (23:17 +0100)]
dragon-nx32: SPI fast sector read: Initiate bit shifting after FRX enable
In the fast receive mode (FRX) of the 65SPI interface a read of
the data register triggers reading in the next byte over SPI. So
after going into this mode the first read will return the value
that was already there, before shifting in of the new value ensues.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 10 Mar 2018 22:17:08 +0000 (23:17 +0100)]
Remove spurious control character in varargs.h
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Tue, 27 Feb 2018 21:18:47 +0000 (22:18 +0100)]
devsd_discard.c: Fix link to ChaN's flow chart
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Alan Cox [Sat, 10 Mar 2018 23:57:13 +0000 (23:57 +0000)]
dragon-nx-32: resolve Makefile merge failure in previous
Tormod Volden [Fri, 23 Feb 2018 21:31:26 +0000 (22:31 +0100)]
Add GUID Partition Table support
And enable it on dragon-nx32.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Fri, 23 Feb 2018 21:31:28 +0000 (22:31 +0100)]
Add userspace GPT parser
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Fri, 23 Feb 2018 21:31:27 +0000 (22:31 +0100)]
Add library header files for partition tables
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Fri, 23 Feb 2018 21:31:25 +0000 (22:31 +0100)]
dragon-nx32: Add strcmp()
Also add prototype to 6809 header file.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Fri, 23 Feb 2018 21:31:24 +0000 (22:31 +0100)]
Add %2x support to kprintf
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Alan Cox [Sat, 10 Mar 2018 21:43:34 +0000 (21:43 +0000)]
68000: build vile
Alan Cox [Sat, 10 Mar 2018 21:43:23 +0000 (21:43 +0000)]
vile: add d and c functionality
Alan Cox [Fri, 9 Mar 2018 21:31:15 +0000 (21:31 +0000)]
68000: add more app makefiles
Alan Cox [Fri, 9 Mar 2018 21:30:25 +0000 (21:30 +0000)]
68000: update some Makefiles
Alan Cox [Fri, 9 Mar 2018 21:29:23 +0000 (21:29 +0000)]
68000: Library makefiles
Alan Cox [Fri, 9 Mar 2018 20:56:16 +0000 (20:56 +0000)]
malloc: tidy formatting to match core code standard
Alan Cox [Fri, 9 Mar 2018 18:07:55 +0000 (18:07 +0000)]
vile: add some of the needed bits for modify tracking etc
Plus some other msall fixups
Alan Cox [Fri, 9 Mar 2018 14:23:44 +0000 (14:23 +0000)]
vile: hook into build
Until we get rid of curses it's a bit large
Alan Cox [Mon, 5 Mar 2018 20:31:18 +0000 (20:31 +0000)]
6809: update rules to build startrek FP
No idea of it works yet but it does now build
Alan Cox [Mon, 5 Mar 2018 20:29:55 +0000 (20:29 +0000)]
6809: Update the library build
Build a libm and don't confuse with libc
Build the double libary (or most of it)
Alan Cox [Mon, 5 Mar 2018 20:29:00 +0000 (20:29 +0000)]
sqrt: fix SNaN
Alan Cox [Mon, 5 Mar 2018 20:28:36 +0000 (20:28 +0000)]
round: fix types for shifts
Alan Cox [Mon, 5 Mar 2018 20:28:05 +0000 (20:28 +0000)]
modf: replace MUSL version with Sun one for portability
Alan Cox [Mon, 5 Mar 2018 20:27:47 +0000 (20:27 +0000)]
frexp: replace MUSL with Sun version for portability
Alan Cox [Mon, 5 Mar 2018 20:27:07 +0000 (20:27 +0000)]
fabs: make friendly with non uint64_t
Alan Cox [Mon, 5 Mar 2018 20:26:54 +0000 (20:26 +0000)]
expm1: remove old STRICT_ASSIGN macro
Alan Cox [Mon, 5 Mar 2018 20:26:26 +0000 (20:26 +0000)]
copysign: make it friendly to non 64bit capable platforms
Alan Cox [Mon, 5 Mar 2018 20:26:05 +0000 (20:26 +0000)]
cbrt: make it friendly with non 64bit capable