Commit Graph

98738 Commits

Author SHA1 Message Date
cegger
ecc4ad527f buildfix: re-adapt to major()/minor() returning a 32bit value. 2009-01-21 17:16:12 +00:00
he
d4b1297c8f Re-adapt to the changed return types for major() and minor(). 2009-01-21 16:24:33 +00:00
christos
d3baa5ffd2 compile into nothing if not compat 50. 2009-01-21 16:12:20 +00:00
he
6ad7662725 Pare down the size of the INSTALL kernel images. This was done by:
1) Removing chio, rcmd, restore, scsictl, shutdown and slattach
   from the ramdisk images
2) Removing the isp* driver from the INSTALL kernel configs
3) Reducing the memory disk and ramdisk size back from 4400 to 4200 blocks

As a result, also remove mention as QLogic ISP controllers as being
supported by the installation.

With this, the INSTALL kernel images should once again be usable;
the firmware apparently imposes a size limit around 5MB on the files
it will load.

Longer-term, this port probably ought to get it's own stand-alone boot
loader, so that it might use e.g. loadable modules.
2009-01-21 14:43:14 +00:00
jnemeth
c0f7445ba3 add a comment explaining how to regenerate videomode.c 2009-01-21 14:40:25 +00:00
jnemeth
ae69439f5d add a comment explaining how to regenerate ediddevs.h and ediddevs_data.h 2009-01-21 14:40:02 +00:00
jnemeth
ebc311ebd3 add a comment explaining how to regenerate usbdevs.h and usbdevs_data.h 2009-01-21 14:36:10 +00:00
jnemeth
5d551dd0c7 add a comment explaining how to regenerate tcdevs.h and tcdevs_data.h 2009-01-21 14:34:18 +00:00
jnemeth
02b4a4a2af add a comment explaining how to regenerate podules.h and podule_data.h 2009-01-21 14:31:04 +00:00
jnemeth
5384a2c3b7 add a comment explaining how to regenerate onewiredevs.h and onewiredevs_data.h 2009-01-21 14:27:58 +00:00
tsutsui
3088b745c1 Add esp at mca, so that daily build will detect botches in it. 2009-01-21 14:26:25 +00:00
jnemeth
7a16c23c62 add a comment explaining how to regenerate mcadevs.h and mcadevs_data.h 2009-01-21 14:24:52 +00:00
jnemeth
3650fe6bb4 add a comment explaining how to regenerate isapnpdevs.h and isapnpdevs.c 2009-01-21 14:22:46 +00:00
jnemeth
8fef557086 add a comment explaining how to regenerate eisadevs.h and eisadevs_data.h 2009-01-21 14:18:44 +00:00
jnemeth
45ff970e0f add a comment explaining how to regenerate acpidevs_data.h 2009-01-21 14:15:43 +00:00
jnemeth
dd35772633 add a comment explaining how to regenerate pcmicadevs.h and pcmciadevs_data.h 2009-01-21 14:13:09 +00:00
jnemeth
5a2d34426b add a comment explaining how to regenerate pcidevs.h and pcidevs_data.h 2009-01-21 14:10:10 +00:00
jnemeth
059ed7c24a add a comment explaining how to regenerate miidevs.h and miidevs_data.h 2009-01-21 14:08:03 +00:00
tron
1c6c1db2da Revert accidental of some rogue changes which broke the build. 2009-01-21 10:01:42 +00:00
cegger
61afb3cf6c buildfix: re-adapt to major()/minor() returning a 32bit value. 2009-01-21 09:55:53 +00:00
cegger
969541a563 buildfix: re-adapt to major()/minor() returning a 32bit value. 2009-01-21 09:43:40 +00:00
martin
9ea6d7e03a Adapt to major()/minor() return value type changes. 2009-01-21 09:18:32 +00:00
cegger
2f997eedf3 Roll our own ETHER_ALIGN #define like many other driver do.
Use ETHER_ALIGN to calculate number of segments correctly (actually the same way as FreeBSD and OpenBSD do).
Also use ETHER_ALIGN to correctly adjust new mbufs.
This makes the driver finally work. Tested by Jochen Kunz:
ping -nf 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes

----192.168.2.1 PING Statistics----
28949 packets transmitted, 28949 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.157/0.364/2.272/0.023 ms
  2710.6 packets/sec sent,  2710.6 packets/sec received


