Commit Graph

191980 Commits

Author SHA1 Message Date
pooka 6e72f16059 ctassert size of some key structures does not change 2010-07-06 12:28:40 +00:00
pooka 013ecf4f81 Make sure that pa_spare is zero-filled and does not contain any
garbage which might disrupt future use.
2010-07-06 12:05:18 +00:00
kleink 0bf2cc54b3 Tack a public domain notice on this, albeit 10 years late, per request
from yamt.  No objections from those who touched it since.
2010-07-06 11:56:20 +00:00
mrg b7ea3b98cd use elf2bb / elf2bb.h instead of the old, now gone aout2bb version. 2010-07-06 06:09:56 +00:00
mrg 0b9686b0cc these were only relevant for a.out builds; time to sleep forever... 2010-07-06 06:04:58 +00:00
mrg 4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
mrg 9dd0ef545a kill these old built-in firmware headers; we use the ones installed into
the filesystem from src/sys/microcode/radeon now.
2010-07-06 04:15:44 +00:00
dholland 6b10e71eb2 Revert 1.80, which somehow manages to produce different (wrong)
behavior with -jN. Unfixes PR 43534. Need a different approach...
2010-07-06 03:56:59 +00:00
msaitoh 476ffd1456 regen. 2010-07-06 00:36:27 +00:00
msaitoh fd80d62282 Fix the name of PCI-1620A-AE. 2010-07-06 00:35:55 +00:00
msaitoh 11a052c98f Sort by name. No any addititon in this change. 2010-07-06 00:18:02 +00:00
msaitoh 3a8a0f1c7b regen. 2010-07-06 00:04:21 +00:00
msaitoh 75b6657581 Add Advantech and Decision Computer's vendor IDs and their products. 2010-07-06 00:02:27 +00:00
mrg 876e8052d2 add all the radeon firmware files. missed in the previous..
these were sourced from:
        - linux kernel sources, firmware/radeon/
	- people.freedesktop.org/~agd5f/radeon_ucode/

LICENSE.radeon has the full license, which my simple reading sees as
being largely similar to other re-distributable licenses for firmware
(ie, does not include de-compliation or reverse engineering.)
2010-07-05 23:55:02 +00:00
mrg 4f893703d8 delete all the a.out csu code. 2010-07-05 21:27:55 +00:00
pooka e73db95236 union doesn't use layerfs (avoids panic in kernel bootstrap when
union is compiled in but none of the layer-using file systems are).
2010-07-05 21:27:08 +00:00
mrg 10e130c4e6 add ./usr/libdata/firmware/radeon 2010-07-05 20:57:19 +00:00
mrg ad13e17661 move all the radeondrm firmware images into the filesystem. check that
some firmware sizes are the expected size.  (XXX make all.)

based upon similar changes seen in the linux radeon drm driver.

this saves about 250KB in the kernel or module.
2010-07-05 20:32:23 +00:00
pooka 83eca23e73 * fill PR number to xfail now that we have one -- let's try not
to add any xfail tests without an associated PR
* move xfail to the correct place
2010-07-05 17:12:48 +00:00
jmmv 9c8ebeed66 Use expect_fail instead of defining xfail. Looks like I missed this one
during the import of atf 0.10.  Thanks pooka@.
2010-07-05 16:34:41 +00:00
jmmv e834f57d5e Properly mark some test cases as having a cleanup routine. Stupidity of
the API?  Most likely; will revise it.

Fixes atf-run breaking when running t_psshfs.  This does not resolve the
underlying issue though, which is atf-run getting confused trying to
unmount the temporary mount point by itself (I think).  (I'm now wondering
if atf should be bothering about unmounting stuff at all.  Maybe not. It is
a tricky and uncommon thing.)
2010-07-05 16:27:08 +00:00
njoly 41df35f7e1 Fix more copyrights, where i forgot to add my name. 2010-07-05 14:53:03 +00:00
tsutsui c874d8cab4 Add upgt(4) for WS003SH/WS004SH internal WLAN. 2010-07-05 14:30:00 +00:00
tsutsui 765d16798a Add a missing newline in error messages. 2010-07-05 14:27:26 +00:00
jmmv 4f88119cd8 Remove file that should not be in the distribution so that atf-version gets
the correct output.  Fixed upstream as well.
2010-07-05 14:20:59 +00:00
njoly 78043be0cf Fix copyright, noted by Jukka Ruohonen. 2010-07-05 13:03:19 +00:00
njoly 1511eb19e2 Add test program that use sample code from kern/41937, and fs rump
helpers to check currently supported filesystems.

t_rmdirrace (1/1): 5 test cases
    ext2fs_race: Passed.
    ffs_race: Passed.
    msdosfs_race: Passed.
    sysvbfs_race: Passed.
    tmpfs_race: Passed.
