Commit Graph

167333 Commits

Author SHA1 Message Date
xtraeme 95157b046e Make the atexit mutex recursive and initialize it in __libc_init()
as suggested by ad@, based on the patch provided by Sverre Froyen
in lib/37654.

Reviewed by ad@ and jmcneill@.
2008-02-25 14:06:13 +00:00
yamt 8b793ad476 nanosleep1: handle kpause spontaneous wakeups. 2008-02-25 12:25:03 +00:00
tnn 005d8bc4e5 Note that db4 was borged by Oracle and that the upstream version is 4.6.21. 2008-02-25 12:22:34 +00:00
elad 58816354da Add "the other" BFKL, from blymn@. :) 2008-02-25 12:20:42 +00:00
apb 56467d7fb7 * Installing as non-root is a bad idea. Print a warning in expert mode,
or bomb in non-expert mode.
* If a previous build.sh run with the -U (unprivileged) flag created a
  METALOG, then subsequent build.sh runs must also specify the -U flag.
  In expert mode, this is just a warning.
* While I was here, changed spaces to tabs in one existing line.
2008-02-25 11:14:31 +00:00
xtraeme 61541ecd71 Fix date format in a previous entry added by garbled@. 2008-02-25 10:51:21 +00:00
xtraeme 54880c4f00 Added support for the mfi(4) controllers with powerpc IOPs such as
LSI SAS1078 or Dell PERC 6, from OpenBSD.

Tested by Akira Kato on current-users@.
2008-02-25 10:46:02 +00:00
xtraeme 0554960b0b Do not attach on Symbios SAS1078, doesn't work and it will be matched
soon by the mfi(4) driver.
2008-02-25 10:38:39 +00:00
nakayama a98d88fa7b process_read_fpregs(), process_write_fpregs():
- move common code before checking 32-bit mode or 64-bit mode.

process_read_fpregs(), netbsd32_process_read_fpregs():
- copy out %fsr.

