Commit Graph

163052 Commits

Author SHA1 Message Date
martin 309213c31a Do not use %d for size_t 2007-11-06 10:44:23 +00:00
uwe 0ecea51f05 Misc cleanup: use device_* and aprint_*, group declarations, g/c some
dead code, etc.
2007-11-06 05:01:26 +00:00
uwe 84e75de6c1 Get rid of local product table, instead just match id register and
pci_devinfo().  While here, convert to device_t, aprint_*.
2007-11-06 03:23:15 +00:00
simonb 3e1f18ae93 Fix unused variable warning for the non-FPU/altivec case. 2007-11-06 02:52:53 +00:00
christos ad18d2e41e 3 month roland feedback timeout:
- Pass lint
- knf
- convert ints to size_t's
2007-11-06 02:50:48 +00:00
uwe 8531d31a58 Use device_t and device_private(). Convert attach to use aprint_*. 2007-11-06 02:29:19 +00:00
ad 8fd9a85c2a Catch up with scheduling changes in the kernel. 2007-11-06 01:46:08 +00:00
uwe 58197290f3 Use aprint_* 2007-11-06 01:46:02 +00:00
jnemeth a1cf0b5a18 note support for Intel G965 chipset 2007-11-06 01:45:08 +00:00
uwe 88c74cddaf Convert to aprint_* 2007-11-06 01:33:00 +00:00
uwe 8b4bf162e5 Use device_t and device_private(). Use aprint_* in attach. 2007-11-06 01:00:59 +00:00
uwe 2b2a00534e Add missing aprint_naive("\n"); in rlphyattach. 2007-11-06 00:58:32 +00:00
ad bb6c89afbf Kill another use of PZERO. 2007-11-06 00:44:46 +00:00
ad 73a3bf6536 Don't bias priority by PZERO. 2007-11-06 00:43:25 +00:00
ad d831186d55 Merge scheduler changes from the vmlocking branch. All discussed on
tech-kern:

- Invert priority space so that zero is the lowest priority. Rearrange
  number and type of priority levels into bands. Add new bands like
  'kernel real time'.
- Ignore the priority level passed to tsleep. Compute priority for
  sleep dynamically.
- For SCHED_4BSD, make priority adjustment per-LWP, not per-process.
2007-11-06 00:42:39 +00:00
uwe 5e48e66a0e Use device_t and device_private().
While here - make ops static.
2007-11-06 00:36:30 +00:00
ad e1fb70b70d Fix decl of lbolt. 2007-11-06 00:25:48 +00:00
xtraeme f4046a2e1c Missed a struct device -> device_t, found by joerg. 2007-11-05 23:57:32 +00:00
xtraeme d61d03fbde Sync with NetBSD-4.0.xml 1.35, which fixes a typo in the sparc changes
section caught by pavel@.
2007-11-05 22:58:33 +00:00
xtraeme b29ea9f980 Sync with NetBSD-4.0.xml 1.34 for the updated list of changes.
With instructions from pavel@.
2007-11-05 22:33:42 +00:00
ad 75ab2e6537 Test p_pctcpu instead of p_estcpu (the latter is specific to SCHED_4BSD). 2007-11-05 20:46:08 +00:00
ad bd6663fc4d Don't set l_usrpri / spc_curpriority here. mi_userret() does it. 2007-11-05 20:37:48 +00:00
dsl bd8185f2eb syscall() has to be implemented in the kernel - so is a normal system call here.This has always been broken, so I suspect everything is using __syscall(). 2007-11-05 20:30:07 +00:00
kiyohara c33e2714c5 + Sync to FreeBSD.
firewire.c Rev.1.101
    firewire.h Rev.1.21
    firewirereg.h Rev.1.50
    fwdev.c Rev.1.52
    fwdma.c Rev.1.9
    fwmem.c Rev.1.34
    fwohci.c Rev.1.93
    fwohcireg.h Rev.1.23
    fwohcivar.h Rev.1.16
    if_fwip.c Rev.1.16
    if_fwipvar.h Rev.1.5
    sbp.c Rev.1.92
