166133 Commits

Author SHA1 Message Date
ad
1de89e3a92 vclean: fix inverted test. 2008-01-24 17:57:14 +00:00
ad
703069c0e9 specfs changes for PR kern/37717 (raidclose() is no longer called on
shutdown). There are still problems with device access and a PR will be
filed.

- Kill checkalias(). Allow multiple vnodes to reference a single device.

- Don't play dangerous tricks with block vnodes to ensure that only one
  vnode can describe a block device. Instead, prohibit concurrent opens of
  block devices. As a bonus remove the unreliable code that prevents
  multiple file system mounts on the same device. It's no longer needed.

- Track opens by vnode and by device. Issue cdev_close() when the last open
  goes away, instead of abusing vnode::v_usecount to tell if the device is
  open.
2008-01-24 17:32:52 +00:00
hannken
0409981d90 si_mount_dtor(): destroy si_vnlock before free. 2008-01-24 17:29:56 +00:00
hannken
ca2bbf9908 Fix a typo from the vmlocking2 merge: vmark() the right vnode. 2008-01-24 16:26:44 +00:00
ad
ac0f434359 Make sparse dumps the default. 2008-01-24 15:31:23 +00:00
tnn
340f654f47 While here, also add HBA 2008-01-24 15:04:24 +00:00
pooka
d25a6ab97f Don't use PAGE_SIZE when faking physmem, as it's not always available
at compile-time.  We could init it runtime, but it's just a random
number anyway.
2008-01-24 15:02:16 +00:00
tnn
a105ac09e3 Add HCI 2008-01-24 15:01:21 +00:00
rmind
aa633f0365 Fix the return values to conform the standard and/or be compatible with
other systems.  Reported by <drochner>.
2008-01-24 14:41:12 +00:00
ad
fef8681585 Mark some callouts/workqueues/kthreads MPSAFE. 2008-01-24 13:57:52 +00:00
bouyer
5c1336b0c3 Fix bad cut'n'paste from bouyer-xeni386, restore use of pool_cache_put()
instead of pool_cache_destruct_object(). Pointed out by yamt@
2008-01-24 13:55:09 +00:00
skrll
b54ed17ae6 Add "\n" to printf format. 2008-01-24 12:50:35 +00:00
pooka
9af1c338e2 Default physmem was too tight, increase to 256megs from 0 bytes. 2008-01-24 08:34:49 +00:00
wiz
bb68da1ff2 + postfix-2.5.0. 2008-01-24 07:49:30 +00:00
tnn
1b0f7f4f5a Mention vfs_subr2.c. 2008-01-24 07:11:25 +00:00
tnn
9c6c94658e vattr_null lives in vfs_subr2.c now. 2008-01-24 07:02:31 +00:00
jnemeth
2f20e8136d PR/37467 - Ben Wong -- add some information about the default account file 2008-01-24 05:27:10 +00:00
garbled
0beb82c81b Add another optional argument to mkbootinfo.sh, the location of the bitmap. 2008-01-24 01:12:57 +00:00
garbled
3f14a58f67 Make this output the icon in 16 byte rows, which seems to be what IBM wants.
Change the makefile to make it compile on modern pkgsrc versions of netpbm.
2008-01-23 23:22:02 +00:00
garbled
9d727f97fa Default /dev/console to 9600, add new bridge mode kernel sets to build. 2008-01-23 23:18:50 +00:00
garbled
e87796b3eb Change bsddisklabel.c to export it's functions rather than declaring them
all static.  This makes it possible to write a md_make_bsd_partitions()
function without having to copy all of bsddisklabel.c into md.c.

