Neal Andrew Crook [Tue, 31 May 2016 21:10:44 +0000 (22:10 +0100)]
Add qrun
Neal Andrew Crook [Tue, 31 May 2016 20:53:20 +0000 (21:53 +0100)]
Add all the built Application/V7/cmd and Application/util executables
to ucp-extras-script.txt
Some are duplicates - in which case they are commented out ("##") - which
causes an ignorable error because ucp doesn't have a comment command. Still,
it seems useful to list them as a segue to working out which version is
more useful and thereby making a conscious choice of one or t'other.
Neal Andrew Crook [Tue, 31 May 2016 20:04:05 +0000 (21:04 +0100)]
Make termcap.c build (fix type mismatches with prototypes)
Add to makefile and to ucp-extras-script.txt
Add tget and sed to ucp-extras-script.txt - already in the makefile.
Neal Andrew Crook [Tue, 31 May 2016 19:44:50 +0000 (20:44 +0100)]
Replace man.c (which required a separate external nroff program) with another
GPL'd version from the ELKS project that has a build-in nroff-alike formatter.
Tweaked it to build/run under (Linux and) FUZIX.
Add man.1 typo-fixed and revised for FUZIX.
Add manpage directory structure with ucp-extras-script.txt
Remove levee from ucp-extras-script.txt as it's already in ucp-script.txt.
Add .gitignore which I thought I'd already committed.
Tormod Volden [Tue, 31 May 2016 12:36:08 +0000 (14:36 +0200)]
Applications/games/Makefile.6809: Use non-stdio crt0 when possible
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Alan Cox [Tue, 31 May 2016 11:48:02 +0000 (12:48 +0100)]
syscalls.h: fix sockaddr warning
Alan Cox [Tue, 31 May 2016 11:46:50 +0000 (12:46 +0100)]
syscalls.h: pre-declare struct rlimit
Alan Cox [Tue, 31 May 2016 11:45:53 +0000 (12:45 +0100)]
syscall6502: fix silly warning
Tormod Volden [Sun, 29 May 2016 15:03:33 +0000 (17:03 +0200)]
Library/include/poll.h: Add missing semicolon
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sun, 29 May 2016 11:41:31 +0000 (13:41 +0200)]
vt.c: Fix off-by-one in clear to end of line escape sequence
It wouldn't clear the last column on the screen.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sun, 29 May 2016 09:34:31 +0000 (11:34 +0200)]
Allow return value passing from ioctl
Fixes lost values from vt_ioctl().
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 28 May 2016 16:10:34 +0000 (18:10 +0200)]
Build: Add dragon-nx32 kernel build
This also add a common kernel target for gcc/LWTOOLS that builds a DECB
binary.
Note that this build system doesn't provide text2 (and discard) segments
so it cannot produce working kernels yet. Still useful for compile tests
on travis.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 28 May 2016 16:10:33 +0000 (18:10 +0200)]
Build: Sync lwlink wrapper with upstream development version
This adds the --oformat and --script options and fixes up the -Map option.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 28 May 2016 15:32:49 +0000 (17:32 +0200)]
utils: Link stdio-free apps with stdio-free crt0 on 6809
This also adds building of a few missing apps.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 28 May 2016 15:32:48 +0000 (17:32 +0200)]
Applications/*/Makefile.6809: Tidy up dependencies in rules
Avoid having all objects depend on all source files. Instead use
better defined static rules that contain the dependencies.
By using $^ in the APPS rules the CRT0 is included because
the APPS depend on it. Makes it easy to let e.g. APPSNS depend
on CRT0NS instead.
Also fix the size.report target so that it gets built only when
needed.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 28 May 2016 15:32:47 +0000 (17:32 +0200)]
Library: Add stdio-free crt0 for 6809
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Mon, 23 May 2016 21:20:28 +0000 (23:20 +0200)]
ttydw.c: Fix single-byte reception on virtual channels
This off-by-one caused incoming single bytes from the virtual channels
to be written to the wrong tty, for example when entering an empty line
in a shell.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
EtchedPixels [Sat, 28 May 2016 10:21:51 +0000 (11:21 +0100)]
Merge pull request #351 from davidgiven/fforth
Don't hardcode the cell size when calculating offsets into the interpreter table.
David Given [Sat, 28 May 2016 10:17:14 +0000 (12:17 +0200)]
Don't hardcode the cell size when calculating offsets into the interpreter
table.
EtchedPixels [Fri, 27 May 2016 08:10:30 +0000 (09:10 +0100)]
Merge pull request #350 from beretta42/master
coco3: add rawmode=1 support
Brett Gordon [Tue, 17 May 2016 20:17:16 +0000 (16:17 -0400)]
coco3: make sdc driver handle rawmode=1.
Brett Gordon [Tue, 17 May 2016 16:40:17 +0000 (12:40 -0400)]
coco3: make drivewire.s support rawmode=1.
Brett Gordon [Tue, 17 May 2016 16:39:49 +0000 (12:39 -0400)]
coco3: remove CONFIG_LEGACY_EXEC
EtchedPixels [Thu, 26 May 2016 15:19:12 +0000 (16:19 +0100)]
Merge pull request #349 from beretta42/master
coco3: fix scroll_down().
Brett Gordon [Wed, 25 May 2016 13:19:42 +0000 (09:19 -0400)]
coco3: fix scroll_down().
EtchedPixels [Tue, 24 May 2016 23:34:22 +0000 (00:34 +0100)]
Merge pull request #348 from nealcrook/apps
Add termcap and curses to 6809 libraries; fix compilation fails
Neal Andrew Crook [Tue, 24 May 2016 21:59:02 +0000 (22:59 +0100)]
Bring 6809 library stuff in sync with z80.. in particular by adding
termcap.c and the lib/curses files. Tweaked line-breaks in makefile
to make it easier to diff against z80 version.
Neal Andrew Crook [Tue, 24 May 2016 21:57:03 +0000 (22:57 +0100)]
Define NAME_MAX to be the same as MAXNAMLEN
Allegedly: MAXNAMLEN is the BSD name for what POSIX calls NAME_MAX
Alan Cox [Sun, 22 May 2016 19:09:39 +0000 (20:09 +0100)]
Merge branch 'master' of https://github.com/EtchedPixels/FUZIX
EtchedPixels [Sun, 22 May 2016 19:08:11 +0000 (20:08 +0100)]
Merge pull request #347 from nealcrook/janitorial
Janitorial
Tormod Volden [Sat, 21 May 2016 21:36:56 +0000 (23:36 +0200)]
Build: Use -Map= syntax in targetgcc.rules.mk
Both -Map file and -Map=file work, but the latter is the one used
in GNU documentation and that the LWTOOLS wrapper supports.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 21 May 2016 21:36:55 +0000 (23:36 +0200)]
Library/build.mk: Add initgroups.c
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 21 May 2016 21:36:54 +0000 (23:36 +0200)]
Add tool for checking lwlink map files
Lists empty holes and overlaps in map files generated
by lwlink (from LWTOOLS).
Kernel/tools/lw-checkmap Kernel/fuzix.map
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 21 May 2016 21:36:53 +0000 (23:36 +0200)]
dragon-nx32: Always include local devfd.h in devfd.c and devtty.c
This makes sure also the Build/* makefiles do the right thing.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sat, 21 May 2016 21:36:52 +0000 (23:36 +0200)]
dragon-nx32: Avoid variable shadowing in devfd.c
If we jump to "bad" we can report the error code and
not an undefined value (which gives gcc warning).
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tony Jewell [Sat, 21 May 2016 21:17:19 +0000 (23:17 +0200)]
dragon-nx32: Incorporate drivewire tty
Tony Jewell [Sat, 21 May 2016 21:17:18 +0000 (23:17 +0200)]
dragon-nx32: Copy ttydw from coco3
Tony Jewell [Sat, 21 May 2016 21:17:17 +0000 (23:17 +0200)]
dragon-nx32: Copy dw_transaction() from coco3
Neal Andrew Crook [Sun, 22 May 2016 18:50:27 +0000 (19:50 +0100)]
oops, commit working version.
Neal Andrew Crook [Sun, 22 May 2016 18:27:55 +0000 (19:27 +0100)]
Add multicomp09 to list of platforms.
Neal Andrew Crook [Sun, 22 May 2016 18:26:56 +0000 (19:26 +0100)]
remove editor back-up files.
Neal Andrew Crook [Sun, 22 May 2016 18:25:46 +0000 (19:25 +0100)]
.gitignore files for the Library tree
Neal Andrew Crook [Sat, 21 May 2016 15:06:33 +0000 (16:06 +0100)]
Fix for ISSUE 344: migrate DEVICE_xx to CONFIG_xx, change DRIVE_COUNT
to IDE_DRIVE_COUNT (for consistency with SD_DRIVE_COUNT), rename
CONFIG_SDC to CONFIG_COCOSDC.
Neal Andrew Crook [Fri, 20 May 2016 20:56:55 +0000 (21:56 +0100)]
tidy up CONFIGs in multicomp09
Neal Andrew Crook [Fri, 20 May 2016 20:55:16 +0000 (21:55 +0100)]
Delete auto-generated Library/libs/fuzix/Makefile. Add .gitignore files
for application directories. Fix a few comment typos.
Tormod Volden [Thu, 19 May 2016 22:10:44 +0000 (00:10 +0200)]
Library: Add missing setjmp prototype for 6809
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Thu, 19 May 2016 21:19:16 +0000 (23:19 +0200)]
dragon-nx32: Move some crt0 parts to discard
Also move init_early() and init_hardware() to discard
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Thu, 19 May 2016 21:19:15 +0000 (23:19 +0200)]
dragon-nx32: Zero out udata block instead of loading it
Especially handy if the bootloader occupies the area where
the udata block will reside.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Thu, 19 May 2016 21:19:14 +0000 (23:19 +0200)]
dragon-nx32: Fill some memory layout holes
We had 256 bytes unused for user space after we dropped the
interrupt stack stashing. And 768 bytes unused for the kernel
since there is no stashing on the kernel map.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Thu, 19 May 2016 21:19:13 +0000 (23:19 +0200)]
dragon-nx32: Move vector segment last in kernel object file
This means it will be loaded last and any failure during
bootloading may be less fatal.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
EtchedPixels [Thu, 19 May 2016 20:02:23 +0000 (21:02 +0100)]
Merge pull request #345 from nealcrook/introducing_multicomp09
Introducing multicomp09
Neal Andrew Crook [Thu, 19 May 2016 18:51:55 +0000 (19:51 +0100)]
prune away a bit more dead code.
Neal Andrew Crook [Thu, 19 May 2016 18:44:11 +0000 (19:44 +0100)]
Tidy up SD driver - delete dead code and change names to make it look more
like the common one.
Neal Andrew Crook [Thu, 19 May 2016 18:32:48 +0000 (19:32 +0100)]
Rejig CONFIG_MBR_OFFSET behaviour. It now defines a fall-back location for
the MBR. Location 0 is always checked first, and a valid MBR found there will
be used in preference.
Neal Andrew Crook [Wed, 18 May 2016 19:55:10 +0000 (20:55 +0100)]
document fixup needed in order to build library.
Neal Andrew Crook [Wed, 18 May 2016 19:43:00 +0000 (20:43 +0100)]
Introduce new 6809 platform, multicomp09.
Tormod Volden [Mon, 16 May 2016 20:27:07 +0000 (22:27 +0200)]
MWC: Add expr and find to Makefile.6809
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Alan Cox [Mon, 16 May 2016 20:58:01 +0000 (21:58 +0100)]
units: Add units command
Some FIXME's left, and need data files from Coherent
Alan Cox [Mon, 16 May 2016 20:48:53 +0000 (21:48 +0100)]
stdlib.h: add atof() prototype
Alan Cox [Mon, 16 May 2016 19:16:26 +0000 (20:16 +0100)]
expr: Add expr
Alan Cox [Mon, 16 May 2016 18:51:17 +0000 (19:51 +0100)]
m4: remove unsafe tmp string functionality, and handle FIXME
Tormod Volden [Mon, 16 May 2016 16:05:12 +0000 (18:05 +0200)]
MWC: Fix const mismatches upsetting gcc
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Alan Cox [Mon, 16 May 2016 18:46:13 +0000 (19:46 +0100)]
Add find
Alan Cox [Mon, 16 May 2016 14:43:17 +0000 (15:43 +0100)]
Import first commands from the freed up MwC Coherent sources
Tormod Volden [Mon, 16 May 2016 10:15:45 +0000 (12:15 +0200)]
tty.c: Fix TIOCSWINSZ copy
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sun, 15 May 2016 14:17:18 +0000 (16:17 +0200)]
dragon: Add empty platform_param()
Also fix up devdw in Makefile to keep the platform building.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sun, 15 May 2016 14:17:17 +0000 (16:17 +0200)]
devdw: Allow all 256 drives, get rid of dw_tab
The space used for dw_tab was the only reason for the 4 drive limit, and
it was only used for passing the minor, which we can pass in the cmd
packet instead.
Also pass the full 16-bit page value, so that all platforms can implement
raw mode and swapping.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sun, 15 May 2016 14:17:16 +0000 (16:17 +0200)]
drivewire.s: Start comments properly with semicolons
The as wrapper in lwtools 4.13 uses the "newsource" pragma by default,
which require all comments to start with a semicolon.
For the files we copy as-is from "upstream" DriveWire code, we'll
simply turn off the "newsource" pragma for now.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sun, 15 May 2016 11:19:55 +0000 (13:19 +0200)]
dragon-nx32: SPI fast sector read fixes
Disable FRX again when finished.
Use direct page addressing consistently.
Fix up the comment on the clock divisor, the effective divisor is
(register value + 1) x 2.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sun, 15 May 2016 11:19:54 +0000 (13:19 +0200)]
dragon-nx32: Bump MAX_MAPS for spinx512
An earlier prototype had 4 maps but the spinx512 can do 16. By chance
the table sized by MAX_MAPS was linked at the end of used memory so
going beyond bounds was not fatal :)
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sun, 15 May 2016 11:19:53 +0000 (13:19 +0200)]
travis: Install gcc6809 from PPA
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Sun, 15 May 2016 11:19:52 +0000 (13:19 +0200)]
Library/6809: Copy userstructs.h from kernel tree
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Alan Cox [Fri, 13 May 2016 13:59:50 +0000 (14:59 +0100)]
From: Brett Gordon <beretta42@gmail.com>
vt: Fix stupid bug
Alan Cox [Tue, 3 May 2016 15:30:57 +0000 (16:30 +0100)]
From: Brett Gordon
This patch adds dwterm and dwgetty
(dropped them from the ucp script as they are only relevant to COCO at this
point) - Alan
Brett Gordon [Thu, 28 Apr 2016 14:41:48 +0000 (10:41 -0400)]
coco3: fix compiler warnings
Brett Gordon [Thu, 28 Apr 2016 14:40:48 +0000 (10:40 -0400)]
coco3: add header for low-level video calls
Brett Gordon [Thu, 28 Apr 2016 14:18:28 +0000 (10:18 -0400)]
coco3: devsdc: fix compiler warnings.
Brett Gordon [Thu, 28 Apr 2016 14:09:28 +0000 (10:09 -0400)]
coco3: clean up compiler warning (include headers needed)
Brett Gordon [Thu, 28 Apr 2016 14:02:19 +0000 (10:02 -0400)]
coco3: mbr.c: fix compiler warning
Brett Gordon [Thu, 28 Apr 2016 13:57:52 +0000 (09:57 -0400)]
coco3: ttydw: clean up compiler warnings
Brett Gordon [Thu, 28 Apr 2016 13:57:25 +0000 (09:57 -0400)]
devdw: add declaration for dw_transaction()
Brett Gordon [Tue, 26 Apr 2016 15:18:52 +0000 (11:18 -0400)]
init: build new utmp entry with short tty name.
Brett Gordon [Fri, 22 Apr 2016 06:01:28 +0000 (02:01 -0400)]
wall.c: make open utmp file in /var, not /etc
Brett Gordon [Fri, 22 Apr 2016 05:29:28 +0000 (01:29 -0400)]
/v7/cmd: add makefile for 6809
Alan Cox [Thu, 21 Apr 2016 15:01:17 +0000 (16:01 +0100)]
build.mk: add missing opendir_r/closedir_r
Reported by Dmitri (DinkaM)
Alan Cox [Fri, 15 Apr 2016 19:21:15 +0000 (20:21 +0100)]
net_wiznet: initial sketch of driver
Alan Cox [Mon, 11 Apr 2016 13:06:17 +0000 (14:06 +0100)]
platform: add the platform param hook
Tormod Volden [Sat, 9 Apr 2016 19:18:49 +0000 (21:18 +0200)]
Fwd: [PATCH] dragon-nx32: Sane defaults for keyboard repeat rates
This patch is still outstanding, unless you have fixed it in some general code.
Tormod
---------- Forwarded message ----------
From: Tormod Volden <lists.tormod@gmail.com>
Date: Sun, Mar 6, 2016 at 11:48 PM
Subject: [PATCH] dragon-nx32: Sane defaults for keyboard repeat rates
To: Alan Cox <alan@etchedpixels.co.uk>
From: Tormod Volden <debian.tormod@gmail.com>
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
EtchedPixels [Sat, 9 Apr 2016 16:09:54 +0000 (17:09 +0100)]
Merge pull request #337 from beretta42/param
coco3: add dummy platform_param()
Alan Cox [Sat, 9 Apr 2016 16:09:20 +0000 (17:09 +0100)]
platforms: add needed platform_param() helper
Alan Cox [Sat, 9 Apr 2016 16:07:28 +0000 (17:07 +0100)]
utent: Fix casting
sizeof is an size_t (unsigned 16bit in some cases), we therefore need to cast
it to 32bit signed *before* negation.
Alan Cox [Sat, 9 Apr 2016 16:01:23 +0000 (17:01 +0100)]
init: allow initgroups to fail
EtchedPixels [Sat, 9 Apr 2016 15:59:39 +0000 (16:59 +0100)]
Merge pull request #339 from beretta42/IGNCR
tty.c: add IGNCR. (helps with TCP connections)
Tormod Volden [Sun, 3 Apr 2016 07:33:01 +0000 (09:33 +0200)]
dragon-nx32: Fix CoCo keymap wrangling
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Wed, 30 Mar 2016 15:56:46 +0000 (17:56 +0200)]
dragon-nx32: Add empty platform_param()
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Wed, 30 Mar 2016 15:56:44 +0000 (17:56 +0200)]
dragon-nx32: Update build instructions with more applications
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Wed, 30 Mar 2016 15:56:43 +0000 (17:56 +0200)]
dw: Use 6809 link script from util
Since it is identical anyway.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Tormod Volden [Wed, 30 Mar 2016 15:56:42 +0000 (17:56 +0200)]
levee: Build with optimization on 6809
Works with the latest gcc6809 patch.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Brett Gordon [Tue, 5 Apr 2016 16:17:09 +0000 (12:17 -0400)]
tty.c: add IGNCR. (helps with TCP connections)
Brett Gordon [Tue, 29 Mar 2016 12:53:53 +0000 (08:53 -0400)]
coco3: add dummy platform_param()