FUZIX.git
7 years agokernel: update TODO
Alan Cox [Thu, 2 Feb 2017 14:31:56 +0000 (14:31 +0000)]
kernel: update TODO

7 years agoplatform_param: correct signed/unsigned discrepancy
Alan Cox [Thu, 2 Feb 2017 14:31:40 +0000 (14:31 +0000)]
platform_param: correct signed/unsigned discrepancy

7 years agoMerge pull request #484 from BartHM/patch-1
EtchedPixels [Mon, 30 Jan 2017 17:40:58 +0000 (17:40 +0000)]
Merge pull request #484 from BartHM/patch-1

Update trsload80.s to work on real hardware

7 years agoUpdate trsload80.s to work on real hardware
Bart [Mon, 30 Jan 2017 16:06:02 +0000 (17:06 +0100)]
Update trsload80.s to work on real hardware

In order to run Fuzix on a real TRS-80 Model 4 some corrections have to be made to the bootloader:
- The correct mode was not selected, Video Page #1 needs to be selected. The emulator SDLTRS does not behave correctly; on a real Model 4 Video Page #0 starts on FC00 with a distorted screen as result. So: OUT (0x84),#0x86 is working correctly.
- Stackpointer out of the way on 0xEE00, doesn't overwrite code.
- The ctc6845 registers are not loaded correctly, they must be read in reverse order. So INC HL must be DEC HL and the label must be put at the end of the table.
- The Clear Screen routine was not implemented correctly.
- On a real Model 4 a formatted floppy must be used to boot. This will be a SDDD disk, 40 tracks, formatted for TRS-DOS 6 or LS-DOS 6. These formatted disks have 18 sectors per track, starting on sector 0 and ending on 17. So an extra DEC A is used and a test against sector 18 instead of 19.

With these changes the bootloader is still 256 bytes and now works on SDLTRS and on a real Model 4 128K. A real or virtual formatted floppy is necessary, so the instructions need an update as well.

7 years agoMerge pull request #483 from beretta42/ping
EtchedPixels [Mon, 30 Jan 2017 14:24:12 +0000 (14:24 +0000)]
Merge pull request #483 from beretta42/ping

netd: route locally destined eth frames back to ourselfs.

We should do this by IP header inspection, but this gives us the framework.

7 years agonetd: route locally destined eth frames back to ourselfs.
Brett Gordon [Mon, 30 Jan 2017 13:53:09 +0000 (08:53 -0500)]
netd: route locally destined eth frames back to ourselfs.

7 years agoMerge pull request #480 from willsowerbutts/ds1302
EtchedPixels [Sat, 28 Jan 2017 14:18:58 +0000 (14:18 +0000)]
Merge pull request #480 from willsowerbutts/ds1302

ds1302 improvements

7 years agoMerge pull request #479 from willsowerbutts/floppy
EtchedPixels [Sat, 28 Jan 2017 14:18:00 +0000 (14:18 +0000)]
Merge pull request #479 from willsowerbutts/floppy

Kernel: devfd: Optimisations for reliable operation on 6MHz Z80

7 years agoMerge pull request #482 from beretta42/ping
EtchedPixels [Sat, 28 Jan 2017 14:05:32 +0000 (14:05 +0000)]
Merge pull request #482 from beretta42/ping

Add basic raw socket support to uip + ping client to test

7 years agoMerge pull request #481 from willsowerbutts/optimisations
EtchedPixels [Sat, 28 Jan 2017 14:04:59 +0000 (14:04 +0000)]
Merge pull request #481 from willsowerbutts/optimisations

Optimisations

7 years agoKernel: n8vem-mark4: Fix timer interrupt rate
Will Sowerbutts [Wed, 25 Jan 2017 14:53:31 +0000 (14:53 +0000)]
Kernel: n8vem-mark4: Fix timer interrupt rate

7 years agoKernel: p112: Use mnemonic to disable floppy motors, do not enable DMA
Will Sowerbutts [Wed, 25 Jan 2017 14:36:39 +0000 (14:36 +0000)]
Kernel: p112: Use mnemonic to disable floppy motors, do not enable DMA