XXX Shouldn't if_ether.h provide ETHER_ALIGN instead of defining it in all drivers?
2009-01-21 07:48:54 +00:00
yamt
812bb0d164 restore the pre socket locking patch signal behaviour.
this fixes a busy-loop in nfs_connect.
2009-01-21 06:59:29 +00:00
enami
3d21969dbd Fix a bug introduced by rev. 1.311. Make the kern.vnode sysctl to expose
correct address of each vnode to userland again.
2009-01-21 00:54:05 +00:00
tron
31faff7381 Include "bsd.own.mk" to get the definition of "NETBSDSRCDIR" via
"/etc/mk.conf". This fixes manual use of "make cleandir".
2009-01-20 22:49:29 +00:00
pooka
8e9ecb1ac9 It seems profiling really really doesn't like pthreads on my system
for some reason.  Because I don't have time to descends into the
depths to figure out why, give an alternative rumpuser_pth module,
which allows to link rump completely without pthreads.  Naturally,
this means that no threads can be used, but it's enough to get
profiling done in some cases.
2009-01-20 21:43:13 +00:00
bjh21
ce80665a62 Convert more printfs to aprint_* and use the latter more consistently. 2009-01-20 20:57:26 +00:00
christos
ea2d6ba697 Fix obvious errors in conversion to device_t from Wojciech Galazka
Please compile-test at least!
2009-01-20 20:49:51 +00:00
christos
5bd9ba9f86 add some debugging. 2009-01-20 20:47:33 +00:00
bjh21
ca028b246f sec(4): use device_t and cfdata_t rather than explicit structure pointers. 2009-01-20 20:45:11 +00:00
drochner
26a88cd4d5 -avoid eternal block if device is not streaming
-apply locking to avoid race in poll()
-fix an obviously wrong flag check
2009-01-20 20:18:28 +00:00
drochner
95dfcca096 kill unused variable 2009-01-20 20:15:15 +00:00
drochner
dc83650fb8 add __gcc__ __format__ __string__ __attributes__ to catch mistakes early 2009-01-20 20:12:41 +00:00
drochner
d767912be3 Change major()/minor() to return 32-bit types again, called
devmajor_t/devminor_t, as proposed on tech-kern.
This avoids 64-bit arithmetics and 64-bit printf formats in parts
of the kernel where it is not really useful, and helps clarity.
2009-01-20 18:20:47 +00:00
yamt
70a4009abb comment 2009-01-20 15:13:54 +00:00
tsutsui
7107680c9d In fpu_emul_arith(), check lower 7 bits in word1 rather than only 6 bits
to check 040/060 FP instructions, and don't call fpu_implode() and
fpu_upd_fpsr() if no vaild emulated result is set otherwise these
functions cause NULL pointer dereference.

Fixes panics triggered by 040/060's FDADD instruction
(which has the same lower 6 bits with fscale instruction)
on 020/030 machines (even with 68881/68882) running kernels
with options FPU_EMULATE.
Problem reported by John Carr on port-sun3.

Should be pulled up to netbsd-4-0, netbsd-4 and netbsd-5.

XXX: m68k 4.0 packages binaries on ftp have this FDADD instruction.
2009-01-20 14:57:21 +00:00
yamt
e80f4e9ccb fix inverted POLL_ directions. 2009-01-20 14:51:43 +00:00
yamt
62bd2e85ef pipeselwakeup: now POLL_HUP != POLL_ERR. remove unnecessary #if. 2009-01-20 14:50:22 +00:00
yamt
3852c7cb1c bump lockstat interface version for timespec. 2009-01-20 14:49:00 +00:00
jmcneill
b7ae31c476 Decode and display PCI Power Management registers when available. 2009-01-20 13:54:43 +00:00
tsutsui
210594d64a Disable LOAD_NOTE on floppy boot. Fixes PR install/38943 on news68k.
news68k uses single boot floppy, but this still prevents extra seek
across a whole kernel in ustarfs.
2009-01-20 13:35:28 +00:00
tsutsui
b5ed1e6cdb Disable LOAD_NOTE on floppy boot. Fixes PR install/38943 on newsmips. 2009-01-20 13:12:26 +00:00
njoly
8ed9e9eb51 Regen for personality(2) addition. 2009-01-20 12:02:09 +00:00
njoly
b22c955a54 Add basic support for linux32 personality(2) syscall. 2009-01-20 12:00:58 +00:00
rmind
8e020a9cfe Reduce MQ_PRIO_MAX to 32. Will be useful later. 2009-01-20 02:15:32 +00:00
rmind
909e7f4259 - Make thread-affinity and processor-set interfaces mutually exlusive.
- pset_assign: when CPU is assigned, migrate out all LWPs from it.
2009-01-20 01:57:35 +00:00
bjh21
0d3e94c475 Autoconfiguration cleanup for eca(4):
- Use device_t and cfdata_t.
- Split device_t out of eca_softc.
- Use aprint_*() rather than printf().
- Use device_xname().
2009-01-19 23:43:14 +00:00
bjh21
804a5a414b Split device_t from softc in arcvideo(4). Also tidy a rogue printf(). 2009-01-19 23:09:22 +00:00
he
d8caed22ee Remove parens around target in .ifmake -- new make doesn't like it. 2009-01-19 23:09:16 +00:00
njoly
97781244ee Clear error value on exit for IOC_CPU_OGETSTATE ioctl command. 2009-01-19 23:04:26 +00:00
njoly
31357439c7 Fix typo in compat ioctl name. 2009-01-19 23:01:42 +00:00
christos
143e6033a9 Provide compatibility for pre-christos-time_t sysv sysctls. 2009-01-19 19:39:41 +00:00
mjf
a3ff3b0296 mscp(4) was being a bad monkey! It's not OK to call config_found() from
interrupt context, as my vax kernel with DIAGNOSTIC told me. Instead, we
defer the work and get it to run in thread context via a workqueue(9).

