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
pooka
85efd8ec20
set mask and dirmask to 0777 by default
2007-11-04 19:42:56 +00:00
pooka
0be31eefc7
Allocate buf using getiobuf() instead of abusing the stack.
2007-11-04 19:37:29 +00:00
pooka
08ac8063af
Fix some comments: thinking of it more closely, it is actually safe
...
to release the sleep interlock before calling cv_wait() because we
are protected by the list mutex which prevents a wakeup race.
2007-11-04 18:46:29 +00:00
pooka
18ae49a27c
Make the strategy routine get the results through biowait() and
...
the "disk driver" (rumpuser) call biodone() to indicate the completion
of I/O. Support for B_ASYNC is coming at some point, but I need
more locking support in the emulated vm for that.
2007-11-04 18:43:55 +00:00
macallan
1f070ed9c2
add a mixer control for the loopthrough channel that some awacs have - it
...
controls the volume of input data looped through to the output ( for
listening to what you record, it has no influence on recording level )
- defaults to zero.
2007-11-04 18:00:55 +00:00
pooka
67eb7aa96c
Make some comments match current reality. No functional change.
2007-11-04 17:32:34 +00:00
pooka
8e1de16f54
fix comment: suspendsched() removes user process*es* from the runqueue
2007-11-04 17:31:16 +00:00
pooka
c71057099f
fix typo in comment (greetings to ad, someone read your longwinded
...
prattling dissertation)
2007-11-04 17:26:02 +00:00
pooka
2567179467
Remember to save errno before restoring it.
...
noticed by Lukasz on current-users
2007-11-04 17:21:08 +00:00
garbled
1a42c9ee88
Reorder the includes in bus.h to be correct, and add the missing defines for
...
PHYS_TO_BUS_MEM and BUS_MEM_TO_PHYS. Noticed by Frank Wille.
2007-11-04 17:15:43 +00:00
garbled
fbd1da06d8
Apply a patch from Frank Wille that fixes a stupid in the ofw interrupt map
...
discovery where the pin value was off by one.
2007-11-04 17:11:05 +00:00
garbled
bc44c54090
Apply patch from Frank Wille to make the pegasos2 pci scan work
...
properly. Modified slightly by me to add the pegasosreg.h file.
With this change, the pegasos correctly scans both primary and secondary
PCI busses.
2007-11-04 17:07:10 +00:00