7 years agoKernel: p112: Fix timer interrupt rate
Will Sowerbutts [Wed, 25 Jan 2017 14:36:50 +0000 (14:36 +0000)]
Kernel: p112: Fix timer interrupt rate

7 years agonetd: add some todo's
Brett Gordon [Tue, 24 Jan 2017 16:26:35 +0000 (11:26 -0500)]
netd: add some todo's

7 years agonetd: mark unused raw sockets with protocol no. 255 rather than 0
Brett Gordon [Tue, 24 Jan 2017 16:21:46 +0000 (11:21 -0500)]
netd: mark unused raw sockets with protocol no. 255 rather than 0

7 years agonetd: install ping
Brett Gordon [Tue, 24 Jan 2017 16:06:08 +0000 (11:06 -0500)]
netd: install ping

7 years agonetd: add ping client (to test raw socks)
Brett Gordon [Tue, 24 Jan 2017 16:02:33 +0000 (11:02 -0500)]
netd: add ping client (to test raw socks)

7 years agonetd: add ping client (to test raw socks)
Brett Gordon [Tue, 24 Jan 2017 15:59:19 +0000 (10:59 -0500)]
netd: add ping client (to test raw socks)

7 years agonetd: send dup packets to each match raw socket
Brett Gordon [Tue, 24 Jan 2017 15:14:33 +0000 (10:14 -0500)]
netd: send dup packets to each match raw socket

7 years agodev_fd: Only spin up motors for drives that are in use
Will Sowerbutts [Mon, 23 Jan 2017 23:07:48 +0000 (23:07 +0000)]
dev_fd: Only spin up motors for drives that are in use

Previously we spun up all floppy motors at once. The current required to
do this places a lot of strain on power supplies. This method is a bit
kinder to them.

7 years agonetd: make uip send IP header too.
Brett Gordon [Mon, 23 Jan 2017 15:02:59 +0000 (10:02 -0500)]
netd: make uip send IP header too.

7 years agonetd: add support for raw sockets
Brett Gordon [Mon, 23 Jan 2017 14:32:11 +0000 (09:32 -0500)]
netd: add support for raw sockets

7 years agoKernel: kernel.h, move comment about kernel.def to correct location
Will Sowerbutts [Sun, 22 Jan 2017 22:48:03 +0000 (22:48 +0000)]
Kernel: kernel.h, move comment about kernel.def to correct location

7 years agoKernel: n8vem-mark4, p112, zeta-v2: Move platform_param() to DISCARD
Will Sowerbutts [Sun, 22 Jan 2017 22:47:19 +0000 (22:47 +0000)]
Kernel: n8vem-mark4, p112, zeta-v2: Move platform_param() to DISCARD

7 years agoKernel: zeta-v2: Faster, smaller map_process_2
Will Sowerbutts [Sun, 22 Jan 2017 22:46:29 +0000 (22:46 +0000)]
Kernel: zeta-v2: Faster, smaller map_process_2

7 years agoKernel: Fix counting of individual seconds with CONFIG_RTC_INTERVAL
Will Sowerbutts [Sun, 22 Jan 2017 22:44:43 +0000 (22:44 +0000)]
Kernel: Fix counting of individual seconds with CONFIG_RTC_INTERVAL

7 years agoKernel: ds1302: Start clock on boot if it is stopped
Will Sowerbutts [Sun, 22 Jan 2017 22:43:58 +0000 (22:43 +0000)]
Kernel: ds1302: Start clock on boot if it is stopped

7 years agoKernel: devfd: Optimisations for reliable operation on 6MHz Z80
Will Sowerbutts [Sun, 22 Jan 2017 22:38:33 +0000 (22:38 +0000)]
Kernel: devfd: Optimisations for reliable operation on 6MHz Z80

The driver would previously not work below about 10MHz.

Tested on zeta-v2 (Z80) at 6MHz, 8MHz, 10MHz, 18.432MHz and 20MHz.

Tested on p112 (Z180) at 16MHz.

This change also increases the maximum number of times a floppy
operation will be retried before we fail it. It also no longer panics on
floppy errors.

7 years agoMerge pull request #478 from beretta42/dig
EtchedPixels [Tue, 17 Jan 2017 17:05:12 +0000 (17:05 +0000)]
Merge pull request #478 from beretta42/dig

