Commit Graph

97323 Commits

Author SHA1 Message Date
des
e3a85e2195 Remove debugging printf 2003-12-10 22:14:32 +00:00
des
46a9966bca Document the simpler -a semantics. 2003-12-10 22:12:06 +00:00
des
085c74f5a8 Fix a couple of issues in the interrupt code:
- Replace overly-complicated (and buggy) -a logic with a much simpler
   version: -a causes all interrupts to be displayed, otherwise only
   those that have occurred are displayed.  This removes the need for
   any MD code.

 - Instead of just making sure intrcnt is large enough, figure out the
   exact size it needs to be.  We derive nintr from this number, and we
   don't want to risk printing garbage.  Note that on sparc64, we end up
   printing garbage anyway because the names of non-existent interrupts
   are left uninitialized by the kernel.

Tested on:	alpha, i386, sparc64
2003-12-10 22:11:51 +00:00
peter
f9c36a5cbc Update file locations for syscall tables to copy to. 2003-12-10 22:08:37 +00:00
des
e4342d97b9 s/u_(int|long)\>/unsigned \1/ 2003-12-10 21:43:10 +00:00
jhb
45b2a6aae0 Delete old and unused APIC_IRQ defines. 2003-12-10 21:33:07 +00:00
obrien
aad5a3f9a1 Still-born. These landed in dev/kbtr in the end. 2003-12-10 19:30:52 +00:00
jhb
f41d8b744a The DEV_ACPI option is no longer used, so g/c it. 2003-12-10 19:30:42 +00:00
jhb
e09d00d6ae Use NAPICID for the maximum number of local APICs rather than MAXCPU when
doing the HTT fixup.   This is a step closer to possibly having an apic.ko
module someday.
2003-12-10 19:29:39 +00:00
jhb
22551a6c99 Correct usage of MAXCPU. The MAXCPU value itself is not a valid CPU ID
value as it is a count of maximum values.

Reported by:	bde
2003-12-10 19:28:37 +00:00
dwmalone
a7a7345af1 Fix a couple of warnings (const a function parameter and change some
ints to size_ts to better match the types of variables they are used
with).

Glanced at by:	des
2003-12-10 19:24:11 +00:00
jhb
0641ecc261 Trim trailing whitespace. 2003-12-10 19:10:27 +00:00
jhb
4e7f643387 Fix typo in comment. 2003-12-10 19:08:09 +00:00
rwatson
fe42f582c3 interpvnodelabel can be NULL in mac_test_execve_transition(). This
only turned up when running mac_test side by side with a transitioning
policy such as SEBSD.  Make the NULL testing match
mac_test_execve_will_transition(), which already tested the vnode
label pointer for NULL.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-12-10 18:48:05 +00:00
ume
3a98b2a28d validate the argument for multicast routing socket options
correctly.

Obtained from:	KAME
MFC after:	3 days
2003-12-10 18:17:05 +00:00
des
6ad255e2ca This commit was generated by cvs2svn to compensate for changes in r123394,
which included commits to RCS files with non-trunk default branches.
2003-12-10 16:46:08 +00:00
des
0ac9b614f9 MFP4: really fix resp issue, and don't trim trailing spaces (#43727) 2003-12-10 16:46:08 +00:00
mikeh
3ab0e3325a Add reference to standards/55112 for next time SHLIB_MAJOR is bumped.
Suggested by: wollman
2003-12-10 16:33:17 +00:00
green
ba1f885758 Implement seeking to earlier offsets in gzipfs. This allows my loader
to e.g. correctly load all .ko.gz's I've tried, as opposed to messing
up trying to read section headers on some of them.
2003-12-10 16:10:34 +00:00
jhb
4c6ce50103 Add a note about MPTABLE_FORCE_HTT.
Prompted by:	John Stockdale <jstockdale@stanford.edu>
2003-12-10 15:59:20 +00:00
peter
45727a848d Change rc.d/syscons to not need /usr/sbin/ispcvt to exist. This should
make it work for all non-i386 syscons platforms.
2003-12-10 15:48:49 +00:00
bms
e9721459c7 Nursemaid: Fix compilation.
Sponsored by:	Weyland-Yutani Corporation
2003-12-10 15:09:38 +00:00
dds
145a0029f6 Add sticky(8) cross reference.
PR:		docs/60068
Submitted by:	Ken Stailey
MFC after:	2 weeks
2003-12-10 15:08:41 +00:00
grehan
b9acf48722 PowerPC-conditional changes:
- include ashldi3.c/ashrdi3.c from libc for UFS 64-bit arith
 - pull in syncicache.c from libc, and define _STANDALONE for
   loader usage
