Commit Graph

61946 Commits

Author SHA1 Message Date
jdolecek fa2b78c32c regen:
- added __sigtimedwait(2)
- g/c sigwaitinfo(2) slot, move sigqueue(2) slot and free slot #246
2003-02-15 20:56:48 +00:00
jdolecek c58bfd1c36 add __sigtimedwait(2) - wait for specified set of signals, with optional
timeout
the semantics of 'timeout' parameter differ to POSIX for the syscall
(not const, may be modified by kernel if interrupted from the wait) -
libc will provide appropriate wrapper

since sigwaitinfo(2) will be implemented as wrapper around sigtimedwait()
too, remove it's reserved slot and move sigqueue slot 'up', freeing
slot #246
2003-02-15 20:54:38 +00:00
dsl 9926e89884 Fix support for 16 character lognames
(approved by christos)
2003-02-15 18:47:41 +00:00
augustss 2fe25d04b8 Check in some work-in-progress (not yet operational). 2003-02-15 18:33:29 +00:00
augustss b3861dad89 Regen. 2003-02-15 18:30:55 +00:00
augustss 2f45046cd8 Add two new devices. 2003-02-15 18:30:28 +00:00
dsl aed442201d Fix support of 15 and 16 character lognames.
Warn if the logname is changed within a session - usually a missing setsid.
(approved by christos)
2003-02-15 18:10:15 +00:00
drochner 7707c16daa Don't remove the nfsnode from the hash chain in nfs_inactive.
It will never get back... it will not be found in nfs_nget, a new
nfsnode+vnode is allocated instead, which causes a node leak, and
also makes the mountpointness of the vnode to be forgotten, breaking
filesystem crossing lookups through this vnode.
2003-02-15 18:00:25 +00:00
pk c502753d44 Fix pasto in previous. 2003-02-15 13:30:11 +00:00
pk 84e3fcabb3 Redo part of rev. 1.237; the pages at KERNBASE might not be mapped when the
kernel has just been loaded.
2003-02-15 13:17:41 +00:00
briggs 0ba0225830 Initialize the framebuffer BAT with BAT_G, too. This marks the region
as (G)uarded, protecting it from the processor being too aggressive in
reordering and prefetching.  This allows OFB_ENABLE_CACHE to work on my
Powerbook G4.

Thanks to matt@ for suggesting this fix.  "It's the right thing to do."
2003-02-15 05:07:57 +00:00
itohy b1f5bd8e4f constify command buffer 2003-02-15 02:36:52 +00:00
tsutsui 9dc8f99b73 Add prototypes for ZS_TXDMA functions.
XXX Maybe we should have DMA hooks in MI z8530tty.
2003-02-15 02:28:22 +00:00
perseant 6b857c229e Add ipf packet-filtering option to if_bridge. The option is controlled at
compile-time by BRIDGE_IPF, and at runtime by brconfig with the {ipf,-ipf}
option on a per-bridge basis.

As a side-effect, add PFIL_HOOKS processing to if_bridge.
2003-02-15 00:46:30 +00:00
pk baa98646a0 It's not necessary to complicate the computation of `va2pa_offset': we already
assume that the few leading pages in front of the kernel image are
always present.

