Alan Cox [Fri, 22 May 2015 23:12:25 +0000 (00:12 +0100)]
trs80: still trying to fix tty switch
Alan Cox [Fri, 22 May 2015 23:11:46 +0000 (00:11 +0100)]
utsname: fix reporting strings
They were not getting packed as we wanted due to being const
Alan Cox [Fri, 22 May 2015 23:11:32 +0000 (00:11 +0100)]
utsname: small fixes
Alan Cox [Fri, 22 May 2015 22:24:27 +0000 (23:24 +0100)]
util: swap the old ucp etc 'sd' 32MB shifts for a simple bias
We don't use the SocZ80 UZI 32MB block scheme, so repurpose it for general
use
Alan Cox [Fri, 22 May 2015 22:09:37 +0000 (23:09 +0100)]
zx128: fix keyboard polling
The NMOS di/irq_restore bug is now fixed so we can go back to polling here
Alan Cox [Fri, 22 May 2015 21:29:07 +0000 (22:29 +0100)]
includes: resync proc.h
Tormod Volden [Fri, 22 May 2015 20:20:19 +0000 (22:20 +0200)]
Remove unneeded NUL keyboard input check on various platforms
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Fri, 22 May 2015 20:20:18 +0000 (22:20 +0200)]
dragon-nx32: Cruft removal and some cosmetics in tricks.s
We don't need to preserve Y because it is properly stacked.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Fri, 22 May 2015 20:20:17 +0000 (22:20 +0200)]
utils: Add size report to Makefile.6809
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Fri, 22 May 2015 20:20:16 +0000 (22:20 +0200)]
Fix memmove breakage
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Alan Cox [Fri, 22 May 2015 21:21:24 +0000 (22:21 +0100)]
trs80: Add support for two consoles (shift-F1 and shift-F2)
Useful for debugging work and testing interactions.
The TRS80 cannot as far as I understand move the physical video base, so
we exchange the memory banks and do some additional pointer flipping and
the like to get it to work.
Cursor handling is still not quite right and needs debugging.
Alan Cox [Fri, 22 May 2015 14:38:19 +0000 (15:38 +0100)]
filesys: turn i_ref into a #define
This saves us 67 bytes!
Alan Cox [Fri, 22 May 2015 14:29:19 +0000 (15:29 +0100)]
syscall_fs2: kill redundant itmp
Alan Cox [Fri, 22 May 2015 13:24:09 +0000 (14:24 +0100)]
env: add missing app
Alan Cox [Fri, 22 May 2015 10:37:16 +0000 (11:37 +0100)]
README.md: devtty done
Alan Cox [Fri, 22 May 2015 10:36:45 +0000 (11:36 +0100)]
mtx: note bug to fix
Alan Cox [Fri, 22 May 2015 10:35:54 +0000 (11:35 +0100)]
tty: Implement /dev/tty and fix some open() bugs
Some rough edges to fix
Fix various existing crashes on open() - explains the df bug I think
Return correct error codes from device open fails
Alan Cox [Fri, 22 May 2015 10:34:42 +0000 (11:34 +0100)]
inode: add a helper for opening devices
We keep the inode stuff clear of devices (might be very size costly otherwise)
but do the fixups here. Not perfect... may need to size a few options and
see what the payoffs are
Alan Cox [Fri, 22 May 2015 10:34:25 +0000 (11:34 +0100)]
vt: this will go away in a moment
Alan Cox [Fri, 22 May 2015 10:34:09 +0000 (11:34 +0100)]
filesystem: add /dev/tty node
Alan Cox [Fri, 22 May 2015 10:27:49 +0000 (11:27 +0100)]
devio: handle error reporting in the right place
Then we can fix the error reporting on device opens in open()
Alan Cox [Thu, 21 May 2015 23:02:15 +0000 (00:02 +0100)]
devtty: update for close semantics
Alan Cox [Thu, 21 May 2015 22:58:49 +0000 (23:58 +0100)]
tty: handle close better
Alan Cox [Thu, 21 May 2015 22:48:17 +0000 (23:48 +0100)]
devmdv: fix open/close handling
Alan Cox [Thu, 21 May 2015 22:44:38 +0000 (23:44 +0100)]
inode: correct close behaviour for devices (note: impacts some drivers!)
We should call _close for each close matching the final close of an open.
This is a slight change in semantics but it's what we actually need to sort
must things out.
Yes it breaks some devices..diddums 8)
Alan Cox [Thu, 21 May 2015 22:38:44 +0000 (23:38 +0100)]
utils/Makefile: Assorted changes
- Fix dependency rules a bit
- Support building some stuff with --no-stdio
- Minor fixes
- Build uname
Alan Cox [Thu, 21 May 2015 22:38:33 +0000 (23:38 +0100)]
whoami: remove stdio
Alan Cox [Thu, 21 May 2015 22:38:18 +0000 (23:38 +0100)]
which: fix buffer length checking
Alan Cox [Thu, 21 May 2015 22:38:02 +0000 (23:38 +0100)]
uud/uue: fix buffer length checking
Alan Cox [Thu, 21 May 2015 22:37:50 +0000 (23:37 +0100)]
tee: remove stdio
Alan Cox [Thu, 21 May 2015 22:37:45 +0000 (23:37 +0100)]
sum: remove stdio
Alan Cox [Thu, 21 May 2015 22:37:32 +0000 (23:37 +0100)]
rmdir: remove stdio
Alan Cox [Thu, 21 May 2015 22:37:22 +0000 (23:37 +0100)]
rm: fix error reporting
Alan Cox [Thu, 21 May 2015 22:37:12 +0000 (23:37 +0100)]
pwd: remove stdio
Alan Cox [Thu, 21 May 2015 22:36:55 +0000 (23:36 +0100)]
prtroot: "fuzix" not "uzi"
Alan Cox [Thu, 21 May 2015 22:36:41 +0000 (23:36 +0100)]
printenv: remove stdio
Alan Cox [Thu, 21 May 2015 22:36:34 +0000 (23:36 +0100)]
pagesize: remove stdio
Alan Cox [Thu, 21 May 2015 22:36:22 +0000 (23:36 +0100)]
mv: note removal of stdio
Alan Cox [Thu, 21 May 2015 22:36:10 +0000 (23:36 +0100)]
mknod: remove stdio
Alan Cox [Thu, 21 May 2015 22:35:32 +0000 (23:35 +0100)]
mkfifo: fix error code on exit
Alan Cox [Thu, 21 May 2015 22:35:17 +0000 (23:35 +0100)]
mkdir: remove stdio, better errors
Alan Cox [Thu, 21 May 2015 22:34:59 +0000 (23:34 +0100)]
ls: fix buffer length checks
Alan Cox [Thu, 21 May 2015 22:34:47 +0000 (23:34 +0100)]
ln: note removal of stdio
Alan Cox [Thu, 21 May 2015 22:34:31 +0000 (23:34 +0100)]
ll: buffer length checks
Alan Cox [Thu, 21 May 2015 22:34:17 +0000 (23:34 +0100)]
init: enable process groups
Alan Cox [Thu, 21 May 2015 22:34:03 +0000 (23:34 +0100)]
kill: remove stdio
Alan Cox [Thu, 21 May 2015 22:33:39 +0000 (23:33 +0100)]
date: remove stdio
Alan Cox [Thu, 21 May 2015 22:33:28 +0000 (23:33 +0100)]
cut: fix buffer length checks
Alan Cox [Thu, 21 May 2015 22:33:18 +0000 (23:33 +0100)]
cp: note stdio removal
Alan Cox [Thu, 21 May 2015 22:33:01 +0000 (23:33 +0100)]
chown.c: remove stdio
Alan Cox [Thu, 21 May 2015 22:32:50 +0000 (23:32 +0100)]
chmod.c: remove stdio
Alan Cox [Thu, 21 May 2015 22:32:40 +0000 (23:32 +0100)]
chgrp: remove stdio
Alan Cox [Thu, 21 May 2015 22:10:45 +0000 (23:10 +0100)]
ssh: fix dumb bugs introduced in semi-mechanical translation from stdio
Alan Cox [Thu, 21 May 2015 22:09:44 +0000 (23:09 +0100)]
fcc: add --nostdio, correct -pedantic to --pedantic
Alan Cox [Thu, 21 May 2015 22:09:29 +0000 (23:09 +0100)]
liberror: new format file
Alan Cox [Thu, 21 May 2015 22:09:07 +0000 (23:09 +0100)]
Makefile: add a "nostdio" crt0
Alan Cox [Thu, 21 May 2015 22:08:47 +0000 (23:08 +0100)]
opendir: standard says O_CLOEXEC
Alan Cox [Thu, 21 May 2015 22:08:29 +0000 (23:08 +0100)]
getent: switch to non malloc using version
Saves a ton of space
Alan Cox [Thu, 21 May 2015 22:08:14 +0000 (23:08 +0100)]
initgroups: remove duplicated config file
Alan Cox [Thu, 21 May 2015 22:07:52 +0000 (23:07 +0100)]
error: fixed up low space version
Alan Cox [Thu, 21 May 2015 22:05:57 +0000 (23:05 +0100)]
execv: pedantic corrections to prototypes
Alan Cox [Thu, 21 May 2015 22:04:56 +0000 (23:04 +0100)]
libc: add a tool to make the new liberror.txt
Alan Cox [Thu, 21 May 2015 22:03:52 +0000 (23:03 +0100)]
util: remove escaped file
Alan Cox [Thu, 21 May 2015 22:03:05 +0000 (23:03 +0100)]
tty: implement system 5 style process groups
This completes (I think) the sketched out implementation in the code.
Alan Cox [Thu, 21 May 2015 21:56:51 +0000 (22:56 +0100)]
trs80,devtty: make clearer
Alan Cox [Thu, 21 May 2015 21:56:35 +0000 (22:56 +0100)]
pcw8256,devfd: Fix typo
Alan Cox [Thu, 21 May 2015 21:56:01 +0000 (22:56 +0100)]
trs80: update README
Alan Cox [Thu, 21 May 2015 08:33:30 +0000 (09:33 +0100)]
swap: introduce swapping onto IDE, add the needed ZX128 bits
The concept is:
swap_map(x) turns x into an address that will hold the data to be
written out.
swap_page holds the "page" which is a cookie passed from the bank
manager to the swapper and on to the drivers.
map_for_swap takes the cookie and puts the page in the required space
map_kernel_{restore} then goes back to kernel mappings
The bank manager is responsible for not queuing a single I/O that spans two
"pages"
This then allows for swapping support, including banked memory from bank16k and
the like to use a generic shared driver without platform specifics leaking into
the driver layer code.
Alan Cox [Wed, 20 May 2015 22:37:18 +0000 (23:37 +0100)]
xitoa: use our own int helper
For stdio and perror using apps it costs us a small amount of memory. For stdio
using apps in general it's free, and for non stdio apps using itoa and not
sucking in the 32bit maths helpers its a big saving.
Alan Cox [Wed, 20 May 2015 22:36:56 +0000 (23:36 +0100)]
strerror: should live in string.h according to the standards
Alan Cox [Wed, 20 May 2015 22:36:31 +0000 (23:36 +0100)]
ssh: take it down from 12K to 9K
Alan Cox [Wed, 20 May 2015 22:30:47 +0000 (23:30 +0100)]
rm: downsize, fix buffers
Alan Cox [Wed, 20 May 2015 22:30:23 +0000 (23:30 +0100)]
mv: Fix buffer checking, remove stdio, downsize
Alan Cox [Wed, 20 May 2015 22:29:54 +0000 (23:29 +0100)]
ln: fix buffer checks, remove stdio, shrink
Lots more memory saved
Alan Cox [Wed, 20 May 2015 22:29:26 +0000 (23:29 +0100)]
cp: strip stdio usage, fix memory leak, size down
Saves about 2K
Alan Cox [Wed, 20 May 2015 21:32:23 +0000 (22:32 +0100)]
head: replace the Minix head with a custom one
This takes it down from over 9500 bytes to a bit of 3500
Alan Cox [Wed, 20 May 2015 21:04:34 +0000 (22:04 +0100)]
Applications/util: generate a list of sizes
Alan Cox [Wed, 20 May 2015 21:04:00 +0000 (22:04 +0100)]
ucp-mini-script: trim further - we want this to fit a 180-200K disc
Alan Cox [Wed, 20 May 2015 21:03:21 +0000 (22:03 +0100)]
pcw8256: sort out the floppy driver
Reading at least now works with these fixes and bodges. Lots more debug to
do.
Alan Cox [Wed, 20 May 2015 21:02:52 +0000 (22:02 +0100)]
lowlevel-z80-banked: delete duplicate globl here too
Alan Cox [Wed, 20 May 2015 21:02:17 +0000 (22:02 +0100)]
lowlevel-z80: remove dead symbol
Alan Cox [Wed, 20 May 2015 13:11:41 +0000 (14:11 +0100)]
libc: remove 3 clause BSD code and replace from dLibs 1.20
Alan Cox [Wed, 20 May 2015 13:10:37 +0000 (14:10 +0100)]
error.c: better strerror for size
Remove all the funky parsing and use a binary error list for strerror. That
saves us about 500 bytes in many applications.
Alan Cox [Tue, 19 May 2015 22:51:14 +0000 (23:51 +0100)]
pcw8256: build fix
Alan Cox [Tue, 19 May 2015 22:25:03 +0000 (23:25 +0100)]
syscalls.h: add uadmin defines
Alan Cox [Tue, 19 May 2015 22:19:38 +0000 (23:19 +0100)]
ucp-script: add reboot
Alan Cox [Tue, 19 May 2015 22:18:59 +0000 (23:18 +0100)]
reboot; add command
Alan Cox [Tue, 19 May 2015 22:18:34 +0000 (23:18 +0100)]
syscall_other: correct uadmin permission check
Alan Cox [Tue, 19 May 2015 22:18:06 +0000 (23:18 +0100)]
cpu-68000: provide a way to spot 32bit pointers
SDCC can't hack # if sizeof()
Alan Cox [Tue, 19 May 2015 21:27:43 +0000 (22:27 +0100)]
PORTING; update some of the out of date bits
Alan Cox [Tue, 19 May 2015 21:20:42 +0000 (22:20 +0100)]
process: update comments on reviewed FIXME
Alan Cox [Tue, 19 May 2015 21:18:27 +0000 (22:18 +0100)]
tty: note some items to review
Alan Cox [Tue, 19 May 2015 17:54:09 +0000 (18:54 +0100)]
mtx: fix function key switcher
Alan Cox [Tue, 19 May 2015 17:53:52 +0000 (18:53 +0100)]
kernel:clarify syscall fields
Alan Cox [Tue, 19 May 2015 17:28:58 +0000 (18:28 +0100)]
kernel.h: kill dead field
Alan Cox [Mon, 18 May 2015 22:18:03 +0000 (23:18 +0100)]
sgrpsig: correct sign
This was inherited from code that used negatives to indicate process groups
but is called by methods that pass the pgrp.
Alan Cox [Mon, 18 May 2015 22:12:13 +0000 (23:12 +0100)]
proc: allow kill to accept all 32 signals
Alan Cox [Mon, 18 May 2015 22:11:50 +0000 (23:11 +0100)]
process: don't wake zombies, it ends badly even if you have a shotgun
Tormod Volden [Sun, 17 May 2015 23:19:17 +0000 (01:19 +0200)]
dragon-nx32: Implement swapping in of processes
Also fix up swap parameters in config.h
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sun, 17 May 2015 16:38:34 +0000 (18:38 +0200)]
lowlevel-6809: Do not clobber CC on syscall SWI exit
In particular the interrupt masks were overwritten and in some
cases interrupts were disabled after returning from a syscall.
Rewrite the SWI interface to only report error through D and X.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>