Dig: beef it up.

7 years agodig: allow cmdline to spec dns server, default question of root "."
Brett Gordon [Tue, 17 Jan 2017 16:18:29 +0000 (11:18 -0500)]
dig: allow cmdline to spec dns server, default question of root "."

7 years agodig: parse and use /etc/resolv.conf
Brett Gordon [Tue, 17 Jan 2017 15:50:19 +0000 (10:50 -0500)]
dig: parse and use /etc/resolv.conf

7 years agoMerge pull request #476 from beretta42/dw_mf
EtchedPixels [Mon, 16 Jan 2017 14:11:33 +0000 (14:11 +0000)]
Merge pull request #476 from beretta42/dw_mf

coco3: drivewire: maintain faster polling for short while after a putc.

7 years agoMerge pull request #477 from beretta42/flashrom
EtchedPixels [Mon, 16 Jan 2017 14:11:10 +0000 (14:11 +0000)]
Merge pull request #477 from beretta42/flashrom

App: flashrom: only install if actually built.

7 years agoApp: flashrom: only install if actually built.
Brett Gordon [Sun, 15 Jan 2017 20:37:34 +0000 (15:37 -0500)]
App: flashrom: only install if actually built.

7 years agococo3: dw: maintain faster polling for short while after a putc.
Brett Gordon [Thu, 12 Jan 2017 15:52:29 +0000 (10:52 -0500)]
coco3: dw: maintain faster polling for short while after a putc.

From Michael Furman: improves interactivity on clients.

7 years agoMerge pull request #475 from willsowerbutts/features2
EtchedPixels [Mon, 9 Jan 2017 20:14:21 +0000 (20:14 +0000)]
Merge pull request #475 from willsowerbutts/features2

New features (second try)

7 years agoflashrom: Bugfix for off-by-one error with --partial
Will Sowerbutts [Mon, 9 Jan 2017 02:13:06 +0000 (02:13 +0000)]
flashrom: Bugfix for off-by-one error with --partial

7 years agozeta-v2: Tidy up devrd
Will Sowerbutts [Mon, 9 Jan 2017 01:51:18 +0000 (01:51 +0000)]
zeta-v2: Tidy up devrd

7 years agoApplications: New "flashrom" utility for in-system Flash ROM programming
Will Sowerbutts [Sun, 8 Jan 2017 23:04:17 +0000 (23:04 +0000)]
Applications: New "flashrom" utility for in-system Flash ROM programming

This utility can reprogram a number of common flash ROM types using
the new /dev/mem driver.

Tested on zeta-v2 and n8vem-mark4 platforms with SST39SF040
512KB flash ROM parts.

This is based on my Flash4 and Flash030 utilities.

7 years agoKernel: devide: Improve drive detection and timeout code.
Will Sowerbutts [Fri, 6 Jan 2017 19:25:36 +0000 (19:25 +0000)]
Kernel: devide: Improve drive detection and timeout code.

7 years agoKernel: Make "bootdev:" prompt friendlier.
Will Sowerbutts [Fri, 6 Jan 2017 19:23:43 +0000 (19:23 +0000)]
Kernel: Make "bootdev:" prompt friendlier.

This change runs the device drivers to initialise and report the
available device names to the user (where probing is possible) before
the user is asked to choose a boot device. We now also ask the user
to choose again if the selected device cannot be booted.

7 years agoKernel: fmount: Return failure instead of panicking when a device cannot
Will Sowerbutts [Fri, 6 Jan 2017 19:22:50 +0000 (19:22 +0000)]
Kernel: fmount: Return failure instead of panicking when a device cannot
be opened.

7 years agoKernel: Add "fuzix-loader" boot mechansim
Will Sowerbutts [Fri, 6 Jan 2017 19:14:31 +0000 (19:14 +0000)]
Kernel: Add "fuzix-loader" boot mechansim

This provides a way to build a Fuzix application that loads and boots a
different Fuzix kernel version. This is very useful for testing new
kernels -- just load the file onto a running Fuzix system and run it. It
will sync the disks, steal control from the running kernel, and set the
new kernel booting.

This mechanism requires the kernel to support booting from arbitrary
locations in memory.