Thanks to matt@ for the review.
2009-01-19 19:15:07 +00:00
jym
64d2bae140 - fix some spaces
- add comments

No functional change.
2009-01-19 18:27:02 +00:00
christos
d610baec20 provide compat_50 2009-01-19 17:39:02 +00:00
yamt
1b3ee850af ppp_get_compressor: take module_lock when trying to load a module. PR/40428 2009-01-19 15:16:34 +00:00
jmcneill
0c302519a0 regen for Attansic L1E Gigabit Ethernet Adapter 2009-01-19 15:04:24 +00:00
jmcneill
371a1b3043 Attansic L1E Gigabit Ethernet Adapter 2009-01-19 15:03:50 +00:00
yamt
3e196b68ff malloc -> kmem_alloc 2009-01-19 14:54:28 +00:00
njoly
0ebed1143f Small personality(2) update.
- Allow querying current personality.
- Use symbolic names instead of magic values.
2009-01-19 13:31:40 +00:00
christos
14ba6c67a5 Provide compatibility to the old timeval SCM_TIMESTAMP messages. 2009-01-19 02:27:57 +00:00
bjh21
d7c9b7fb33 Split device_t out of softc, with one small fix where something wanted the
device_t but was getting the softc.
2009-01-19 00:11:16 +00:00
christos
f0adb7fbbb compat_linux needs at least netbsd_16 for sigcontext. 2009-01-18 23:29:33 +00:00
bjh21
96154ba75d Fix a bit of layout. 2009-01-18 23:25:12 +00:00
bjh21
c6e4ae9df0 Be consistent about what the void* cookies we pass to and from wscons contain,
in preparation for splitting softc and device_t.
2009-01-18 23:23:40 +00:00
bjh21
dcc1944658 Use device_xname() rather than dv_xname. 2009-01-18 22:57:55 +00:00
bjh21
ab4b4dc1da Autoconfiguration cleanup:
- Use device_t and cfdata_t rather than explicit structure pointers.
- Use aprint_*() rather than printf().
- Use device_*() rather than directly accessing structure members.
- Split device_t out of podulebus_softc.
2009-01-18 22:43:04 +00:00
cegger
946c49f6ac fix botched age_ioctl(): don't try to roll its own handling when ether_ioctl() is doing all of it right.
Tested by Jochen Kunz.
2009-01-18 21:24:44 +00:00
bouyer
8a8c66a794 The Xen PCI_BUS_FIXUP/PCI_ADDR_FIXUP has rotted, catch up with x86 changes
in this area. Patch provided by FUKAUMI Naoki in PR#40356.
2009-01-18 20:50:43 +00:00
he
fddc3457b2 Change the use of formally undocumented features, which have now been
made to fail.  Specifically, change
.ifdef(SYMBOL) -> .ifdef SYMBOL or .if defined(SYMBOL),
and corresponding for .ifndef.

