208164 Commits

Author SHA1 Message Date
dholland
f08dd5ca74 Make this not crash on machines that are (a) 64 bit, or (b) have signed
chars by default (i.e., almost all machines). Makes it possible to save
the game. This has been broken since 4.4 and probably ever since the
FORTRAN -> C translation.

Crash reported by Petri Laakso in private mail.
2012-01-07 18:08:35 +00:00
jmcneill
7c0f99cad9 increase the max # of sigio handlers 2012-01-07 18:07:57 +00:00
chs
d331b836f8 define _UC_TLSBASE and use it to pass the TLS pointer to setcontext().
since there is no available space in ucontext_t on vax, pass the
TLS pointer on the stack referenced by the ucontext_t instead.
suggested by joerg.
2012-01-07 16:47:42 +00:00
skrll
53e460df81 Create device nodes for wscons, raid, wd, and sysmon.
PR/45783
2012-01-07 16:12:30 +00:00
skrll
222e907fa3 Allocate a major number for wd and sysmon_power
Part of PR/45783
2012-01-07 16:11:19 +00:00
pgoyette
7eb354b883 Modify the attach message for consistency with most other pci devices. 2012-01-07 15:59:46 +00:00
martin
f989e55d57 Do not force errno to EOVERFLOW when returning -1 from mktime or friends.
First, there are legitimate cases where we want to return -1 and errno == 0,
second, all paths go through time1() and/or time2sub() which explicitly
take care to set errno in cases of real overflows.
Should fix atf test failure on various ports in
lib/libc/time/t_mktime:timegm_epoch.
2012-01-07 15:19:35 +00:00
martin
f330f9aa31 ATF_REQUIRE_ERRNO() needs to be used with care:
- pass the expected errno to it, not "errno"
 - make sure to have errno set already before invoking the macro, i.e.
   do not use it to test errno changes as side effect of the asserted
   expression

Spotted by mlelstv, makes the epoch tests correctly fail on amd64 as
well.
2012-01-07 15:05:22 +00:00
phx
422b962b84 Fixed 12/24h mode. Bit 6 from the hours register indicates 12h mode.
Do not overwrite the control register (0x07) with random contents.
2012-01-07 15:03:11 +00:00
jmcneill
b2424d9a22 add support for elantech (v2) touchpads that report input pressure 2012-01-07 10:27:58 +00:00
mrg
bf795abb8d - reorder the SUBDIR list to have correct .WAIT-based dependancies.
- fix the handling of subdir additional LIBDPLIBS so they're present
  when <bsd.lib.mk> is loaded.  fixes missing shlib links relative to
  what the normal package does.  (noted by wiz.)
2012-01-07 02:07:58 +00:00
christos
acd0d5274c PR/45791: Nat Sloss: getnstr erase character weirdness
Fix processing of backspace erase char and char left.
2012-01-06 22:20:54 +00:00
skrll
10e01fe7ca s/aprint_verbose/aprint_debug/ 2012-01-06 22:14:04 +00:00
skrll
0b60181db2 Track if a page has an executable mapping and flush the icache (and
dcache) appropriately.

Fixes the lang/python26 build on my C3700 (PA8700) and chuq's J6700 with
PA8500.

