Commit Graph

43946 Commits

Author SHA1 Message Date
David E. O'Brien
003a6abbbe Still-born. These landed in dev/kbtr in the end. 2003-12-10 19:30:52 +00:00
John Baldwin
d9feb22dbe The DEV_ACPI option is no longer used, so g/c it. 2003-12-10 19:30:42 +00:00
John Baldwin
62d1198ba5 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
John Baldwin
3f19e465b9 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
John Baldwin
4d5f2cbbd6 Trim trailing whitespace. 2003-12-10 19:10:27 +00:00
John Baldwin
1696e797f4 Fix typo in comment. 2003-12-10 19:08:09 +00:00
Robert Watson
7b9ed9a793 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
Hajimu UMEMOTO
20dc9331aa validate the argument for multicast routing socket options
correctly.

Obtained from:	KAME
MFC after:	3 days
2003-12-10 18:17:05 +00:00
Bruce M Simpson
221ae43b30 Nursemaid: Fix compilation.
Sponsored by:	Weyland-Yutani Corporation
2003-12-10 15:09:38 +00:00
Peter Grehan
db97bace42 Enable FICL build on powerpc 2003-12-10 09:18:42 +00:00
Peter Grehan
456ff079c0 Update libstand filesystems to be in-line with tier-1 platforms. 2003-12-10 09:17:01 +00:00
Peter Grehan
7e299a724d - 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
Peter Grehan
b91af74a2c Disable floating point on PowerPC for the ficl library. 2003-12-10 09:10:54 +00:00
Peter Grehan
b42c229790 Define 'arch-powerpc' 2003-12-10 09:09:38 +00:00
Peter Grehan
f60761de00 FICL system-dependent files for powerpc. Taken from the i386 versions,
which were the most relevant.
2003-12-10 09:05:08 +00:00
Peter Grehan
71bf803ad6 imac revA-D and beige G3 OpenFirmware uses the "ide" string for
ATA drives.
2003-12-10 08:58:48 +00:00
Peter Grehan
1d9c166f51 - 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
Hajimu UMEMOTO
869a467690 don't touch after free. 2003-12-10 05:01:41 +00:00
David E. O'Brien
70005bdb38 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 Moolenaar
ccb46feb8e 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
John Baldwin
67ba867827 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
John Baldwin
da1d503b22 Assert that the we never give a thread a NULL turnstile when waking it up. 2003-12-09 21:09:54 +00:00
John Baldwin
6b6bd95ee5 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
Søren Schmidt
a5cd71ee7b Add back the national support, this was removed by accident earlier. 2003-12-09 19:13:50 +00:00
David E. O'Brien
6ea7b5bcdf 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
Andrew Gallatin
721bdb8d39 Remove duplicate script for locore.o 2003-12-09 15:48:20 +00:00
Andrew Gallatin
01ff47342a Remove redundant declaration of ddb_trap 2003-12-09 15:46:33 +00:00
Andrew Gallatin
4f7daed045 pmap_query_bit() should return false if the bit is not set.
Reviewed by: grehan
2003-12-09 14:47:33 +00:00
Andrew Gallatin
eaa53cc8fc Use the "shut-down" and "reset-all" Forth procedures to halt and
reboot, as calling OF_exit() just hangs a mac.

FreeBSD on my G4 800Mhz mac behaves identically to OSX for halt
and reboot now.

Reviewed by: grehan  (who also supplied the concept and sample code)
2003-12-09 14:45:39 +00:00
Andrew Gallatin
67e945bab9 Make breakpoint() actually break into ddb.
Reviewed by: grehan
2003-12-09 13:37:31 +00:00
Marcel Moolenaar
b291daba6f Don't panic for misalignment traps when the onfault handler is set.
Not all transfers between kernel and user space are byte oriented
and thus alignment safe. Especially fuword*() and suword*() are
sensitive to alignment but in general more optimal than block copies.
By catching the misalignment trap we avoid pessimizing the common
case of properly aligned memory accesses which we would do if we
were to use byte copies or adding tests for proper alignment.

Note that the expectation that the kernel produces aligned pointers
is unchanged. This change therefore relates to possible unaligned
pointers generated in userland.
2003-12-09 09:52:14 +00:00
Marcel Moolenaar
0bf2a7190a Fix the build of libski now that we use the "official" MADT table
definitions. Those are slightly different than the ones we used
before ACPI-CA 20031203 got imported. No structural or functional
change.
2003-12-09 08:35:17 +00:00
Warner Losh
462fcd56a6 Older versions of the intersil firmware is a lot slower than newer
versions of the firmware.  It responds more slowly to commands, and we
bogusly failed them.  We assume that all versions of the intersil
firmware before 1.0 are 10 times slower and will give it 10x the time
to finish.

# for 5.2 we should always just assume 5s.
2003-12-09 07:41:07 +00:00
Bruce M Simpson
1d3bcf3583 Declare gre(4) as being of IFT_TUNNEL, Like God Intended.
Suggested by:	fenner
2003-12-09 06:39:25 +00:00
Nate Lawson
54f6bca07c Use sbufs instead of snprintf for parsing debug strings. 2003-12-09 06:29:57 +00:00
David E. O'Brien
b5a8abc730 Sync these two files. 2003-12-09 05:40:06 +00:00
Nate Lawson
0911e271e3 Delete madt.h since definitions are now used from actbl.h 2003-12-09 03:18:06 +00:00
Nate Lawson
99d3ab068f Changes to the import script to handle the compiler/debugger import. 2003-12-09 03:13:37 +00:00
Nate Lawson
4d304b42df This commit was generated by cvs2svn to compensate for changes in r123331,
which included commits to RCS files with non-trunk default branches.
2003-12-09 03:11:40 +00:00
Nate Lawson
fe2e9bd26c Fix an off-by-one in the compiler path. Originally from iwasaki-san's
patches for the pmtools port.
2003-12-09 03:11:40 +00:00
Nate Lawson
90d4766d51 This commit was generated by cvs2svn to compensate for changes in r123329,
which included commits to RCS files with non-trunk default branches.
2003-12-09 03:06:28 +00:00
Nate Lawson
2dfad8a854 Eliminate a warning. Patch has been sent to the vendor. 2003-12-09 03:06:28 +00:00
Nate Lawson
b8a1658528 This commit was generated by cvs2svn to compensate for changes in r123327,
which included commits to RCS files with non-trunk default branches.
2003-12-09 03:06:09 +00:00
Nate Lawson
f5f92fb181 Add the APIC_HEADER definition back in and use the correct definition
for local APIC override (64 bits).  Changes have been submitted to the
vendor.
2003-12-09 03:06:09 +00:00
Nate Lawson
cac6460cfe Use the ACPI-CA definitions for the various APIC tables instead of our
own.
2003-12-09 03:04:19 +00:00
Nate Lawson
73a34dd424 We don't need to call _INI on processor objects now that ACPI-CA does
this as it should.
2003-12-09 03:01:54 +00:00
Nate Lawson
2d4c34274d Unchanged files that are off the vendor branch. 2003-12-09 03:00:55 +00:00
Nate Lawson
3a3f40629a Local change: In the resume path, give up after waiting for a while
for WAK_STS to be set.  Some BIOSs never set it.
2003-12-09 02:57:46 +00:00
Nate Lawson
7fc6af078c Import for 20031203 file off vendor branch. 2003-12-09 02:57:30 +00:00
Nate Lawson
aba5e23de1 Local change: emulate a ReturnOp if the AML expects one but it isn't
present.  Some buggy BIOSs do not have a ReturnOp even though it is
required for a function to return a value.
2003-12-09 02:55:47 +00:00