Commit Graph

86783 Commits

Author SHA1 Message Date
lukem ca2a1a8c3b in msg(), don't call va_list using functions twice in a row without calling
va_start() in between; reorder code so that we call vsnprintf and then
just fputs that buffer. crank the size of lastmsg whilst we're here
problem noted by Hideo Saito in [bin/14348].
2001-10-25 08:04:27 +00:00
thorpej 09dacf298e Oops, typo. 2001-10-25 07:47:18 +00:00
thorpej 9c77726ed1 Add an ASN1_COMPILE variable for that host tool. 2001-10-25 07:46:48 +00:00
thorpej 722428c06b Add asn1_compile as a host tool. 2001-10-25 07:45:13 +00:00
thorpej 8712835e9c Modifications to allow this to be build as a new style host tool. 2001-10-25 07:42:38 +00:00
lukem c1bd745ccb - ansi KNF (just remove all the #ifndef __STDC__ prototype junk,
leaving the ansi stuff)
- use longlong_t instead of quad_t (etc), and rename *uqd*() -> *ull*()
- clean up the NET2_STAT stuff similar to ftpd; provide #defines and
  macros which select which cast to use, etc
- clean up the NET2_FTS and NET2_REGEX #define use
2001-10-25 05:33:32 +00:00
lukem 68a03bad5d - add lineno field to NODE
- move inotype() prototype into mtree.h from extern.h
2001-10-25 03:00:14 +00:00
thorpej 1ae193710b Avoid some annoying pitfalls of HOST_CPPFLAGS:=... in Makefile.host. 2001-10-25 02:37:49 +00:00
thorpej f2cc4f7bb2 Give the host tool build more control over the HOST_CPPFLAGS. 2001-10-25 02:37:18 +00:00
thorpej 14b9a21526 Avoid some annoying pitfalls of HOST_CPPFLAGS:=... in Makefile.host. 2001-10-25 02:23:21 +00:00
thorpej 5f0a22902a Give host tool builds better control over the HOST_CPPFLAGS. 2001-10-25 02:22:55 +00:00
augustss ea0061b951 Change reset sequence to get status change bits set right on startup. 2001-10-25 02:08:13 +00:00
thorpej 21d2d1202e Back out previous -- it has other annoying side-effects I missed. 2001-10-25 02:02:46 +00:00
yamt 1d81d04484 avoid leaks in the case of error. 2001-10-25 02:02:02 +00:00
thorpej 9132ab1031 No need to assign HOSTPROGNAME here, since we aren't changing it from
what PROG defaults to.
2001-10-25 01:49:48 +00:00
thorpej 32928fda0d When adding something to CPPFLAGS, use +=, not = 2001-10-25 01:47:11 +00:00
augustss 61406d282b Force BIOS out of the game by setting the LEGSUP register to its default
value.
2001-10-25 01:46:26 +00:00
thorpej e39fae1aff Add the program's CPPFLAGS to HOST_CPPFLAGS using make(1)'s normal
lazy evaluation semantics, not the "assign it now" semantics.  This
allows variables used in the program's CPPFLAGS to get the correct
values of e.g. MACHINE, MACHINE_ARCH, MACHINE_CPU, etc.

Problem was notices when propagating MACHINE and MACHINE_ARCH via
MAKEFLAGS (i.e. from the command line, rather than the environment).

For this to work, make sure you <bsd.hostprog.mk> is at least rev 1.15.
2001-10-25 01:25:02 +00:00
thorpej 4cd6ce7ea8 Remove an unnecessary "CPPFLAGS=${HOST_CPPFLAGS}" -- the host tool
targets use HOST_CPPFLAGS exclusively, and keeping this assignment
can get us into some unfortuante recursion trouble.
2001-10-25 01:21:14 +00:00
thorpej 14c7c08a1d Provide a PRINTOBJDIR. 2001-10-25 00:36:26 +00:00
thorpej a830755714 Don't descend into this mdsetimage -- we now use the BFD'ified
version in src/gnu/usr.sbin.
2001-10-24 23:59:40 +00:00
thorpej a0e5722800 Descend into mdsetimage. 2001-10-24 23:58:58 +00:00
thorpej 5717160d3a MDSETIMAGE gets a MACHINE_GNU_PLATFORM prefix. 2001-10-24 23:58:21 +00:00
thorpej b196c65125 Build a properly target-prefixed cross-tool version of mdsetimage,
using libbfd.
2001-10-24 23:57:45 +00:00
thorpej e46fa74fd3 Add support for building as a target-prefixed cross-tool from src/tools. 2001-10-24 23:56:38 +00:00
matt 920cfb5205 Add "Red Black +" balanced binary tree routines to libkern. These provide
O(log(N)) insertation, deletion, and lookup times.  However, unlike most
red-black implemenations, this one does no additional memory allocations.
2001-10-24 22:40:56 +00:00
augustss c642c12a27 Add a BUGS section mentioning the difficulties with using ddb during boot. 2001-10-24 22:37:07 +00:00
augustss 8c7d06c6f9 Add commented out match level feature. 2001-10-24 22:31:04 +00:00
atatat 70478477a0 Clean up the code a bit so that the ioctl() return value is always
compared to -1 (instead of <0 or !=0) and always to call err() with
EXIT_FAILURE instead of sometimes using 1.
2001-10-24 22:10:15 +00:00
augustss 3c51e46294 Regen. 2001-10-24 21:49:07 +00:00
augustss 5bd2b33be2 Add a PS/2 adapter. 2001-10-24 21:48:38 +00:00
augustss 78ed7b801d If there is no pckbc, but there is a ukbd, try using the latter as console. 2001-10-24 21:05:17 +00:00
augustss 1f93717101 Some more paranoia tests when entering the interrupt routine. 2001-10-24 21:04:04 +00:00
augustss 80d988187f If we are the console and we have DDB then events must not be delivered
from the interrupt routine since this will enter the USB interrupt
processing recursively during polling.
Now ukbd can be used as console keyboard for DDB!
2001-10-24 21:02:18 +00:00
thorpej 98f31d05a1 Apply patch from misc/13927. Also corresponds to master binutils
rev 1.24 of this file.  Binutils log message:

