Commit Graph

99040 Commits

Author SHA1 Message Date
enami
60ebbc4e81 The knote objects attached by peer will still be linked in our list
if we are closed before the peer.  So, remove them.  It didn't matter
when pipe objects are directly returned to pool, but nowadays they
are cached.
2009-02-15 00:07:54 +00:00
jmcneill
1ead3177d3 Add genfb(4) 2009-02-14 22:13:22 +00:00
christos
f794ad1e52 remove 2038 comment. 2009-02-14 20:53:58 +00:00
christos
52d2525b45 make created and lastused time_t to avoid 2038 problems. 2009-02-14 20:53:04 +00:00
christos
f2323cac66 remove 2038 comment. 2009-02-14 20:51:39 +00:00
christos
fab9a9d4d2 mention when this will really break, not 2038 but 2145. 2009-02-14 20:48:46 +00:00
christos
24587463c9 remove 2038 comment 2009-02-14 20:45:29 +00:00
jmcneill
a71612a2f8 Provide a stub genfb_cnattach for md code to call to give a hint to the
bus driver's match function to return a higher confidence (so it can
beat out vga(4), for example). genfb needs-flag so md code can determine
if the genfb driver is present.
2009-02-14 20:33:58 +00:00
perry
88e7f0dcf4 convert to ANSI function prototypes 2009-02-14 20:32:29 +00:00
cube
df0059e2e8 Don't set version deep in the source tree if it's older than the one in
conf/files.
2009-02-14 20:22:59 +00:00
cegger
a96c46296c build & bugfix: spl0 is an alias for splx(IPL_NONE), which effectively results in calling splx() twice. 2009-02-14 18:00:26 +00:00
plunky
767dc27ad2 add a comment re the vop (?) flag LAYERFS_MBYPASSDEBUG, that if set
could cause a bad pointer dereference in the debug printing when
credentials with values of NOCRED or FSCRED were passed to kauth.

I don't see any way to set such a flag, I think its just a debug
thing that could be enabled at compile time by somebody who knew
how, hence the comment rather than a real fix.
2009-02-14 17:29:11 +00:00
jakllsch
78a7904557 Add USB_VENDOR_CYBERPOWER/USB_PRODUCT_CYBERPOWER_UPS to the HID blacklist.
This will allow Network UPS Tools to communicate with these UPSes via ugen(4).
2009-02-14 17:13:01 +00:00
christos
bd1260c5ff from enami: Only apply rootdir changes if the chroot dir != / 2009-02-14 17:06:35 +00:00
jakllsch
5a819467a1 regen. 2009-02-14 17:03:33 +00:00
jakllsch
2c011568c9 Add CyberPower Systems, Inc. vendor ID, as well as one of their product IDs,
which is used in two (or more) models of UPS devices.
2009-02-14 17:01:23 +00:00
plunky
cea3e862b4 consistency checks made inside #ifdef SAFETY should really
be #ifdef DIAGNOSTIC
2009-02-14 16:57:05 +00:00
christos
78a45c73e9 PR/40634: Christoph Badura: "chroot / /sbin/mount" shows only / as mounted 2009-02-14 16:55:25 +00:00
apb
6c4fc39a9f Now that "options MODULAR" is handled via defflag, the Makefile
generated by config(1) in the kernel compile directory no longer
contains IDENT=-DMODULAR.  Instead, there's an opt_modular.h file that
might or might not contain "#define MODULAR 1".

Adapt to this by adding an OPT_MODULAR variable to relevant Makefiles,
set via an awk script that parses opt_modular.h.
2009-02-14 16:53:55 +00:00
pooka
3e656734b8 cosmetic: don't print empty line at end of init_sysent.c 2009-02-14 16:21:23 +00:00
abs
515e52158b Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
he
cc9abff897 Also include <arm/cpu.h> here for the required definitions of
curcpl() and set_curcpl(), so that kern_ssp.c builds here as well.
2009-02-14 12:44:20 +00:00
abs
923c2f94e0 Use relative paths so we can avoid using ${MACHINE} in a path 2009-02-14 10:39:17 +00:00
bjh21
a0263b80b8 I've just discovered config_found_ia(), which means that wskbd(4) and
wsmouse(4) can attach directly at arckbd(4) and I can dispose of the
ugly arcwsmouse(4) and arcwskbd(4) interpositions.  Do that, and purge
them from the documentation as well.
2009-02-14 10:20:55 +00:00
he
aa2d981102 The attribute for if_le_oioc.c should apparently be le24, not le,
so that this file is not pulled into the GENERIC32_IP3x kernel,
where am7990.c isn't built.
2009-02-13 23:55:33 +00:00
bouyer
73920b4161 More printf format fixes. 2009-02-13 23:31:23 +00:00
apb
0cc72e51ac Use "defopt MODULAR" in sys/conf/files, and #include "opt_modular.h"
in all kernel sources that use the MODULAR option.
Proposed in tech-kern on 18 Jan 2009.
2009-02-13 22:41:00 +00:00
bouyer
e83cf7c074 Fix bus_addr_t/bus_size_t confusion 2009-02-13 22:39:37 +00:00
bouyer
1b21577543 Fix printf format after bus_size_t change 2009-02-13 22:39:10 +00:00
plunky
821f05b0d3 While we remap credentials we should ignore cred == FSCRED as well as
cred == NOCRED.

