Commit Graph

166260 Commits

Author SHA1 Message Date
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
yamt
d1dc67ef57 identifycpu_cpuids: fix ids for multicore cpus. 2008-01-22 12:55:24 +00:00
joerg
fe9a3139bc Fix LAPIC_LEVEL_MASK and related defines. 2008-01-22 12:42:08 +00:00
joerg
2e737299d6 GC i8254_microtime. 2008-01-22 12:41:38 +00:00
nakayama
da1555e6a7 Search files in arch/sparc64/atomic before arch/sparc/atomic in case of
sparc64 32-bit kernel.

Make sparc64 32-bit kernel works again.
2008-01-22 12:34:58 +00:00
nakayama
b4ed00a22d Use __arch64__ instead of __sparc64__, since -D__sparc64__ is appended
to build option of sparc64 32-bit kernel.
2008-01-22 12:32:07 +00:00
he
e96f213c26 Delete a now-unused local variable. 2008-01-22 11:49:54 +00:00
jdc
eb6a063cb6 Also count excess or late collisions as output errors in gem_tint().
Count receive errors (as input errors) in gem_rint().
2008-01-22 09:42:06 +00:00
pooka
2310c71b91 Until debugging threaded programs in NetBSD is fixed, supply the
cpp option RUMP_WITHOUT_THREADS as a workaround.  If defined, it
makes rump itself operate single-threaded and prevents kthread_create()
from working.
2008-01-22 09:23:39 +00:00
uebayasi
cd0b25a26a Add uhmodem.0 and uhmodem.4. 2008-01-22 06:58:13 +00:00
jmcneill
3a8064081d Note addition of ossaudio support to COMPAT_LINUX32. 2008-01-22 01:23:36 +00:00
lukem
35ec5a7f7a Set the permissions of /etc/openssl/private to 0700.
This makes sense and matches the behaviour of many other systems.
PR misc/18258.
2008-01-22 01:21:04 +00:00
jmcneill
c0e43ab0d6 Add ossaudio support for COMPAT_LINUX32, with help from mrg. With this
change, audio now works on amd64 with native firefox, nspluginwrapper, and
the 32-bit linux flash binaries.
2008-01-22 01:05:05 +00:00
pooka
c40d447080 Sprinkle comments about um_lock status on function entry and exit.
No functional change.
2008-01-21 23:36:26 +00:00
christos
428727f47f PR/37838: Stathis Kamperis: proplib documentation enhancements 2008-01-21 22:15:03 +00:00
ichiro
a7889b7caa enable 'uhmodem' 2008-01-21 22:12:00 +00:00
dyoung
fbc39b6d24 Briefly describe elanpex(4) and elanpar(4). Update AUTHORS section. 2008-01-21 22:00:37 +00:00
dyoung
181cb90ac3 Remove elanopt(4) cross-references. 2008-01-21 21:51:57 +00:00
xtraeme
74470d7e13 Fix style in all the previous entries (hi garbled):
- Entries should end with a dot.
- Entries should start with a capital letter.
- Entries should not have extra whitespaces.

PLEASE FOLLOW THE STYLE IN FUTURE COMMITS TO THAT FILE.
2008-01-21 21:32:41 +00:00
dyoung
099d1a6a37 #include <stdbool.h> for bool, instead of typedeffing our own. 2008-01-21 20:47:38 +00:00
dyoung
1ebd488e32 #include <stdbool.h> for bool. 2008-01-21 20:46:58 +00:00
dyoung
5448ecad57 #include <stdbool.h> for 'bool', so that this kernel groveller will
hopefully compile again.
2008-01-21 20:34:13 +00:00
dyoung
af289dd714 struct route is part of the kernel ABI (!!!), so move it back
outside of #ifdef _KERNEL.  #include stdbool.h if !_KERNEL.
2008-01-21 20:25:33 +00:00
dyoung
58eb3d1bbb Move struct route inside of #ifdef _KERNEL to protect userland from
it.
2008-01-21 20:04:37 +00:00