Thanks to chuq for ideas and help with this.
2012-01-06 20:55:28 +00:00
riz
924cc21636 Don't use snprintf() to format, when run_program() will do it nicely on
its own.  Suggested by joerg.
2012-01-06 20:52:43 +00:00
reinoud
5c84446921 Split machdep.c into a MI part and a MD part. 2012-01-06 20:44:57 +00:00
riz
39a56bcacc Use getfslabelname() instead of trying to access fstypenames[] directly. 2012-01-06 20:41:28 +00:00
reinoud
f4334c5283 Enhance debugging printfs to also report the functionname 2012-01-06 20:40:51 +00:00
reinoud
a16d774cf6 printf()->thunk_printf() since its for debugging and should be printed outside
the kernel's printing system.
2012-01-06 20:39:42 +00:00
joerg
3a4dc84ff4 Don't use dangling elses. 2012-01-06 15:16:02 +00:00
cherry
44fb314fb7 Address those pesky DIAGNOSTIC messages. \n
Take a performance hit at fork() for not DTRT. \n
Note: Only applicable for kernels built with "options DIAGNOSTIC" \n
2012-01-06 15:15:27 +00:00
drochner
892b9bad57 split the ipsec.c source file into the pfkey part which is shared
with FAST_IPSEC and KAME specific IPSEC statistics
2012-01-06 14:21:16 +00:00
drochner
47a381e15e more IPSEC header cleanup: don't install unneeded headers to userland,
and remove some differences berween KAME and FAST_IPSEC
2012-01-06 14:17:10 +00:00
jmcneill
bd08415c40 support disk images >= 2GB 2012-01-06 14:11:55 +00:00
drochner
86deb82572 kill ipsec support which hasn't been working for a long time
(neither for KAME nor for FAST_IPSEC)
2012-01-06 14:08:08 +00:00
drochner
2a0c9a37dc pull in from FreeBSD rev.1.41: Narrow the use of user credentials.
(call pam_get_authtok() with caller's rights rather than user's)
2012-01-06 14:04:02 +00:00
macallan
85f54afb13 Forgot to commit this along with r128fb.c. Again. 2012-01-06 13:59:50 +00:00
jmcneill
a6b5cee522 i386 and x86_64 versions of this code are the same, rename to syscallemu_x86.c 2012-01-06 13:16:20 +00:00
reinoud
ee9d19b7a5 Cleanup stack allocation and freeing. This means the memory leak on lwp
destruction ought to be solved.
2012-01-06 12:54:59 +00:00
reinoud
5f34326ed3 Bump pager map default size since KVM is not that tight anymore 2012-01-06 12:53:07 +00:00
skrll
1b54bd1886 Implement lazy binding on hppa. rump_server needs it!?!?!
Mostly from OpenBSD.
2012-01-06 10:38:56 +00:00
skrll
7da1bc7d44 Log the icache sync only if it's done. 2012-01-06 09:41:17 +00:00
skrll
36da247fe2 Comment fix. 2012-01-06 09:12:25 +00:00
skrll
a308a2c3d2 No need to flush the icache/itlb for pool pages as they're never marked
executable.
2012-01-06 09:11:45 +00:00
skrll
5f229dee2b Flush the d-cache and i-cache to make sure the text area of the module
is dealt with properly.
2012-01-06 09:09:25 +00:00
skrll
f29475a086 Wrap a long line. 2012-01-06 08:54:05 +00:00
skrll
619a565a82 Add a KASSERT. 2012-01-06 08:48:43 +00:00
skrll
c00b3a100e More whitespace. 2012-01-06 08:38:11 +00:00
skrll
1fc41dd0ac Whitespace. hi perry. 2012-01-06 08:36:10 +00:00
skrll
d5c28a2a4b Group the prototypes. 2012-01-06 08:33:26 +00:00
skrll
e6cde8ed1f Simplify code a little. 2012-01-06 08:32:08 +00:00
skrll
853b477cb1 Style. 2012-01-06 08:03:16 +00:00
skrll
0ed9b731f5 Make pmap_check_alias static 2012-01-06 07:59:07 +00:00
christos
c9ef664a0f we want the label name not the fstype name. 2012-01-05 22:18:36 +00:00
macallan
e7e44ea620 turns out we can feed some radeons faster than they can process image uploads,
so make periodic stops to let the fifo drain a bit
now this works on my Blade 2500 with a 32MB XVR-100
2012-01-05 21:40:03 +00:00
christos
c4873f6cd0 eliminate logging variable from md code. 2012-01-05 21:32:35 +00:00
christos
4ea9182c55 eliminate useless booleans and use the file pointers as conditionals. 2012-01-05 21:29:24 +00:00
christos
c03a5a1e01 - add printflike and fix the broken formats
- make sure we don't exceed the number of partitions we have
2012-01-05 21:22:49 +00:00
christos
947502beba kill unused variable 2012-01-05 20:22:33 +00:00
christos
00d7813e05 use getfstypename from libutil. 2012-01-05 20:21:35 +00:00