This is analagous to the existing "cpm-loader" mechanism and re-uses the
same tools.

Tested and confirmed working on p112, n8vem-mark4 and zeta-v2.

7 years agoKernel: zeta-v2: Correct KERNTOP
Will Sowerbutts [Fri, 6 Jan 2017 19:36:11 +0000 (19:36 +0000)]
Kernel: zeta-v2: Correct KERNTOP

7 years agoKernel: zeta-v2: Simplify and improve boot code.
Will Sowerbutts [Fri, 6 Jan 2017 19:07:04 +0000 (19:07 +0000)]
Kernel: zeta-v2: Simplify and improve boot code.

The kernel image is unlikely to grow larger than 48KB so we can
simplyify the process for relocating the kernel to the correct memory
banks when booting.

Now that we have ROM disk support we can drop copying the RAM disk
contents on boot (userspace could do this by reading from /dev/physmem
or /dev/rd1 if it were still desirable).

We now stop the floppy drive motors on boot so they don't spin forever
where we have booted from floppy disk.

7 years agoKernel: zeta-v2: Correct TICKSPERSEC
Will Sowerbutts [Fri, 6 Jan 2017 19:04:28 +0000 (19:04 +0000)]
Kernel: zeta-v2: Correct TICKSPERSEC

7 years agoKernel: zeta-v2: Change to dynamic bufpool
Will Sowerbutts [Fri, 6 Jan 2017 19:02:52 +0000 (19:02 +0000)]
Kernel: zeta-v2: Change to dynamic bufpool

7 years agoKernel: n8vem-mark4: Change to dynamic bufpool
Will Sowerbutts [Fri, 6 Jan 2017 19:02:15 +0000 (19:02 +0000)]
Kernel: n8vem-mark4: Change to dynamic bufpool

7 years agoKernel: p112: Change to dynamic bufpool
Will Sowerbutts [Fri, 6 Jan 2017 18:53:44 +0000 (18:53 +0000)]
Kernel: p112: Change to dynamic bufpool

7 years agoKernel: zeta-v2: Implement /dev/rd and new /dev/mem
Will Sowerbutts [Sun, 8 Jan 2017 23:00:43 +0000 (23:00 +0000)]
Kernel: zeta-v2: Implement /dev/rd and new /dev/mem

This implements the new /dev/mem and /dev/rd drivers for the zeta-v2
platform.

7 years agoKernel: p112, n8vem-mark4: Implement /dev/rd and new /dev/mem
Will Sowerbutts [Sun, 8 Jan 2017 22:47:58 +0000 (22:47 +0000)]
Kernel: p112, n8vem-mark4: Implement /dev/rd and new /dev/mem

This implements the new /dev/mem and /dev/rd drivers for the Z180
based platforms.

p112: Note that the ROM disk is not useful on P112 as the ROM is limited
to 32KB in size and is unmapped from the CPU address space.

7 years agoKernel: New /dev/mem driver
Will Sowerbutts [Sun, 8 Jan 2017 22:44:34 +0000 (22:44 +0000)]
Kernel: New /dev/mem driver

The old /dev/mem provided access to kernel memory only and is renamed to
/dev/kmem (minor number remains 1).

The new /dev/mem (minor number 4) is a character device which allows
userspace applications to access any address in the CPU physical memory
map using lseek(), read() and write(). Platforms need to define
CONFIG_DEV_MEM in config.h and provide the functions devmem_read() and
devmem_write().

7 years agoKernel: New devrd driver: block device backed by CPU-addressed memory.
Will Sowerbutts [Sun, 8 Jan 2017 22:27:59 +0000 (22:27 +0000)]
Kernel: New devrd driver: block device backed by CPU-addressed memory.

New driver supports two devices:
  Block device /dev/rd0 (minor 0) -- a ROM disk
  Block device /dev/rd1 (minor 1) -- a RAM disk
  Minors 2+ may be used for other RAM disks in the future

Platforms need to provide DEV_RD_ROM_START, DEV_RD_ROM_SIZE,
DEV_RD_RAM_START and DEV_RD_RAM_SIZE which specify the start address (in
physical memory) and length (in bytes) of each device.