2010-07-05 12:53:58 +00:00
jruoho c6fcab923d ACPICA 20100702 is out. 2010-07-05 10:37:36 +00:00
kefren 6fc9085e84 do some rudimentary checks on ip4 header before passing packet to
mpls_icmp_error
2010-07-05 09:54:26 +00:00
kiyohara acaa37cf55 Remove unnecessary white-spaces. 2010-07-05 06:54:48 +00:00
kiyohara 999e21b0e4 Fix set the control register. 2010-07-05 06:50:01 +00:00
christos 6540fba480 consistency with c source 2010-07-05 00:45:19 +00:00
wiz 7785abb6f3 Fix xref, put all Nd arguments on Nd line. 2010-07-04 21:10:39 +00:00
dholland 3aee62c28a fix typo (firwmware -> firmware) 2010-07-04 19:58:52 +00:00
dholland ac277a537e Comment out an .Ed whose .Bd was itself commented out; this was making
mandoc belch.
2010-07-04 19:57:51 +00:00
pooka beaed2d1bd +tp 2010-07-04 19:34:44 +00:00
pooka c60e7744b1 the usual testdir boogie-woogie 2010-07-04 19:33:18 +00:00
pooka 369e70628a descend into icmp 2010-07-04 19:31:30 +00:00
pooka 3665ca1dbf Add test case for PR kern/43548
Due to the nature of the feature under test, this one is a little
different, so let me explain how it works.

The test program forks and bootstraps a rump kernel in both processes.
It then configures shared memory interfaces in both.  shmif is nice
in that it uses a mmaped file as the bus and does not require root
privileges for communication between two (or more) processes.  The
child process then proceeds to increase icmp.returndatabytes as
indicated by the PR, while the parent process sets the global TTL
of the rump kernel to 1 (note: both values only affect the respective
rump kernels, not each other or more importantly the host kernel).
The parent then sends the bad packet which is supposed to be routed
by the child.  If ip_icmp.c was too old, *boom* + fail; otherwise
nothing bad happens and the test exists with success after one
second.

Eventually this test can be extended into a framework for automated
testing of any networking code which requires (arbitrarily complex)
routing setups.
2010-07-04 19:30:59 +00:00
pooka a95d92a275 send routing messages via routing sucket -- works better than via inet sucket 2010-07-04 17:24:10 +00:00
pooka c0f3dfaa52 Fix pointer assignment in previous commit (test compile works better
when you do it with the #defines which actually compile the code
in question).
2010-07-04 15:44:46 +00:00
tsutsui 44e300fde8 Make zyd(4) use config_mountroot(9) to complete device initialization
(which requires firmload(9)) right after mountroot.

Now it's attached on boot as following:
---
uhub4 at usb4: vendor 0x1033 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 5 ports with 5 removable, self powered
 :
zyd0 at uhub4 port 4
zyd0: PCI PCI GW-US54GXS, rev 2.00/48.10, addr 3
 :
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
zyd0: HMAC ZD1211B, FW 47.25, RF AL2230, PA 0, address 00:22:cf:xx:xx:xx
zyd0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
zyd0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
 :
---

Should close PR kern/43125, no particular objections in that PR.
2010-07-04 15:38:27 +00:00
pooka 54c71dee8c Use a bit more than 1 byte of space for routing messages. 2010-07-04 15:31:04 +00:00
tsutsui 053c0697d4 Mention about upgt(4). 2010-07-04 15:25:00 +00:00
tsutsui c3e7f27703 Add upgt(4), a driver for Conexant/Intersil PrismGT SoftMAC USB
IEEE 802.11b/g WLAN device, ported from OpenBSD by FUKAUMI Naoki:
http://mail-index.NetBSD.org/current-users/2010/05/28/msg013570.html
Slightly modified by me to use recently added config_mountroot(9)
to defer some device initialization until mountroot for firmload(9).

Tested on Sharp W-ZERO3 WS003SH with internal WLAN.

Note currently we cannot redistribute firmware files for upgt(4) so
they have to be downloaded and copied into /libdata/firmware/upgt manually.
See upgt(4) man page about firmware details.
2010-07-04 15:21:57 +00:00
pooka d2c2528c3b Add a test case for PR kern/36681 demonstrating how easy it is to
get tmpfs rename to "tstile".

Note1: triggering this on any non-SMP system is not as easy (because
one system call tends to run from start to finish in one go) and
therefore I've limited it to i386 and amd64.  Incidentally, I'm
still waiting for the eternally elusive MI CPU_INFO_FOREACH (or at
least something else than a stupid macro) ...

Note2: this is a "race condition" test.  I tested it on my development
host and in qemu and it triggers pretty instantly.  But YMMV.
2010-07-04 12:43:23 +00:00
roy 76cbf63f87 area is now used 2010-07-04 07:30:33 +00:00
njoly 4da0dcbb91 Fix a few test entries for MKDEBUG builds. 2010-07-03 21:48:54 +00:00
christos 5ee8feafcc Don't use spinlocks. 2010-07-03 21:43:37 +00:00
pooka 8a4703fa3a one more test_programs -> test-programs (but i didn't do a build,
just guessing based on the build log failure)
2010-07-03 18:59:38 +00:00