Also correct one error in lib/libm/Makefile (.ifdef (${MKCOMPLEX} != "no")?!?).
2009-01-18 20:42:11 +00:00
bjh21
34052fb508 Split device_t from ioc_softc. 2009-01-18 20:31:08 +00:00
cegger
97f2088ea7 beautify dmesg output 2009-01-18 18:55:38 +00:00
bjh21
792645e16e Now that I've fixed the bootstrap IIC stuff, split device_t out of softc. 2009-01-18 18:41:34 +00:00
bjh21
db48cd747b Add ARM_LOCK_CAS_DEBUG. 2009-01-18 18:24:23 +00:00
bjh21
a415d13dce A commit I missed from the recent migration to arm/fusu.S. 2009-01-18 18:23:59 +00:00
christos
4d5e83b18e fix debugging build (Wojciech Galazka) 2009-01-18 16:46:12 +00:00
bjh21
e9aeb0583d Adapt the arm32 fusu implementation for use on PROG26 configurations
and use it on acorn26.
2009-01-18 16:42:09 +00:00
christos
5dd7ffdfb6 add compat50 ioctls. 2009-01-18 16:37:19 +00:00
he
0e4798f78e Bump the ramdisk size so that the contents fits again. 2009-01-18 16:29:30 +00:00
bjh21
e5754b08fd Move arch/arm/arm32/fusu.S to arch/arm/arm/fusu.S in preparation for making
it usable on acorn26 as well.
2009-01-18 15:43:20 +00:00
bjh21
30286df7bb Add what I hope is a useful feature whereby, in DIAGNOSTIC builds, trap
handlers leave a useful sentinel value in R14_svc instead of their own
return address.  This should mean that if something causes a trap in SVC
mode without saving R14 first, it'll cause a nice obvious panic rather than
a hang or worse.  Of course, if it's using R14 as a temporary, there may
still be some confusion.
2009-01-18 15:14:34 +00:00
hans
d4647b05dd Use sed, awk and hexdump from tools to make this work on Solaris. Ok by apb. 2009-01-18 13:55:31 +00:00
hans
7ff8bbb1b3 Not every grep knows -q. Ok by apb. 2009-01-18 13:53:03 +00:00
he
c2e5f48d9e After the recent time_t and associated changes, COMPAT_ULTRIX now
depends on COMPAT_50.  Make it so.
2009-01-18 13:25:39 +00:00
tnn
8daad4ac39 Fix swedish USB keymap. The apostrophe key was mapped to comma.
(How did this go unnoticed for so many years?)
2009-01-18 12:58:49 +00:00
he
f15a4a6620 Bump the size of ramdisk and diskimages, so that what needs to
be put there still fits.
2009-01-18 12:51:25 +00:00
lukem
c5eb4ab601 fix -Wsign-compare issues 2009-01-18 11:56:51 +00:00
cegger
d5fc4888bc Bracket IRQ masking around nfe_intr() in nfe_init() rather inside nfe_intr().
Proposed by dyoung@ in PR 40345. Should fix PR 40345.
2009-01-18 11:21:06 +00:00
cegger
94a79c95d5 Use aprint_error_dev. Eliminates XNAME macro. 2009-01-18 10:40:40 +00:00
mrg
71e27a6efb The PCI revision numbers are unique to a PCI vendor/product
ID pair.  Misuse of the revision numbers was causing some of the chip
features to be disabled on some integrated Intel chips.  So, move the
determination of the features into the bus frontend, where the
vendor/product ID is known.  (Note: sc_rev should be removed.  The
microcode patch stuff is also busted and needs to be fixed.)  Also,
poll the actual flow control status in inphy, rather than making
assumptions.

contributed anonymously.
2009-01-18 10:37:03 +00:00
mrg
c30587badd Fix multiple problems:
* A sign extension error creating the bridge ID corrupted the
    priority (always making it the maximum).
    * Do not catch STP packets on an interface for which STP is not
    enabled -- it's a violation of the spec, and causes STP to fail on
    neighboring bridges.
    * An optimization to bstp_input() -- some information is already
    known when we call it.

contributed anonymously.
2009-01-18 10:28:55 +00:00
mrg
94ed4b4374 Don't attempt to unload a DRM device that's in use. (Note:
Unloading doesn't work right in any case -- it doesn't clean up the
sysctl tree, among other things.  This code needs Work, but at least
this prevents it crashing randomly due to autounload while X is
running.)  Also, fix the dependency list for radeondrm.

contributed anonymously.
2009-01-18 10:04:35 +00:00
mrg
dff35a2418 Enable flow control and poll the status appropriately.
contributed anonymously.
2009-01-18 10:00:51 +00:00
mrg
f41b56aff5 Actually enforce the maximum timeout (60s by default) rather
than backing off to 256*SRTT.  This is why it sometimes could take
hours for a NFS mount to come back when the server returned.

contributed anonymously.
2009-01-18 09:45:05 +00:00
isaki
d81422fa96 struct device * -> device_t 2009-01-18 05:23:34 +00:00
rmind
d1efa8f729 - Avoid calling sched_catchlwp() if CPUs have different processor-sets.
- sched_takecpu: check for psid earlier (be more strict).

PR/40419.
2009-01-18 05:07:51 +00:00
isaki
34b7dffc11 - malloc() + memset(0) -> malloc(M_ZERO).
- remove temporary variable.
2009-01-18 05:00:39 +00:00
isaki
0a5ccf5143 Delete 10 years old #if 0'd comments in intio.c, locore.s.
According to the old comment, the interrupt handler via intiotrap
should set his interrupt level again, but it's not right.  And
don't set it again by interrupt hander.
2009-01-18 04:48:53 +00:00
tsutsui
4459b5fdab I really hate silly hacks inside #ifndef _STANDALONE in libsa sources... 2009-01-18 02:59:02 +00:00