Commit Graph

98693 Commits

Author SHA1 Message Date
pgoyette 333a587ecc Update format strings now that DISKPART() and DISKNUMBER() are back to
32-bit.
2009-01-21 23:52:58 +00:00
bjh21 7697c48959 Make sure that dp8390_intr() gets passed the softc pointer, not the device
pointer, when it's called.
2009-01-21 23:36:30 +00:00
bouyer d98444ec62 minor() is 32bit again, and so is DISKNUMBER/DISKPART. Pointed out by
Paul Goyette, thanks !
2009-01-21 22:34:55 +00:00
bouyer d23142945f Make i386 config without NPX work, problem reported and fix tested by
Wojciech Galazka.
While there change a __i386__ to i386 for consistency.
2009-01-21 21:26:01 +00:00
bouyer 3a096dbb63 major() is 32bits again, fix printf() format. Pointed out by Paul Goyette. 2009-01-21 20:40:40 +00:00
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