process_write_fpregs():
- don't copy in fregs if l->l_md.md_fpstate == NULL.
2008-02-25 10:00:45 +00:00
nakayama 119e34ec59 Fix macro to convert CCR field between PSR and TSTATE.
CCR filed in PSR starts from bit 20, not from bit 19.
2008-02-25 09:51:38 +00:00
dholland a84c07271f This code was not compiling on amd64 (is there any reason, beyond lack
of demand, that it's not MI?) and it shouldn't have been compiling on
sh3 either, because it was passing int * to size_t *. I have fixed
this up.

Compile-tested, and looked at by uebayasi@.
2008-02-25 08:31:00 +00:00
dogcow ae1faa8ff4 we need I32_bit, so #include <arm/armreg.h> 2008-02-25 06:32:29 +00:00
matt 5823597dfd Since we say the kernel is C99, add -std=gnu99 to COPTS 2008-02-25 05:56:13 +00:00
dholland 974f37c3af typo patrol 2008-02-24 23:16:24 +00:00
dholland 933ac46844 signal.h is not supposed to define errno, so use ___errno instead.
Adjust errno.h in a compatible fashion to avoid -Wredundant-decls issues.
I have run a build to check the tree for places where errno.h is missing,
and fixed the cases I found, but there might be more in MD code.
2008-02-24 23:01:19 +00:00
christos 972b0b15b4 doecument that we now can return eagain. 2008-02-24 21:55:45 +00:00
christos 3aa2f8095e Check for number of processes resource violation in execve(). 2008-02-24 21:46:04 +00:00
christos d90e9f98a8 Don't return 0 if the count is not changed in chgproccnt()! 2008-02-24 21:44:51 +00:00
dholland 936ebf85ff use errno.h, not sys/errno.h 2008-02-24 21:37:47 +00:00
dholland 09391c117a This file requires errno.h 2008-02-24 21:10:02 +00:00
matt 95dedd171d no need to include opt_irqstats.h 2008-02-24 20:51:52 +00:00
matt ccf3fcac58 allow arm11 to use high vectors. 2008-02-24 20:50:38 +00:00
joerg 932c7ae27a Kill pre-4.4BSD compat code. 2008-02-24 20:42:46 +00:00
rafal ba7873b58d Add TRIPPLITE2 UPS into the list of devices ignored by uhid(4) -- the UPS
software apparently wants to drive it as a ugen(4) instead.
2008-02-24 20:25:13 +00:00
rafal 570306d6b7 Regen for addition of TRIPPLITE2 UPS. 2008-02-24 20:23:38 +00:00
rafal c99a7eb6d3 Add another vendor ID for Tripp Lite and product entry for their USB UPS
interface (it appears to be a generic product ID, rather than per-model).
2008-02-24 20:22:06 +00:00
dholland 988d859140 This file requires errno.h 2008-02-24 20:11:59 +00:00
dholland 68911b1cc8 This file requires errno.h 2008-02-24 19:31:30 +00:00
dholland cb572b466d This file requires errno.h 2008-02-24 19:17:57 +00:00
christos dd771215eb PR/38094: Robert Millan: support "BIOS Boot" partition type in gpt(8) 2008-02-24 18:38:10 +00:00
dsl 5546b33571 Set p->p_trace_enabled in fork and whenever the controlling falgs change
instead of doing it in syscall_intern().
Note that syscall_intern() must still be called when the flags change
since many ports use a different copy of the syscall entry code when
tracing is enabled.
2008-02-24 18:30:07 +00:00
xtraeme 56d9394d91 regen 2008-02-24 16:02:01 +00:00
xtraeme f0667e8c53 + Dell PERC 6. 2008-02-24 16:01:46 +00:00
martin 777a451a3d Remove old posix_fadvise compat code 2008-02-24 15:02:15 +00:00
chris cf20f24b7b Micro-optimizations for arm.
Make enable and disable interrupts one instruction shorter.

Make cpu_cpwait() do nothing on anything other than an xscale, where it
will still call via the cpufuncs table.

This avoids loading a function from cpufuncs and then branching into it. On
older hardware the function does nothing, so this is just a waste of CPU
cycles.
2008-02-24 14:00:04 +00:00
matt ba7104fdd4 Model this syscall.c on the i386 syscall.c. Don't have separate
syscall_fancy and syscall_plain.  Use p->p_trace_enabled.
2008-02-24 12:57:39 +00:00
martin c84d2ae11b Remove compat code for posix_fadvise 2008-02-24 12:54:15 +00:00
martin 93cbe0f210 Regen (old posix_fadvise ignored) 2008-02-24 12:53:47 +00:00
martin a8ed8bb731 Desupport compatibility for the old posix_fadvise syscall per yamt's
request and just ignore it.
2008-02-24 12:52:54 +00:00
martin a032b8dad3 Add a new syscall type IGNORED which just calls nullop (always succeeds
and does nothing).
2008-02-24 12:51:42 +00:00
matt 57db79967d Never ever trust the user. Fix bug introduced in version 1.8 of trap.c
by ragge nearly 13 years ago.
2008-02-24 08:38:39 +00:00
dholland a2e3e41dc6 Don't crash if we're asked to restore from /dev/null. (woops) 2008-02-24 06:12:49 +00:00
dholland 5ec0096cd0 Fix a bit more lint. 2008-02-24 06:07:06 +00:00
dholland c0cbd1abb5 Fix some more lint. (There's plenty to go around.)
If we try to load a game and it bombs, keep prompting for another one,
because if we try to continue with a half-loaded game we'll probably
end up in trouble.
2008-02-24 06:03:35 +00:00
dholland a537df81a5 Don't cast the return value of calloc. 2008-02-24 05:53:33 +00:00
isaki d540dc1cd1 Minor style fix. 2008-02-24 05:34:01 +00:00
isaki c74b21d863 G/C unused variables and macros. 2008-02-24 05:32:09 +00:00
isaki 7c60b08fd1 slhci also shares usbroothub_subr. 2008-02-24 05:29:31 +00:00
dholland 8392979dd5 Dividing by a time_t makes the result time_t, so it should be cast to long
when being printf'd as a long.
2008-02-24 05:20:17 +00:00
dholland fe5990acd7 Print time_t as long long, not long. 2008-02-24 05:16:46 +00:00