Platforms also need to provide a rd_platform_copy() function.

7 years agoKernel: Fix kernel.def U_DATA offsets
Will Sowerbutts [Sun, 8 Jan 2017 22:15:01 +0000 (22:15 +0000)]
Kernel: Fix kernel.def U_DATA offsets

7 years agoMerge pull request #473 from willsowerbutts/bugfix
EtchedPixels [Sun, 8 Jan 2017 12:22:08 +0000 (12:22 +0000)]
Merge pull request #473 from willsowerbutts/bugfix

Kernel: bread() should mark blocks as free on read failure

7 years agoKernel: bread() should mark blocks as free on read failure
Will Sowerbutts [Thu, 5 Jan 2017 21:06:30 +0000 (21:06 +0000)]
Kernel: bread() should mark blocks as free on read failure

7 years agoMerge pull request #472 from willsowerbutts/levee
EtchedPixels [Wed, 4 Jan 2017 15:35:55 +0000 (15:35 +0000)]
Merge pull request #472 from willsowerbutts/levee

Applications: levee: Build versions for ansi, vt52 and termcap

7 years agoApplications: levee: Build versions for ansi, vt52 and termcap
Will Sowerbutts [Wed, 4 Jan 2017 14:54:01 +0000 (14:54 +0000)]
Applications: levee: Build versions for ansi, vt52 and termcap

7 years agoMerge pull request #471 from willsowerbutts/zetav2fixes
EtchedPixels [Wed, 4 Jan 2017 12:55:25 +0000 (12:55 +0000)]
Merge pull request #471 from willsowerbutts/zetav2fixes

Fixes for zeta-v2 platform

7 years agoMerge pull request #470 from willsowerbutts/buildfixes
EtchedPixels [Wed, 4 Jan 2017 12:54:54 +0000 (12:54 +0000)]
Merge pull request #470 from willsowerbutts/buildfixes

Minor build fixes

7 years agoApplications/util/tget: Link with termcap library
Will Sowerbutts [Wed, 28 Dec 2016 22:08:40 +0000 (22:08 +0000)]
Applications/util/tget: Link with termcap library

7 years agozeta-v2: Remove fuzix.com, fuzix.rom when cleaning
Will Sowerbutts [Wed, 28 Dec 2016 17:23:08 +0000 (17:23 +0000)]
zeta-v2: Remove fuzix.com, fuzix.rom when cleaning

7 years agozeta-v2: Save a few bytes
Will Sowerbutts [Wed, 28 Dec 2016 17:24:50 +0000 (17:24 +0000)]
zeta-v2: Save a few bytes

7 years agozeta-v2: Call program_vectors for kernel on boot.
Will Sowerbutts [Wed, 28 Dec 2016 17:30:14 +0000 (17:30 +0000)]
zeta-v2: Call program_vectors for kernel on boot.

This fixes a bug which was preventing zeta-v2 from booting.

7 years agoApplications/util/termcap.c: Update function declarations to modern C
Will Sowerbutts [Wed, 28 Dec 2016 17:21:05 +0000 (17:21 +0000)]
Applications/util/termcap.c: Update function declarations to modern C
syntax as required by recent versions of sdcc.

7 years agoApplications/util: Add missing make targets that package declares
Will Sowerbutts [Wed, 28 Dec 2016 17:25:22 +0000 (17:25 +0000)]
Applications/util: Add missing make targets that package declares

7 years agoKernel binman: fix off-by-one error, allowing COMMONMEM to use the last
Will Sowerbutts [Wed, 28 Dec 2016 17:26:06 +0000 (17:26 +0000)]
Kernel binman: fix off-by-one error, allowing COMMONMEM to use the last
byte of RAM (at address 0xFFFF).

7 years agoMerge pull request #469 from beretta42/cksum
EtchedPixels [Mon, 19 Dec 2016 20:47:14 +0000 (20:47 +0000)]
Merge pull request #469 from beretta42/cksum

Cksum

7 years agococo2cart: Initial patches from Brett Gordon for cocosdc
Alan Cox [Mon, 19 Dec 2016 20:46:16 +0000 (20:46 +0000)]
coco2cart: Initial patches from Brett Gordon for cocosdc