Fri Sep 14 13:56:45 2001 UTC by nickc:
Fix bug emitting R_SPARC_UA32 relocs into shared objects
2001-10-24 21:01:31 +00:00
thorpej 678788904a Memory map and system registers for the Firepower ES, MX, LX, and TX
systems.
2001-10-24 20:36:44 +00:00
augustss adca9c589f More debug. 2001-10-24 20:20:03 +00:00
leo 56252d5449 Small changes to the boot system:
- Install boot.atari in both / and /usr/mdec. It looks good to have a
   spare copy soemwhere...
 - Add '/boot.ata' as a last resort bootname.

All per discussion with Simon Burge, Matthew Green and Soren S. Jorvang.
2001-10-24 20:12:57 +00:00
briggs 7bd7e68996 First cut at sysinst for sandpoint. 2001-10-24 19:43:40 +00:00
thorpej 163bd42722 Per request of mrg@netbsd.org, use MACHINE_ARCH of "sparc" for 32-bit
sparc64 kernels, thus defaulting to using the 32-bit "sparc" target
toolchain.
2001-10-24 19:12:18 +00:00
thorpej 36703ab375 Clean up the 32-bit vs. 64-bit kernel configuration stuff:
- Put all options necessary to build a 64-bit kernel into std.sparc64-64,
  which can be included after std.sparc64.
- Change the logic used to enable 64-bit kernels.  The kernel Makefile now
  uses an LP64 make variable, and explicitly sets compiler flags and linker
  scripts to generate 32-bit or 64-bit kernels.
2001-10-24 18:49:38 +00:00
atatat cdc6282274 Provide a short output format for the get command that only prints the
address corresponding to RTA_GATEWAY, or nothing if it doesn't exist.
Modify the exit value of route depending on this, so that one can do
stuff like:

#!/bin/sh
gw=`route -sn get default 2>/dev/null`
if [ -z "$gw" ]; then
	echo no default route
	exit 1
fi
ping -w1 -c1 $gw >/dev/null 2>&1
if ! route -sn get $gw >/dev/null; then
	echo default gateway not responding
	exit 1
fi
echo default gateway is at $gw
2001-10-24 18:40:16 +00:00
augustss 87c42c4d3f Improve language. 2001-10-24 18:33:52 +00:00
augustss 6a51bdd2f2 Update usage message. 2001-10-24 18:31:16 +00:00
briggs 308f381263 Initial cut at installation instructions for sandpoint. 2001-10-24 18:30:34 +00:00
tron c92eaa40f3 Avoid segmentation fault if "-z" option is used. Patch supplied by
Jarle Greipsland in PR bin/14338.
2001-10-24 17:27:18 +00:00
atatat 2e4d1a174e Print a R on reject routes to indicate that they're not normal routes,
and check netmask (or prefix) length as well as the destination
address when determining if a route is a "default" or not.  This means
that the output from 'route show' will no longer say:

	Internet6:
	Destination       Gateway            Flags
	default           localhost          UG
	default           localhost          UG

but instead

	Internet6:
	Destination       Gateway            Flags
	::/104            localhost          UGR
	::/96             localhost          UGR

which makes much more sense.
2001-10-24 16:05:06 +00:00
soren 3715322bb3 Determine PCI config mode before the ACPI probe; some methods need
to access PCI configuration space early.
2001-10-24 15:53:04 +00:00
augustss 9e06709975 Clear wskbd_console_device when console keyboard is detached. 2001-10-24 15:44:50 +00:00
thorpej d213444bc5 Need to install intr.h. 2001-10-24 15:33:17 +00:00