This fixes a page fault occurring when a union is mounted over a umap,
as FSCRED is passed by union filesystem.
2009-02-13 22:29:00 +00:00
bouyer
24584a19d8 Add commented out PCI pass-through support:
#xpci* at xenbus ?                      #Xen3 PCI front end driver
#pci* at xpci ?
2009-02-13 21:18:43 +00:00
bouyer
97f5912f84 Add kernel config file for i386PAE dom0 kernel. 2009-02-13 21:14:46 +00:00
bouyer
651c78e5dd Make sure PCI_COMMAND_MASTER_ENABLE is set in PCI_COMMAND_STATUS_REG. 2009-02-13 21:12:14 +00:00
bouyer
b48bdec72e make iwi_alloc_tx_ring() prototype match function declaration (shows up when
bus_addr_t != bus_size_t). Fix cast for 64bit paddr_t on i386.
2009-02-13 21:11:47 +00:00
he
a5e21717ca Another port which needs <arm/cpu.h> added as in include due to
the new kern_ssp.c.
2009-02-13 21:08:40 +00:00
bouyer
ad86c9a128 Work in progress on PCI front-end/back-end support
front-end:
- add a xpci* at xenbus? which provides pci busses from the dom0
  xpci provides support routines for PCI config space operations and
  enumeration in xpci_xenbus.c
- hypervisor.c: do dom0-style PCI attach only ifdef DOM0OPS
- pci_intr_machdep.c:  check line value only if DOM0OPS

back-end:
- add a pciback* at pci? device which takes precedences over all
  other PCI devices (match return 500) and matches all devices passed
  to pciback.hide option on boot command line.
  It exports the PCI device informations to files in /kern/xen/pci/
- hypervisor.c: create /kern/xen earlier so pciback can create its
  entries while PCI devices are probed
- xen_machdep.c: add handling for pciback.hide=

frontend is know working on Xen 3.1.x dom0 with ahc(4) and pciide(4)
devices. uhci(4) fail when trying to allocate a large contigous DMA
buffer.

backend is work in progress; support in xentools is not there yet.
2009-02-13 21:03:59 +00:00
bouyer
a72a7c9806 Fix printf format for 64bit paddr_t on i386 2009-02-13 20:51:19 +00:00
bouyer
07a0db581b Change bus_size_t from paddr_t to size_t. It doens't make sense to have
a 64bit bus_size_t on i386 as the address space is 32bits anyway.
With a 64bit bus_size_t we need a different bus_space.S for PAE and non-PAE.
2009-02-13 20:50:38 +00:00
bouyer
40dab4ba52 Prepare for PCI frontend support in Xen3 domUs:
call x86_bus_space_init() and x86_bus_space_mallocok() if we have ISA or PCI
  devices configured; not only for non-Xen or dom0 Xen
On Xen, always call PHYSDEVOP_SET_IOPL on context switch
on amd64, also call PHYSDEVOP_SET_IOPL from x86_64_proc0_tss_ldt_init()
2009-02-13 20:42:24 +00:00
pgoyette
c46760325c Fix dmesg output:
Old:
piixpm0 at pci0 dev 20 function 0
piixpm0: ATI Technologies SB600/SB700/SB800 SMBus Controller (rev. 0x13)
piixpm0: interrupting at SMIpiixpm0: polling

New:
piixpm0 at pci0 dev 20 function 0
piixpm0: ATI Technologies SB600/SB700/SB800 SMBus Controller (rev. 0x13)
piixpm0: interrupting at SMI, polling

Cosmetic change only, no functional changes intended.
2009-02-13 19:19:52 +00:00
macallan
50f7b2a157 Don't bother drawing a cursor until wsdisplay attaches. This works around
the deadlock I've seen with the previous version.
While there do some KNF policing.
2009-02-13 17:50:36 +00:00
cegger
23c2bff805 apply fix from upstream:
pciif: Fix typo in constant definition.


xen-unstable changeset: 19190
xen-3.3-testing changeset: 18580
2009-02-13 10:35:48 +00:00
he
2b6c605f60 Allow kern_ssp.c to build. That file includes <sys/intr.h> without
first including <sys/cpu.h>, so include <arm/cpu.h> here so that
curcpl() and set_curcpl() are declared before they are used.
2009-02-13 08:37:52 +00:00
abs
82eae5f5e8 avoid long/unsigned long printf warning on some platforms 2009-02-13 01:38:32 +00:00
bouyer
2a8972c890 Remove dead code 2009-02-12 20:57:45 +00:00
christos
942a145f69 PR/40603: Christoph Badura: unprivileged users can add and delete interface
link addresses. Fixed by centralizing the test as suggested. Will pull up
to 5.0 once submitter tests the fix.
2009-02-12 19:05:36 +00:00
christos
160a37667a Unbreak ssp kernels. The issue here that when the ssp_init() call was deferred,
it caused the return from the enclosing function to break, as well as the
ssp return on i386. To fix both issues, split configure in two pieces
the one before calling ssp_init and the one after, and move the ssp_init()
call back in main. Put ssp_init() in its own file, and compile this new file
with -fno-stack-protector. Tested on amd64.
XXX: If we want to have ssp kernels working on 5.0, this change needs to
be pulled up.
2009-02-12 18:24:18 +00:00
cegger
17fa4af4f6 Make Dom0/DomU boot with root-on-nfs when 'bootdev' parameter is missing or wrong.
In this case, we get prompted for the root device.
Make sure that nfs_bootstatic_callback is initialized or we will miss the nfsroot bootparameter,
causing a boot failure even when root device is correct.
2009-02-12 15:40:15 +00:00
nonaka
50b0e1a573 Processing that installed the card first was moved from pxapcic_attach_common()
to the head of pxapcic_event_thread().
As a result, the problem that built-in CF card is not detected is solved.
This problem occurred because of the fix of kern/40531.
2009-02-12 15:37:12 +00:00
pooka
143addadfb Use p_nlwpid to store the next lwpid location. 2009-02-12 14:46:58 +00:00