Commit Graph

167808 Commits

Author SHA1 Message Date
reed
09831171ac Mention that "build" and "distribution" do not build nor install (to DESTDIR)
a kernel.
2008-03-08 14:48:57 +00:00
drochner
33e5dbb818 fix so that it doesn't interact strangely with ARCH_SRCS definitions
in the base Makefile, makes the lib built correctly again for eg amd64
(seen by wiz)
2008-03-08 14:21:41 +00:00
ad
61f666ba09 _pthread_rwlock_held_np: if write locked, only return true if held by
the current thread.
2008-03-08 13:46:59 +00:00
yamt
b82fd04ee9 sysconf: cache the result of _SC_PAGESIZE. 2008-03-08 13:34:40 +00:00
ad
eceac52f08 Complain if _lwp_ctl() fails. 2008-03-08 13:23:13 +00:00
ad
8b2c109b14 Add a cast to make lint happy. 2008-03-08 13:22:22 +00:00
ad
91224074af Redo the CPU-based arena selection slightly differently. With the latest
libpthread and kernel, this mysteriously works without a problem.
2008-03-08 13:17:13 +00:00
phx
ae0b13c01b Make XFree86 compile for ofppc.
Approved by garbled.
2008-03-08 10:37:48 +00:00
yamt
ed28705cce fix a double-free bug introduced by the following change. PR/38179.
revision 1.75
    date: 2008/01/29 17:26:57;  author: dyoung;  state: Exp;  lines: +34 -15
    Use device_t.  Add a handler for child detachment.  Now I can detach
    cd0 at atapibus0 without getting a panic when atapibus0 detaches,
    later.
2008-03-08 10:31:52 +00:00
yamt
e769ba6b4a desupport link/unlink of directories. noted by Elad Efrat. 2008-03-08 08:03:46 +00:00
yamt
60381203e0 kpsignal2: enqueue SA_STOP signals and let issignal handle it rather
than trying to stop the process by ourselves.  this fixes SIGTSTP masking.
ok'ed by Andrew Doran.  PR/37603, PR/38060.
2008-03-08 07:56:53 +00:00
imp
64708da5c1 Fix a typo in a comment. 2008-03-08 05:05:25 +00:00
mjacob
f481874c89 Don't panic if you can't find the corresponding DMA device- just don't
configure the device.

It turns out that if you have a SUNW,fas card installed, the assumption
that dma devices pair with esp devices is then broken, but that's a problem
to fix another day.
2008-03-08 04:25:30 +00:00
christos
a8a21bf00e lint patches from Anon-Ymous 2008-03-08 03:35:53 +00:00
rafal
3af75740f5 Support for XScale-based (PXA-2x0) iPaqs -- original refactoring / code from
Robert Swindells, with addition of serial console,  other assorted cleanup
and much headbanging by me.  Tested only on a iPaq 3970 so far.

NB: So far this uses the SA-11xx-targetted assembly code (including cache
handling, etc).  Fortunately, none of that's required since hpcboot allocs
cache-inhibited pages from WinCE to copy the 2nd-stage loader and kernel
into.  I've split the code into SA-11xx and PXA-2x0 bits in my tree, but
that needs help/review from someone with ARM/XScale clue.
2008-03-08 02:26:03 +00:00
rafal
3bf0508cf8 Increment the load-link counter in the right place (once for each link in
the tag chain added vs. just once each time load_memory() is called).
2008-03-08 02:17:48 +00:00
rafal
6e46f6378f Grrr, don't grow the stack *up*, grown it *down* as everything else expects.
Fixes a frequent memory stomp of the bootinfo page (the kernel entry address,
no less) that occurrs when you turn the serial-debug code in the ARM 2nd-
stage bootloader.
2008-03-08 01:50:06 +00:00
joerg
aa88e6d9cd Use the correct file descriptor variable. 2008-03-07 23:28:17 +00:00
dyoung
9a0e417e90 Use device_t and accessors. Setup power management in the PCI
front-end (XXX needs to look more alike the Cardbus front-end).
Establish the shutdown hook using PMF.
2008-03-07 22:32:52 +00:00
ad
55faac1242 pthread_key_create: instead of using a simple 1/0 value to record a key
as allocated, use an array of pointers and save __builtin_return_address(0)
so keys can be identified when doing post-mortem debugging.
2008-03-07 22:27:07 +00:00
ad
8548e33886 pthread__mutex_lock_slow:
- don't stop spinning if there are already waiters on the mutex, there is
  no point.