7 years agocksum.c: further match gnu cksum algo, crc with file length.
Brett Gordon [Mon, 19 Dec 2016 14:49:28 +0000 (09:49 -0500)]
cksum.c:  further match gnu cksum algo, crc with file length.

7 years agocksum.c: replace CRC LUT with Posix poly
Brett Gordon [Mon, 19 Dec 2016 14:13:42 +0000 (09:13 -0500)]
cksum.c: replace CRC LUT with Posix poly

7 years agococo2cart: update ACIA support to match nx32
Alan Cox [Mon, 12 Dec 2016 17:51:18 +0000 (17:51 +0000)]
coco2cart: update ACIA support to match nx32

Add speed setting etc to the Dragon64 UART

7 years agococo2cart: remove obsolete comment
Alan Cox [Mon, 12 Dec 2016 17:51:02 +0000 (17:51 +0000)]
coco2cart: remove obsolete comment

7 years agomini_ide: fix a prototype
Alan Cox [Mon, 12 Dec 2016 17:45:34 +0000 (17:45 +0000)]
mini_ide: fix a prototype

7 years agococo3: fix a comment
Alan Cox [Sat, 10 Dec 2016 14:30:29 +0000 (14:30 +0000)]
coco3: fix a comment

7 years agococo2cart: remove dead code
Alan Cox [Tue, 6 Dec 2016 19:17:15 +0000 (19:17 +0000)]
coco2cart: remove dead code

7 years agobank: propogate some changes
Alan Cox [Tue, 6 Dec 2016 19:05:30 +0000 (19:05 +0000)]
bank: propogate some changes

7 years agoMakefile: add bank8k
Alan Cox [Tue, 6 Dec 2016 19:05:17 +0000 (19:05 +0000)]
Makefile: add bank8k

7 years agobank8k: ho hum...
Alan Cox [Tue, 6 Dec 2016 18:24:31 +0000 (18:24 +0000)]
bank8k: ho hum...

7 years agobank8k: add prototypes
Alan Cox [Tue, 6 Dec 2016 00:20:51 +0000 (00:20 +0000)]
bank8k: add prototypes

7 years agobank8k: first cut at an 8K banking module
Alan Cox [Tue, 6 Dec 2016 00:18:02 +0000 (00:18 +0000)]
bank8k: first cut at an 8K banking module

This needs to handle the tables differently as they don't fit in the page
pointers but that also lets us address Brett's wish for video mapping which
with 8K banking actually sort of makes sense on the COCO3.

7 years agococo2cart: document disk layout
Alan Cox [Sun, 4 Dec 2016 14:41:44 +0000 (14:41 +0000)]
coco2cart: document disk layout

7 years agoexecve: fix deadlock/crash
Alan Cox [Sun, 4 Dec 2016 14:31:54 +0000 (14:31 +0000)]
execve: fix deadlock/crash

If a process sets files to be closed with O_CLOEXEC and those files are ones
that sleep during the close (eg a socket), and at the same time as it is
sleeping then on a little box with not many buffers you can easily deadlock
or run out of buffers.

Only allow one execve process at a time. As the disk I/O on a little 8bit
micro takes the full CPU time, and the only blocking case is the obscure
O_CLOEXEC one the performance impact of this change is pretty close to nil,
but it does mean we need to be careful not to let anything block for long
while closing.

For networking this will need a little bit of care and it also introduces
a bizarre corner case deadlock if you are using the userspace networking
daemon. You must ensure the daemon does not itself try to do an execve
while a socket might be waiting to close. As the network daemon can already
tie itself in knots if it attempts to use sockets, and is very special this
seems acceptable.

7 years agococo2cart: reclaim buffers
Alan Cox [Sun, 4 Dec 2016 14:31:30 +0000 (14:31 +0000)]
coco2cart: reclaim buffers

Tidy up the oddments that need deleting, and update the README

7 years agococo2cart: introduce swap enabled single process model
Alan Cox [Sun, 4 Dec 2016 13:46:42 +0000 (13:46 +0000)]
coco2cart: introduce swap enabled single process model