Adjust `va2pa_offset' on sun4 and sun4c as well, so that some day we can
have the bootstrap program load the kernel some place else.
2003-02-14 22:24:58 +00:00
pk 9ca040e74e Make the memory allocation code MP-safe. 2003-02-14 21:51:36 +00:00
pk 9a853301e6 Use a mutex to protect the global list of open files. 2003-02-14 21:50:10 +00:00
pk 87978ebf11 Make cache insertion, removal and lookup MP-safe. 2003-02-14 21:39:46 +00:00
nathanw 49f53e20ea Make sa_yieldcall also allocate a new LWP for the cache if it's empty.
(XXX sa_yieldcall() and sa_switchcall() should be combined and take
arg as the function to call, but I'm somewhat nervous about void *
vs. void (*)()).
2003-02-14 20:45:12 +00:00
thorpej 22475c164d __'ify MACHINE_ARCH names. 2003-02-14 18:29:05 +00:00
drochner 36e90ce9e3 fix typo in comment 2003-02-14 18:25:34 +00:00
atatat a57bcda26a Rework the way in which the map is traversed when dumping core. Now
we read-lock the map and call uvm_map_lookup_entry() instead of simply
walking from the header to the next and to the next, etc.

Dumping from sparsely populated amaps could cause faults that would
result in amaps being split, which (in turn) resulted in the core
dumping routines dumping some regions of memory twice.  This makes the
core file too large, the headers not match, gdb not work properly,
and so on.

Addresses PR 19260.
2003-02-14 16:25:12 +00:00
rjs ce385ae9b3 Add CPU IDs for PXA B2 and C0 steppings. 2003-02-14 16:00:33 +00:00
dsl 673612c6a0 Use correct segment register in getmementry 2003-02-14 14:39:24 +00:00
dsl e99cdd839c Defines for modified kern_exit.c 2003-02-14 14:27:24 +00:00
jdolecek 1b76f8f55f One more ServerWorks host bridge, seen on Dell PowerEdge server
fix provided in PR port-i386/20333 by Sverre Froyen
2003-02-14 14:26:51 +00:00
pk d2b7e43b18 On pipe reads, check for EOF before FNONBLOCK to avoid spurious EAGAIN errors. 2003-02-14 13:16:44 +00:00
tshiozak e077f7a7d9 - add acpi_acquire_global_lock()/acpi_release_global_lock()/
acpi_is_global_locked() functions.
  AcpiGlobalLock() API should be used to acquire lock between BIOS and OS.
  This API cannot be used to lock between threads of the OS side,
  because this function immediately returns if the lock is already acquired
  by the OS.  c.f. AcpiEvAcquireGlobalLock()@evmisc.c

- make sure that acpiec driver uses above functions.

- use ACPI_ALLOCATE_BUFFER instead of twice calls of AcpiEvaluateObject(),
  in acpi_eval_string()/acpi_eval_struct().
  Twice AcpiEvaluateObject() calls may cause twice side effects
  to ACPI machine / hardware and this may be wrong in some cases.
2003-02-14 11:05:39 +00:00
dsl 71d53fb2ed Use find_stopped_child() and proc_free() in compat wait() code to
avoid code duplication.
(approved by christos)
2003-02-14 10:19:14 +00:00
dsl db17a870e0 Split sys_wait4 so that code isn't duplicated in compat tree.
(approved by christos)
2003-02-14 10:11:56 +00:00
gmcgarry 136892b8b8 Handle 64-bit daddr_t. 2003-02-14 06:55:17 +00:00
tshiozak 4e7944a9b0 use IPL_SCHED instead of IPL_HIGH to establish interrupt for ACPI;
Calling wakeup() from a intr handler established with IPL_HIGH may causes
run/sleep queue to confuse because SCHED_LOCK() uses splsched().
2003-02-14 05:38:39 +00:00
matt 5bcfb63de7 Add PSL_PM 2003-02-14 04:45:32 +00:00
itohy 850cd09532 - Change __cpu_simple_lock_t from int to unsigned char.
This makes simple lock work on big-endian platforms.
- Assembly-level optimization of __cpu_simple_lock_try().

OK'd by Gregory McGarry.  Closes PR port-sh3/20311.
2003-02-14 03:02:41 +00:00
perry 3f573e45ce Instead of spinning, __asm __volatile("hlt"). 2003-02-14 01:11:21 +00:00
jmc 1ed82b5b2c Add a synonym for trace - 'bt' and document it 2003-02-13 23:50:33 +00:00
ross ff410ba8d2 If no keyboard is attached, implement RB_HALT with a spin. kern/10481 2003-02-13 21:34:03 +00:00
matt 8268fcff94 Use register 8, not 0, when construct OF_buffer address. 2003-02-13 15:02:49 +00:00
kanaoka 47b9a825ab Resolve conflict from acpica-unix-20030123. 2003-02-13 14:16:13 +00:00
kanaoka 34d90725e0 Import INTEL 20030123 release. 2003-02-13 13:51:55 +00:00
kanaoka 86e5527901 Import INTEL 20030123 release. 2003-02-13 13:41:53 +00:00
pk b377c6693a Preserve the current PHY select bit in the MIF configuration register
in mii_readreg()/mii_writereg(). Also restore this bit based on the
currently selected media instance every time we need to reinitialise
the interface.
2003-02-13 12:10:20 +00:00
pk d6b6eb78e4 Move the PV list header into the VM page vm_page_md structure.
Also, start using a spin lock to protect PV list operations.
2003-02-13 09:53:20 +00:00
pk 3cba4a9f1b Make the pipe code mostly MP-safe. There are a few unaddressed race
conditions at points where it's necessary to access both the up-stream
and down-stream parts of the bi-directional pipe data structure. These
are marked `XXXSMP' in the code.

Also, since the changes are pretty invasive, there little point in keeping
all the "#ifdef FreeBSD" code around; so all of that has been stripped out.
2003-02-12 21:54:15 +00:00
matt 71cedea5c5 Set cpu_timebase so sysctl() can return it. 2003-02-12 18:01:16 +00:00
matt a8ef834105 Set cpu_timebase so sysctl() can report it. 2003-02-12 17:51:02 +00:00
matt 6d7550dbc7 Initialize cpu_timebase so sysctl can report it. 2003-02-12 17:49:56 +00:00
ichiro b43d919954 add SUNTAC Ir-Trinity IS96U
from FreeBSD
2003-02-12 15:36:20 +00:00
ichiro f6b8f0fcf8 regen 2003-02-12 15:34:53 +00:00
ichiro 33925bb372 add SUNTAC Ir-Trinity IS96U 2003-02-12 15:34:18 +00:00