Commit Graph

223861 Commits

Author SHA1 Message Date
martin
6f65a8d103 ACTIVE_CC can only be used after include of bsd.own.mk 2014-01-10 15:00:16 +00:00
joerg
048d4146f6 Use format strings. 2014-01-10 11:29:24 +00:00
tsutsui
25e766da30 Reorgenize boot device configuration. The idea is taken from OpenBSD/luna88k.
- remove kernel-like autoconfiguration to probe bootable devices
- initialize SCSI and Ethernet controllers statically instead
- reorganize device softc structures per autoconf removal
- probe and print all SCSI disks (but don't assign unit numbers)
- make sdopen() to recheck the device and allocate softc dynamically
- use controller number and SCSI target ID (ctlr * 10 + id) to specify
  the boot disk on the "boot" command arg
- bump version to denote changes

Now bootloader works as the following:
---
>> NetBSD/luna68k boot, Revision 1.8 (Wed Jan  8 22:13:12 JST 2014)
>> (based on Stinger ver 0.0 [Phase-31])

Machine model   = LUNA-II
Physical Memory = 0x4000000  (64 MB)

sc0 at 0xe1000000: async, parity, ID 7
 ID 3: TEAC FC-1     HGF  10 rev , 512 bytes/sect x 2879 sectors
 ID 6: IBM DPES-31080 rev S31Q, 512 bytes/sect x 2118143 sectors
sc1 at 0xe1000040: async, parity, ID 7
 ID 6: MELCO DSC-G rev 1.00, 512 bytes/sect x 62533295 sectors
le0: Am7990 LANCE Ethernet, mem at 0x71010000
le0: Ethernet address = 00:00:0a:03:42:77

Press return to boot now, any other key for boot menu
booting sd(16,0)netbsd - starting in 0 seconds.
auto-boot sd(16,0)netbsd
1911696+96040 [280480+159179]=0x255a30
 :
2014-01-10 11:12:03 +00:00
martin
99caaa63e9 In the strcat test, smash the stack more severely (this all may depend
on alignment and stack frame details).
The gcc folks disagree with this test in general:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59750
2014-01-10 10:45:34 +00:00
wiz
252a57e3a8 whitespace. 2014-01-10 09:43:15 +00:00
pooka
bbfd34f128 give err() some reason to avoid:
sysctl.c:2713:5: error: zero-length gnu_printf format string [-Werror=format-zero-length]
2014-01-10 09:38:56 +00:00
christos
c0cdf73e1c Add a cleanup routine because if a test fails, the script exits and the
rest of the code is not executed.
Note that the cleanup routine is executed in a separate shell so environment
variables are not propagated and need to be set again.
2014-01-10 01:43:55 +00:00
msaitoh
5010e7e4fc Sync with pcidev's change. Rename PCI_PRODUCT_MARVELL2_88SE9128 to
PCI_PRODUCT_MARVELL2_88SE912Z. No functional change.
2014-01-10 01:43:52 +00:00
msaitoh
9fecef6533 regen. 2014-01-10 01:42:20 +00:00
msaitoh
4165b90127 Rework for Marvell 88SE9128. Change the description of 0x9123 to
88SE912[38]. For 0x91a3, add '(unclear)' into the description.
FreeBSD, Linux and http://pci-ids.ucw.cz have no such device.
2014-01-10 01:39:48 +00:00
christos
558f21b60f Undo previous; unfortunately the cleanup routine gets called in a different
shell so it can't cleanup stuff set in the environment of the first shell.
There are 2 problems:
	- calling the test routine directly does not cleanup (not using
	  atf-run)
	- when using atf-run, the cleanup routine needs state from the
	  running code which can only be stored in files. This will never
	  allow us to run tests in parallel since we need to keep a known
	  place to pass state.
2014-01-10 01:39:32 +00:00
christos
beed3378d3 Make cleanup work as documented; note there are no tests testing that cleanup
works.
2014-01-10 01:16:07 +00:00
matt
4363eb2a4c Build BE ramdisks for BE MACHINE_ARCH's 2014-01-09 22:48:16 +00:00
christos
9682229fe5 regen 2014-01-09 22:37:44 +00:00
christos
07a9cab707 revert unintended changes 2014-01-09 22:37:18 +00:00
htodd
886ddaff87 Fix build. Only compile tested. 2014-01-09 21:14:53 +00:00
palle
f08e82f640 sun4v: Update description of the ci_mmfsa field in the cpu_info structure 2014-01-09 20:28:23 +00:00
palle
5317e12d65 Coding style fixes (whitespace) - no functional changes 2014-01-09 20:13:54 +00:00
dholland
b510fd7487 Clarify the behavior of the @machine and @machine_arch magic links
relative to uname output when running in emulations: the magic links
are *not* affected even though uname output changes.

(This means @machine magic links can be used for e.g. amd64 vs. i386
device nodes. There's also an @emul magic link for emulation.)

Noted by apb.
2014-01-09 18:55:41 +00:00
msaitoh
9a75aee207 regen. 2014-01-09 17:28:30 +00:00
msaitoh
b22423017d Remove 88SE9128(0x913a) entry. At least one of 88SE9128 chip's
product ID is 0x9123. I have this one. Add new 88SE912X entry
with 0x9123. OK'ed by jakllsch.
2014-01-09 17:28:05 +00:00
mlelstv
8aa54a5db6 add three temperature sensors from ST. 2014-01-09 16:51:05 +00:00
apb
d74d486617 fix prototype for strnlen. 2014-01-09 16:08:46 +00:00
christos
0560f419d3 fix copyright botch and add library for netinet6; still does not fix the
problem.
2014-01-09 14:07:31 +00:00
hannken
9cd2f4b930 Operation sysvbfs_remove() destructs inodes attached to active vnodes.
Defer the destruction to sysvbfs_reclaim().

Disable test t_renamerace:sysvbfs_renamerace as it will exhaust the
inode table (sysvbfs has space for 8 inodes only).

Ok: Izumi Tsutsui <tsutsui@netbsd.org>
2014-01-09 13:23:57 +00:00
macallan
96f3c05159 allow non-SUN4V kernels to build 2014-01-09 12:51:27 +00:00
apb
c9b2ee2cd1 Declare and define strnlen if necessary. 2014-01-09 11:31:12 +00:00
apb
5318071613 regen 2014-01-09 11:27:31 +00:00
apb
fd3f18ac6d Add strnlen to configure tests in tools/compat 2014-01-09 11:26:58 +00:00
apb
bfdedd98f6 Make strnlen implementation usable from src/tools/compat. 2014-01-09 11:25:11 +00:00
christos
aa302f4be1 add new resolv.conf file 2014-01-09 02:18:55 +00:00
christos
cca81d599b Use our own resolv.conf file simplifying the test to not need rump_vfs.
Add debugging on the dns server
One test fails (gethostbyaddr6) why? It runs without rump
2014-01-09 02:18:10 +00:00
dholland
586505dce8 Make the amd64 post-halt-press-a-key code match i386, and introduce
into both a message for the case where cngetc() doesn't work. If
there's no console attached, this won't accomplish anything; but if
there's a screen but no keyboard, or the keyboard's wedged, or
whatever, it might provide useful information.

Suggested back in 2009 by some stuff in PR 37924 and has been hanging
about in one of my trees ever since.
2014-01-09 00:57:25 +00:00
christos
173d90915f provide a patchable __res_conf_name for testing purposes. 2014-01-08 22:58:50 +00:00
joerg
ce9c61d51e CMSG_SPACE is no longer an issue. 2014-01-08 20:34:45 +00:00
joerg
a29e9d8555 Import libc+++ r198773. Fixes a bug in stdexcept I introduced when
removing C style casts.
2014-01-08 17:15:24 +00:00
jakllsch
7f23e64fd1 Fix whitespace issues. 2014-01-08 16:49:48 +00:00
jakllsch
8b3ffd0418 Add unused tps65217pmic_reg_write() function. 2014-01-08 16:45:14 +00:00
pedro
0cc071bd88 Allocate direntp on the stack in tmpfs_dir_getdents(), thus saving
calls to kmem_zalloc() and kmem_free(); OK rmind@. From OpenBSD.
2014-01-08 16:11:04 +00:00
christos
52907fd50f bump libc for ptsname_r 2014-01-08 12:30:27 +00:00
christos
212cc15bc8 bump for ptsname_r 2014-01-08 12:29:49 +00:00
pooka
b50bd486cc OpenBSD has kqueue 2014-01-08 11:06:33 +00:00
pooka
2b361b10dd remove obsolete definitions 2014-01-08 11:04:47 +00:00
njoly
648dc01fac Kill extra space in function argument. 2014-01-08 10:14:21 +00:00
christos
184ec92de6 add ptsname_r 2014-01-08 02:19:12 +00:00
christos
c25b2b2709 return the same errors as linux for ptsname_r 2014-01-08 02:17:30 +00:00
christos
eabc0dd171 add ptsname_r 2014-01-08 02:15:42 +00:00
christos
6a0886ad81 perror is obsolete, use warn and add missing paren. 2014-01-08 01:56:20 +00:00
pooka
6459f6aa95 do as the comment says and #if defined(every_other) || defined(platform) || ...
===> #if !defined(__NetBSD__)
2014-01-08 01:47:31 +00:00
pooka
f67143f64b OpenBSD support
from Justin Cormack via github
2014-01-08 01:45:29 +00:00