2003-12-10 13:11:03 +00:00
grehan
9b7ad0cc4e - Put manh/manl bitfields into correct-sized integral type.
- remove XXX normalization bit comment, code is correct.
2003-12-10 13:04:42 +00:00
maxim
8bcaf075b8 Use .St -susv2 rather than "The Single UNIX specification".
Submitted by:	osa
2003-12-10 10:52:48 +00:00
ru
b1c70071ee Grammar. 2003-12-10 09:43:53 +00:00
grehan
4b7769376f Enable FICL build on powerpc 2003-12-10 09:18:42 +00:00
grehan
6861d1e873 Update libstand filesystems to be in-line with tier-1 platforms. 2003-12-10 09:17:01 +00:00
grehan
5e2c5f4d83 - Bring Makefile up to rev with sparc64 in terms of config options and rules
- Move loader relocation up to 0x1C00000. This is in line with OSX bootx,
  and allows more space for boot-time modules/ramdisks without conflicting
  with OpenFirmware's use of RAM
2003-12-10 09:16:22 +00:00
grehan
4586eb88d4 Disable floating point on PowerPC for the ficl library. 2003-12-10 09:10:54 +00:00
grehan
ea73bb881c Define 'arch-powerpc' 2003-12-10 09:09:38 +00:00
grehan
f2833e26c2 FICL system-dependent files for powerpc. Taken from the i386 versions,
which were the most relevant.
2003-12-10 09:05:08 +00:00
grehan
546857d597 imac revA-D and beige G3 OpenFirmware uses the "ide" string for
ATA drives.
2003-12-10 08:58:48 +00:00
grehan
95a8b39eca - removed obsolete ppc_exit/ppc_boot functions
- OpenFirmware returns overlapping memory regions. Use a simple
  brute force algorithm to merge these into non-overlapping
  regions. This fixes bugs in reporting of available memory
  and also prevents pages from being added twice in the VM system.
2003-12-10 08:55:53 +00:00
ume
ed964b66c7 don't touch after free. 2003-12-10 05:01:41 +00:00
obrien
4dbd5f91c1 Add just enough of i386/include/pcvt_ioctl.h to amd64/include/pcvt_ioctl.h
such that 'ispcvt' can build.  Unforunately 'ispcvt' is needed in order for
/etc/rc.d/syscons to run.  This fixes the bug where I could not get my
keymap effective at boot.
2003-12-10 02:49:17 +00:00
marcel
937af1bdeb Add a short description of the kse_switchin(2) syscall to the kse
manpage and add a kse_switchin link. While here, list kse_thr_interrupt
before kse_wakeup in the MLINKS variable and the synopsis.
2003-12-10 02:38:51 +00:00
marcel
99fd2c4491 Write the thread pointer (val) in the kse mailbox (loc) before we
set the new context in kse_switchin(2). This allows us to return
an error to the calling context when the suword() fails.
2003-12-10 01:59:23 +00:00
deischen
24942ebb24 accept() returns a file descriptor when it succeeds which is very
likely to be non-zero.  When leaving the cancellation point, check
the return value against -1 to see if cancellation should be
checked.  While I'm here, make the same change to connect() just
to be consisitent.

Pointed out by: davidxu
2003-12-09 23:40:27 +00:00
jhb
9923d685d3 Adjust an assertion for the TDF_TSNOBLOCK race handling in
turnstile_unpend().  A racing thread that does not have TDI_LOCK set may
either be running on another CPU or it may be sitting on a run queue if it
was preempted during the very small window in turnstile_wait() between
unlocking the turnstile chain lock and locking sched_lock.
2003-12-09 21:14:31 +00:00
jhb
78b3d1aafb Assert that the we never give a thread a NULL turnstile when waking it up. 2003-12-09 21:09:54 +00:00
jhb
32f62a2815 Revert the previous race fix and replace it with a more general fix. The
case of a turnstile having no threads is just one instance of the more
general case where the thread we are examining has been partially awakened
already in that it has been removed from the turnstile's blocked list but
still has TDI_LOCK set.  We detect that case by checking to see if the
thread has already had a turnstile reassigned to it.
2003-12-09 21:09:04 +00:00
sos
950f68ca41 Add back the national support, this was removed by accident earlier. 2003-12-09 19:13:50 +00:00
obrien
71cd1a00af Add support for Moxa Technologies' Smartio CP-104UL/PCI 4S RS232 card.
Submitted by:	Guido Falsi <mad@madpilot.net>
2003-12-09 17:31:25 +00:00
kan
dbc39deda0 Add two additional headers for amd64 and x86.
Reported by: Ollivier Robert
2003-12-09 16:31:30 +00:00
gallatin
6653d63272 Remove duplicate script for locore.o 2003-12-09 15:48:20 +00:00
gallatin
da5e90d8b5 Remove redundant declaration of ddb_trap 2003-12-09 15:46:33 +00:00
deischen
f8c75f6c51 Remove an unused struct definition. 2003-12-09 15:18:40 +00:00
deischen
cf810a03b9 Add cancellation points for accept() and connect(). 2003-12-09 15:16:27 +00:00