With the small core changes the 6809 banked ports can now swap while the
interrupts are enabled. This relies upon the fact the vectors are always
mapped so while not too hard on 6809 and 6502 the Z80 ports where the low
256 bytes are both IRQ vectors and part of the user map will probably need
a bit more work.

7 years agococo2cart: buffer pool into asm
Alan Cox [Sun, 4 Dec 2016 13:46:01 +0000 (13:46 +0000)]
coco2cart: buffer pool into asm

This moves the buffer pool into its own section so that we can make sure
it lies next to discard

7 years agococo2cart: prepare for discard recovery
Alan Cox [Sun, 4 Dec 2016 13:45:24 +0000 (13:45 +0000)]
coco2cart: prepare for discard recovery

Align everything so that we can reclaim the discard memory space

7 years agoprocess: changes for IRQ when swapping
Alan Cox [Sun, 4 Dec 2016 13:37:54 +0000 (13:37 +0000)]
process: changes for IRQ when swapping

Don't scribble on the udata when it is unsafe
Don't charge time to processes when swapping them

7 years agokernel: allow platforms to override the default task switch rate
Alan Cox [Sun, 4 Dec 2016 13:37:08 +0000 (13:37 +0000)]
kernel: allow platforms to override the default task switch rate

This is useful on pure swap systems for example.

7 years agokdata: In preparation for IRQ enabled swap introduce an inswap status byte
Alan Cox [Sun, 4 Dec 2016 13:36:36 +0000 (13:36 +0000)]
kdata: In preparation for IRQ enabled swap introduce an inswap status byte

7 years agococo2cart: update the README file
Alan Cox [Sun, 4 Dec 2016 13:21:27 +0000 (13:21 +0000)]
coco2cart: update the README file

7 years agococo2cart: add link file
Alan Cox [Sat, 3 Dec 2016 21:44:10 +0000 (21:44 +0000)]
coco2cart: add link file

7 years agococo2cart: fix swapping logic
Alan Cox [Sat, 3 Dec 2016 21:43:29 +0000 (21:43 +0000)]
coco2cart: fix swapping logic

7 years agobcpl: tidy up problems with Z80 from changes, add split int/linker
Alan Cox [Sat, 3 Dec 2016 21:03:38 +0000 (21:03 +0000)]
bcpl: tidy up problems with Z80 from changes, add split int/linker

Need to merge the split one and the paging logic

7 years agobcpl: remove a stdio usage and a pointless indirection
Alan Cox [Sat, 3 Dec 2016 20:19:41 +0000 (20:19 +0000)]
bcpl: remove a stdio usage and a pointless indirection

Faster faster..

7 years agoMerge branch 'master' of https://github.com/EtchedPixels/FUZIX
Alan Cox [Wed, 30 Nov 2016 18:50:59 +0000 (18:50 +0000)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX

7 years agoscc: turn arguments the right way round
Alan Cox [Wed, 30 Nov 2016 18:44:37 +0000 (18:44 +0000)]
scc: turn arguments the right way round

Small C has an irritating design feature that means it stacks arguments left
to right not right to left. Rather than working around this use a spool file
so we can put the code fragments in right to left order.

This totally changes the ABI, which is fine because we aren't using it for
anything and the old ABI is a PITA. With this done we can actually write sane
syscall stubs.

Would benefit from optimisations to also use the internal buffer as a stack
not just flush to the spool file as we stack code fragments.

Needless to say all the old varargs gunge is now a) broken and b) not needed

7 years agoMerge pull request #467 from beretta42/netdb
EtchedPixels [Sun, 27 Nov 2016 17:16:26 +0000 (17:16 +0000)]
Merge pull request #467 from beretta42/netdb

netd: fix gethostbyname: only add dns answers that are inet addrs.

7 years agonetd: fix gethostbyname: only add answsers that are inet addrs.
Brett Gordon [Sun, 27 Nov 2016 14:46:32 +0000 (09:46 -0500)]
netd: fix gethostbyname: only add answsers that are inet addrs.

7 years agoMerge pull request #466 from nealcrook/v7-man-pages
EtchedPixels [Thu, 24 Nov 2016 16:10:16 +0000 (16:10 +0000)]
Merge pull request #466 from nealcrook/v7-man-pages

V7 man pages (all platforms)