Make ofppc sysinst install sanely and in a bootable manner on both my
7044, and my pegasos.  The only thing the user needs to do is pick the
right kernel set.
2008-01-23 23:15:37 +00:00
garbled
7c8654b9e9 Add an install kernel for 64bit bridge mode cpus. This will hopefully go
away in the next few months.
2008-01-23 23:11:22 +00:00
garbled
ad9b9c40d6 Add a new mkbootinfo.sh script that builds a bootinfo.txt file. Remove a
printf in ofwboot.
2008-01-23 23:09:42 +00:00
ad
27c0e63a2a layer_node_find: if we find a node being cleaned out, then ignore it and
continue.  A thread trying to clean out the extant layer vnode needs to
acquire the shared lock (i.e. the lower vnode's lock), which our caller
already holds. To allow the cleaning to succeed the current thread must make
progress.  So, for a brief time more than one vnode in a layered file system
may refer to a single vnode in the lower file system.
2008-01-23 20:11:32 +00:00
bouyer
ff5ef96736 Terminate the bouyer-xeni386 branch. 2008-01-23 20:11:16 +00:00
joerg
84d9249277 Initialise the Local Vector Table of the primary LAPIC directly after
enabling it. Explicitly initialise LINT0 as ExtInt and LINT1 as NMI,
the platform default. Mask the NMIs on the application processors and
mask the ExtInt if a IOAPIC was found.

With this patch, "disable ioapic" is supposed to work and it will allow
enabling the local APIC on all systems that have one to gain e.g. the
better clock interrupt.
2008-01-23 20:02:15 +00:00
bouyer
1eabf62edb Note i386 PAE support in Xen 2008-01-23 19:53:59 +00:00
bouyer
61d4b35251 build XEN3PAE kernels as part of release. 2008-01-23 19:52:24 +00:00
bouyer
98a8e8b486 Merge the bouyer-xeni386 branch. This brings in PAE support to NetBSD xeni386
(domU only). PAE support is enabled by 'options PAE', see the new XEN3PAE_DOMU
and INSTALL_XEN3PAE_DOMU kernel config files.

See the comments in arch/i386/include/{pte.h,pmap.h} to see how it works.
In short, we still handle it as a 2-level MMU, with the second level page
directory being 4 pages in size. pmap switching is done by switching the
L2 pages in the L3 entries, instead of loading %cr3. This is almost required
by Xen, which handle the last L2 page (the one mapping 0xc0000000 - 0xffffffff)
in a very special way. But this approach should also work for native PAE
support if ever supported (in fact, the pmap should almost suport native
PAE, what's missing is bootstrap code in locore.S).
2008-01-23 19:46:43 +00:00
elad
365cb5272e Use KAUTH_ARG(), from hannken@ - thanks! 2008-01-23 19:06:59 +00:00
skrll
9fb2b717d1 G/C TF_GOTO 2008-01-23 18:11:29 +00:00
elad
142877c301 Forgot to commit these two as well. Spotted by hannken@.
Adapt to "CAN" removal.
2008-01-23 17:56:53 +00:00
elad
b97e1dc060 Use SCARG() to get pid, we don't have it as a local.
Spotted by hannken@, thanks!
2008-01-23 17:55:40 +00:00
elad
aabadd15ea Forgot to commit this in latest commit, spotted by hannken@.
Adapt to "CAN" removal...
2008-01-23 17:52:32 +00:00
dyoung
d8e12ce795 Fix more fall-out from extracting ifioctl_common(): don't return
ENETRESET from ifioctl().
2008-01-23 16:51:19 +00:00
elad
3c22fac894 Bump date. 2008-01-23 15:20:54 +00:00
elad
c27d5f30b6 Tons of process scope changes.
- Add a KAUTH_PROCESS_SCHEDULER action, to handle scheduler related
    requests, and add specific requests for set/get scheduler policy and
    set/get scheduler parameters.

  - Add a KAUTH_PROCESS_KEVENT_FILTER action, to handle kevent(2) related
    requests.

  - Add a KAUTH_DEVICE_TTY_STI action to handle requests to TIOCSTI.

  - Add requests for the KAUTH_PROCESS_CANSEE action, indicating what
    process information is being looked at (entry itself, args, env,
    open files).

  - Add requests for the KAUTH_PROCESS_RLIMIT action indicating set/get.

  - Add requests for the KAUTH_PROCESS_CORENAME action indicating set/get.

  - Make bsd44 secmodel code handle the newly added rqeuests appropriately.

All of the above make it possible to issue finer-grained kauth(9) calls in
many places, removing some KAUTH_GENERIC_ISSUSER requests.

  - Remove the "CAN" from KAUTH_PROCESS_CAN{KTRACE,PROCFS,PTRACE,SIGNAL}.

Discussed with christos@ and yamt@.
2008-01-23 15:04:38 +00:00
gson
b8e6012764 Don't enter an infinite loop in audio_read() when the sc->sc_rustream
buffer is full.  Fixes kern/34659.
2008-01-23 14:14:55 +00:00
joerg
4963c291d7 Fix a logic bug when handling multiple continious misaligned mbufs. 2008-01-23 13:05:42 +00:00
dyoung
993dda8c48 Make this compile again: delete an unused variable from ae_ioctl(). 2008-01-23 05:24:28 +00:00
dyoung
3a08c4a544 Make these compile again by #including <prop/problib.h>. 2008-01-23 05:23:59 +00:00
jmcneill
157e8edd73 Add XBOX specific device drivers and options. 2008-01-23 00:12:03 +00:00
jdc
e75a1cd5b7 Set the correct offset when using VLAN's. 2008-01-22 23:19:14 +00:00
dyoung
aa385448f5 Functional: return ENTRESET from ifioctl_common(), if SIOCSIFCAP
changed anything.

Cosmetic: shorten staircase.
2008-01-22 22:26:30 +00:00
dyoung
94e4ecb4ba Add missing break statement. 2008-01-22 22:09:59 +00:00
reinoud
6383f534f7 Remove extra '(' that prevented kernel with UVMHIST to be compiled 2008-01-22 21:36:23 +00:00
dyoung
81e0f3dc3d Take two steps toward adding and deleting link-layer addresses.
1 Extract subroutine if_dl_create() from if_alloc_sadl().
  if_dl_create() allocates a link-layer ifaddr.

2 Extract subroutine ifioctl_common() from ifioctl().  ifioctl_common()
  will be the basis for an ifnet "superclass" whose functions
  drivers may inherit.  Very simple drivers may set ifnet->if_ioctl
  = ifioctl_common.  More sophisticated drivers will set ifnet->if_ioctl
  = driver_ioctl.  driver_ioctl() will call ifioctl_common() to
  re-use the common code.
2008-01-22 16:25:15 +00:00
joerg
569d6e3d6c Include sys/simplelock.h for the sake of pm_lock. 2008-01-22 15:25:39 +00:00
joerg
a185f9743d Missing assym.h dependency. 2008-01-22 15:24:50 +00:00
joerg
c1c99026f3 Fix up my last commit. statintr and a misnamed variable slipped through. 2008-01-22 14:11:02 +00:00