Mike Smith
400a056059
Don't need this one anymore.
1998-11-04 07:40:05 +00:00
Mike Smith
b8ffd2a51c
Well I never. Seems like _setjmp()/_longjmp() are just what the doctor
...
ordered. This brings the Alpha back to parity, and should bring us
BootForth on both platforms.
Submitted by: John Birrell (jb@freebsd.org )
1998-11-04 07:39:53 +00:00
Mike Smith
1add1a81da
Improve the quality of isspace() to match expectations. This should make
...
the Ficl interpreter read its softwords array OK.
1998-11-04 07:04:00 +00:00
Mike Smith
797ed6379a
Don't try to build (nonexistent) Alpha setjmp until we have one.
1998-11-04 00:32:08 +00:00
Mike Smith
25c3957dfd
Move setjmp/longjmp implementations here from libc; no signal handling
...
in libstand, only for i386 until I locate an alpha setjmp/longjmp.
Minimal 64-bit gcc integer support for i386. This is kinda nasty, and
should be revisited once we decide whether the bootblocks need
quad arithmetic.
1998-11-04 00:23:18 +00:00
Mike Smith
17bcf9c00a
Add:
...
assert()
setjmp()/longjmp()
vsprintf()
1998-11-01 09:31:08 +00:00
Mike Smith
2baf3bb5a0
Add a new field to the devsw structure; dv_print, to print all valid units
...
etc. associated with the device entry.
Consider EOF an 'error' for fgetstr if we haven't read anything yet.
You *MUST* recompile and reinstall libstand before rebuilding the bootstrap.
1998-10-31 02:48:29 +00:00
Doug Rabson
5a911c6263
Implement a hook to allow us to reclaim the memory used by the first stage
...
of the bootstrap (the bit which loads /boot/loader).
1998-10-19 09:08:40 +00:00
David E. O'Brien
d58fb9293a
To clarify last commit, msmith says:
...
The reason the Alpha has less room than the i386 is because the bootstrap
is given a 256K mapping by the firmware; to add more requires extra work.
1998-10-17 22:20:06 +00:00
Mike Smith
95f5cf3349
Reduce the sbrk() increment from 64K to 4K. There's not much room on the
...
Alpha, and wasting potentially 64K-4 bytes of RAM just isn't an option.
1998-10-16 19:23:37 +00:00
Mike Smith
745f11adb6
Add strcasecmp source file required for dosfs operation.
1998-10-07 13:50:17 +00:00
Mike Smith
40fd46f77d
Enable the DOS filesystem. This allows reading from various DOS filesystems
...
(FAT12/16/32, VFAT).
Make a private copy of strcasecmp, as the "real" one uses the system ctype
header, which introduces locale poisoning.
1998-10-06 19:23:57 +00:00
Mike Smith
3f9423cca2
Don't build with -g.
1998-10-04 08:10:29 +00:00
Mike Smith
31a014da28
Prune unused zalloc components as recommended by Matt Dillon. Extra debugging
...
code is still enabled (it's not very expensive).
1998-10-01 17:35:08 +00:00
Doug Rabson
f069bf5a2c
* Enable old UFS compatibility code for booting from Digital Unix formatted
...
disks.
* Fix a whole raft of warnings, printf and otherwise.
* Make zalloc work for alpha (just a case of using the right typedef).
* Add some (disabled) malloc debug printing to stand.h.
1998-09-26 10:48:50 +00:00
Matthew Dillon
f69e7cfc4d
Fixed setting of mp_End in zextendPool(). A case was missing and mp_Size
...
no longer reflects the mp_End - mp_Base equivalent.
1998-09-26 03:24:14 +00:00
Mike Smith
95b50c2be3
Replace the old and extremely icky Mach/NetBSD allocator with a similarly
...
compact and much better one donated by Matt Dillon. Implement a simple
sbrk() which uses the existing setheap() api.
Remove the custom allocator from the UFS code. It wasn't working quite
right, and it shouldn't be needed with the new allocator.
Fix a serious problem with changing the value of already-existent
environment variables. Don't attempt to modify the supposedly-const
argument to putenv()
Fix an off-by-one sizing error in the zipfs code detected by the new
allocator.
Submitted by: zmalloc from Matt Dillon <dillon@backplane.com>
1998-09-26 01:42:40 +00:00
Doug Rabson
f7506f876c
Use unsigned chars instead of signed chars when extracting bits of the
...
inet address.
1998-09-23 21:35:40 +00:00
Jordan K. Hubbard
0b3c226f0e
Include "stand.h", not <stand.h>.
1998-09-21 06:07:34 +00:00
Doug Rabson
02c40feecd
Allocate disk buffers using a custom allocator. The standard allocator fragments
...
extremely badly if disk buffers are freed back into the main heap and the alpha
bootstrap has a restricted address space which just ran out :-(.
1998-09-20 21:42:20 +00:00
Doug Rabson
b554c7492a
Use a simple version of inet_ntoa(). The libc one uses inet_ntop which is too
...
complicated.
1998-09-20 21:40:28 +00:00
Mike Smith
ec5cd5b130
Nuke prototype for strerror, consumers get it from <string.h>
...
Fix overlooked nullopen() implementation.
1998-09-18 23:00:57 +00:00
Mike Smith
4ce36a791b
Path arguments to *_open functions should be const, but we were mangling
...
them.
Submitted by: write-protected text segment in BTX
1998-09-18 22:58:01 +00:00
Mike Smith
0dd47c30aa
Remove (wrong) OBJFORMAT setting.
1998-09-15 02:30:22 +00:00
Robert Nordier
b131044669
Add support for reading directories as files.
...
Sort out fs_ops, alloc/free.
1998-08-27 10:45:20 +00:00
Bruce Evans
8d95788ee7
Fixed syntax errors (__dead should have gone away years ago, and
...
__attribute__(()) is a gccism - we use __dead2).
1998-08-24 02:54:33 +00:00
Mike Smith
b07983d9ab
Install libstand header <stand.h> and manpage (libstand.3)
1998-08-20 08:23:12 +00:00
Mike Smith
6b4f575cb1
This is libstand; a support library for standalone executables (eg. bootstrap
...
modules).
Obtained from: NetBSD, with some architectural changes and many additions.
1998-08-20 08:19:55 +00:00