+ Cleanup macros in fw_port.h.
+ Fix the occurrence of the error at the resume.  Don't set the buffer again.
2007-11-05 19:08:56 +00:00
tls 02aa4d6c73 Sigh. Fix dependency problem for libcrypto as well; not sure why the
previous build didn't turn this up.
2007-11-05 18:43:42 +00:00
pooka e5a1d7804c remember to bump version for puffs_mainloop() change 2007-11-05 17:55:23 +00:00
pooka ec865a5b29 Actually, daemonize the file servers before mounting. I might require
at some point that the local protocol handler does not change after
the file system has been mounted.
2007-11-05 17:54:31 +00:00
pooka 4b0f2948e2 Pull the daemonizing code out of the library mainloop into the file
servers.  Calling daemon() (i.e. fork()ing) inside a library can
cause nice surprises for e.g. threaded programs.  As discussed with
Greg Oster & others.
2007-11-05 17:48:17 +00:00
ginsbach 0228f092e4 Remove symbol for IEEE Std 1003.1-2004, as it is now included with groff.
Approved by: wiz
2007-11-05 17:36:23 +00:00
macallan f59f835fa4 don't panic if we're not finding all the properties we need. Just complain
quietly and return.
2007-11-05 16:57:46 +00:00
pooka bcc59b911e Call puffs_genfs_reclaim directly instead of through an extra jumpgate. 2007-11-05 16:53:00 +00:00
nisimura da304b3915 EncorePP1 VIA686B southbridge fixup work; hide and disable USBx2, AC97
audio and MC97 modem, and force IDE to have native mode.
2007-11-05 15:56:37 +00:00
garbled de8e7fde3e Lots of small changes for ofppc:
Remove the ofb driver.  I'm not interested in trying to make this work.
It should be replaced with the genfb driver, which I have added,
commented out because that driver needs work before it will function on
ofppc.  (it's too panic-happy, and ofppc needs a working autoconf.c)

Change the way we do isa_inb/outb.  The new way is a slightly nastier
hack, but won't run afoul of the other isa drivers as much.

Fix ofw_consinit.c to remove the dependency on ofb.
2007-11-05 15:49:02 +00:00
pooka 02a45a4a7c Header cleanup: don't need defs.h to do a few includes for us. Also,
use #include <> for global headers instead of #include "".
2007-11-05 13:41:52 +00:00
nisimura 0b718fbde6 - use offset 0x4500 serial for EUMB console.
- make sure to have I-cache/D-cache enabled. Ok for DINK32 and ppcboot.
- have 32B aligned fxp txdesc.
- sip transmit now works.
2007-11-05 13:41:48 +00:00
pooka 8f078f842e * Fix pthread key creation to depend on if it hasn't been created before
instead of depending if a lock was succesfully acquired.  Also, add
  a comment explaining why it is such complex (for all I could guess).
* replace err()'s with abort()
* replace some abort()'s by returning failure
2007-11-05 13:38:27 +00:00
joerg 08de5799c0 Use the fallback to ACPI SCI as PCI interrupt only as a last resort
if no other entry could be used.
2007-11-05 10:30:44 +00:00
tls 6c2ee7b76e Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile.  Fixed build lossage
pointed out by smb.
2007-11-05 04:58:52 +00:00
rmind 1a3f8bd1d1 cpu_xc_offline: Do not double-lock the runqueues for SCHED_4BSD, it uses a
global sched_mutex.  Fixes a hang reported by <jmcneill>.  Tested with M2
and 4BSD - seems to be working fine.
2007-11-05 03:36:14 +00:00
martin 36097b1de9 Use the new sparc64 kcore cpu segment extensions to properly map VA/PAs
on kernels with more then 4 MB text/rodata segment.
2007-11-05 00:46:23 +00:00
martin b050fccbb2 Extend the sparc64 cpu kcore segment so that it records all kernel mappings
done via locked 4 MB pages. The old format could only record physically
continous kernel text mappings.
For compatibility reasons, just extend the structure and fill in all the
old fields as well.
2007-11-05 00:43:41 +00:00
nisimura ac767563ef - rework sip.c, with bitbang fix. still remains not serving well.
- fix for PCI-PCI bridge recursive call.
2007-11-05 00:40:39 +00:00
tls b21c402a7b Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared.  Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.
2007-11-04 23:28:16 +00:00
christos ceaa3a4f21 - pass lint (not completely)
- KNF
- ansify
- use %m instead of "%s, strerror(errno)" in syslog messages
2007-11-04 23:12:50 +00:00
yamt 8d2f958716 write a HISTORY section. 2007-11-04 22:36:18 +00:00
tls 642c01f5cd Mollify NetBSD's lint (which brokenly doesn't define __STDC__ and thus
picks up a bogus assert() macro from assert.h) by not putting double
quotes too close to macro using assert().
2007-11-04 22:02:35 +00:00
pooka 2592930cfe remember to bump date 2007-11-04 21:36:59 +00:00
pooka 057838d510 libc errlist uses "Block device required" for ENOTBLK, so display
that also here.
2007-11-04 21:35:48 +00:00
tron e6cd63ecaf Fix off-by-one error accessing "clnt_cache_addr" array which causes heap
corruption. This will hopefully fix PR bin/37236.
2007-11-04 19:59:54 +00:00
pooka 2525a332ae * sprinkle some locking into the vm code
* avoid extra insert+search+remove step in file systems using
  ubc_uiomove() instead of standard uiomove()
2007-11-04 19:52:14 +00:00