dfr [Thu, 25 Oct 2001 08:50:14 +0000 (08:50 +0000)]
Add the two sections used for PLT entries to the text and sdata sections
respectively. This makes IPLTLSB relocations work properly (these are
generated for weak symbols, particularly for _longjmp).
ru [Thu, 25 Oct 2001 07:28:55 +0000 (07:28 +0000)]
Fix cross-building further.
Introduce ${TARGET} defaulting to ${MACHINE} which should be set to
whatever your target ${MACHINE} is, and use that with world-related
stages. That is, to build pc98 on alpha, one now needs to set both
TARGET_ARCH=i386 and TARGET=pc98.
The scope of ${TARGET} is limited to Makefile.inc1 and cross-tools.
In particular, this change was tested to fix:
1. Cross building of "alpha" on i386. The breakage was introduced
by rev. 1.10 to sbin/i386/Makefile (missing <machine/cronyx.h>).
2. Descending into machine-specific subdirs for a different arch.
Previously, sbin/i386 and usr.sbin/boot0cfg were descended into
when cross-building "alpha" or pc98 on i386.
3. Fixes pc98 cross-building which was horribly broken, caused by
not setting MACHINE correctly (most ${MACHINE} == pc98 checking
Makefiles put -DPC98 to CFLAGS).
jlemon [Thu, 25 Oct 2001 05:32:01 +0000 (05:32 +0000)]
Add support for loadable microcode which implements interrupt coalescing
and packet bundling. Make the microcode settings controllable via sysctl
and loader tunables.
Submitted by: Marko Zec <zec@tel.fer.hr>
(with some munging and dynamic sysctl support by me)
Also extend the workaround for Dynamic Standby mode to later '559 chips,
not just the ICH2 variants.
jlemon [Thu, 25 Oct 2001 05:23:31 +0000 (05:23 +0000)]
Add Intel's loadable microcode to implement receive side bundling.
This is taken verbatim from the Intel's e100-1.6.22 release, with
the addition of their LICENSE file at the top.
wollman [Thu, 25 Oct 2001 02:35:29 +0000 (02:35 +0000)]
Resume deorbit burn sequence for <malloc.h>. Inspection of my make logs
reveals no programs in the standard build which hit the previous warning
message. This change will NOT be merged to 4-stable.
rwatson [Thu, 25 Oct 2001 02:03:37 +0000 (02:03 +0000)]
o Remove extern showallsockets, defunct as of the change to
kern.security.seeotheruids_permitted. This was missed in the
commit that made this change elsewhere.
jlemon [Thu, 25 Oct 2001 00:14:16 +0000 (00:14 +0000)]
Force FWRITE on when opening the console, so that the flags passed to
vn_close match those from vn_open. This fixes the panic some people
were seeing about "vrele: missed vn_close".
grog [Thu, 25 Oct 2001 00:01:06 +0000 (00:01 +0000)]
Update Labour Day in New Zealand. It's definitely not today. This
year it was on 22 October, which makes me think that it's the 4th
Monday in October. At least this way it's correct for this year.
jhb [Wed, 24 Oct 2001 22:15:38 +0000 (22:15 +0000)]
Document the requirements and nature of the logical CPU IDs. It isn't
very strict and leaves much up to the platform so that it can define a
convenient mapping.
jhb [Wed, 24 Oct 2001 21:35:31 +0000 (21:35 +0000)]
Change the module name from 'snd_cmipci' to 'snd_cmi' to match the
filename, module name in the loader, the dependency in snd_driver.ko, and
to be consistent with other sound drivers.
dfr [Wed, 24 Oct 2001 21:20:50 +0000 (21:20 +0000)]
If we get an unhandled page fault in kernel mode, either panic (if
pcb_onfault is not set) or arrange to restart at the location in
pcb_onfault.
This ought to help the stability of a system under moderate load. It
certainly stops DDB from hanging the kernel when it tries to access a
non-present page.
asmodai [Wed, 24 Oct 2001 18:10:37 +0000 (18:10 +0000)]
Add $FreeBSD$.
Change assert() macro to print failing function name.
Change K&R function prototype wrapper to ANSI prototype.
This makes us C99 conforming.
jhb [Wed, 24 Oct 2001 17:38:40 +0000 (17:38 +0000)]
- Clean up the comments slightly here to make them more readable.
- Set the type and trapframe number for the F00F workaround since type
can be used later by sv_transtrap(). Debuggers might also want to look
at the type in the trapframe.
ache [Wed, 24 Oct 2001 17:25:49 +0000 (17:25 +0000)]
Help to recover from bad seek (i.e. negative or too big) happens beyond
our pre-check control. Do the same way as refill.c does when it set __SERR,
i.e. clear read and ungetc buffers. Clear EOF flag too.
ume [Wed, 24 Oct 2001 16:53:54 +0000 (16:53 +0000)]
Make apm a module.
We need further work to be able to specify an equivalence of `flags 0x20'.
Many PCs should work for now. But, some PCs need `flags 0x20'.
rwatson [Wed, 24 Oct 2001 02:48:38 +0000 (02:48 +0000)]
o Note an additional potential problem here: LOCKD_MSG directly exports
struct ucred to userland. In 5.0-CURRENT, it is desirable to instead
export struct xucred, as ucred contains mutexes, pointers, and other
kernel evil. I'll add it to my work queue.
mjacob [Tue, 23 Oct 2001 23:05:20 +0000 (23:05 +0000)]
Tra-La, another QLogic f/w funny- this time with the 2300.
If we get a completion status of RQCS_QUEUE_FULL, it means
that the internal queues are full. Other QLogic boards set
the QFULL SCSI status. But *nooooooooooo*, not the 2300.
ache [Tue, 23 Oct 2001 22:48:00 +0000 (22:48 +0000)]
Disallow fseek() optimization in internal read buffer, if pointer is moved by
seek. It means that beginning of read buffer becomes not the same as current
file position.
jhb [Tue, 23 Oct 2001 22:34:36 +0000 (22:34 +0000)]
- Change getenv_quad() to return an int instead of a quad_t since it
returns an success/failure code rather than the actual value.
- Add getenv_string() which copies a string from the environment to another
string and returns true on success.
rwatson [Tue, 23 Oct 2001 19:11:31 +0000 (19:11 +0000)]
o Add two comments identifying problems with the current nfs_lock.c
implementation, so that the information doesn't get lost.
(1) /var/run/lock is looked up relative to the current thread's root
directory, but it's not clear that's desirable.
(2) A race condition associated with live credential modification on
a shared credential is present when privilege is granted for
the purposes of talking to /var/run/lock.
rwatson [Tue, 23 Oct 2001 19:09:01 +0000 (19:09 +0000)]
o vn_open() fails to call VOP_CLOSE() if vfs_object_create fails. Ideally
all successful calls to VOP_OPEN() might be reflected in a call to
VOP_CLOSE(). For now, simply add a comment reflecting this problem;
this should be fixed at some point.
imp [Tue, 23 Oct 2001 15:17:33 +0000 (15:17 +0000)]
Break out the bus front ends into their own files. Rewrite
sio_pccard_detach to use new siodetach. Add an extra arg to sioprobe
to tell driver to probe/not probe the device for IRQs.
This incorporates most of Bruce's review material. I'm at a good
checkpoint, but there will be more to come based on bde's further
reviews.
brian [Tue, 23 Oct 2001 13:52:19 +0000 (13:52 +0000)]
Don't avoid setting a 0 second timer in datalink_StartDialTimer() by
not setting any timer. Instead, set a 1 millisecond timer.
This ensures that ppp will come out of it's select() call after
losing carrier in -ddial mode with a reconnect period of 0 and
going to ST_OPENING, rather than waiting indefinitely for some
other event to wake ppp up.
Bump the ppp version number to indicate the event.