- cosmetic change.
2008-03-07 22:23:57 +00:00
dyoung
365ad33516 In ath_pci_detach(), only disestablish the interrupt handler if it
is established.
2008-03-07 22:17:03 +00:00
dyoung
dd9279e27b Use device_t and accessors. 2008-03-07 22:05:47 +00:00
dyoung
5d30fe1a78 Use device_t and accessors. Use PMF instead of legacy power
management.  Establish the shutdown hook using PMF.
2008-03-07 22:04:00 +00:00
dyoung
81f7f6b3f2 Use device_t and its accessors. In uhci_{pci,cardbus}_attach, use
`self' instead of casting the softc to void *.
2008-03-07 21:57:56 +00:00
dyoung
347c1a2644 Use device_t and accessors.
In ohci_{pci,cardbus}_attach, do not get the device_t by casting
the softc to void *, but use `self' instead.
2008-03-07 21:48:46 +00:00
cube
3c5e53b4e2 Split device_t/softc for i386's apm(4), and other related cosmetic changes. 2008-03-07 21:45:07 +00:00
tnn
4f831ae35a tmpfs works on sgimips, so enable it. 2008-03-07 21:42:19 +00:00
dyoung
2e3b67d337 Register the shutdown hook using pmf_device_register1(). 2008-03-07 21:36:51 +00:00
joerg
c3302ae742 Regen to get HAVE_FSTAT. 2008-03-07 20:10:55 +00:00
christos
53175f5071 ansi and lint fixes from Anon Ymous 2008-03-07 19:22:22 +00:00
tnn
f0a736e7f1 Add ttyE[0-3] entries for wscons. 2008-03-07 19:01:44 +00:00
mrg
37b5177b06 fix a problem in %xy decoding. 2008-03-07 18:20:20 +00:00
ad
32b8f98e7d lwp_ctl_exit: fix a use-after-free that caused the following:
_lwp_ctl()	<- works
execve()	<- tears down lwpctl state
_lwp_ctl()	<- fails erroneously
2008-03-07 18:06:04 +00:00
ad
1046045268 Keep one builtin slot so that pthread initialization doesn't need to use
malloc().
2008-03-07 17:56:39 +00:00
cube
8ecf8999bf Split the softc from the device_t for all lpt(4) variants and attachments
except the ppbus stuff (which doesn't compile) and ulpt(4) which is
unrelated and can be dealt with separately.

As usual, it comes with related cosmetic changes.
2008-03-07 17:15:51 +00:00
phx
d40e0abd20 Define PCI_MAGIC_IO_RANGE for X11 server. The address chosen may change.
Approved by garbled.
2008-03-07 17:13:49 +00:00
phx
09190f8549 mem*.S no longer include assym.h 2008-03-07 17:10:00 +00:00
christos
2853595ad1 Allow KA53 to link, from Hans Rosenfeld. clk_page is used only if VAX46, VAX48
or VAX49 are defined.
2008-03-07 16:02:43 +00:00
christos
80acf2debe Fix KA53 console. From Hans Rosenfeld. 2008-03-07 15:58:33 +00:00
tls
804778b0a3 Fix build issue on modern OS/X (particularly 10.5 on powerpc) 2008-03-07 14:57:09 +00:00
lukem
c293dd6128 Use "unsigned foo" instead of "u_foo".
Be consistent with tabs.
2008-03-07 10:38:31 +00:00
dyoung
5f9eecf7e3 In com_detach(), don't destroy the lock twice. 2008-03-07 10:08:53 +00:00
martin
813190b43d Swap sysctl -d description of vm.filemin and vm.execmin. Noted by
Raymond Meyer on current-users.
2008-03-07 08:44:51 +00:00
dyoung
8e8ca68019 Use device_t and its accessors. 2008-03-07 08:39:18 +00:00
dyoung
8705e09ae4 PMF: synchronize device suspension and resumption. 2008-03-07 07:03:06 +00:00
dyoung
954c0a60d9 Stop the kernel from panicking when it detaches sysbeep0: do not
try to free the device driver-private storage if dv_private is
NULL.
2008-03-07 06:29:20 +00:00
ad
b0f548e27b oops 2008-03-07 02:18:34 +00:00
ad
bb9b5eb92c In libc, use the MI atomic_cas(). The assembly version is faster, but I
think there are PIC issues with it and I don't have a way to fix and test.
2008-03-07 01:18:54 +00:00
tnn
f85d89c5de v_interlock is a kmutex_t now, simple_lock() -> mutex_enter(). 2008-03-07 00:03:39 +00:00