Commit Graph

207993 Commits

Author SHA1 Message Date
jmcneill cdbdbc76a5 define __HAVE_OLD_DISKLABEL on i386 2012-01-08 18:06:00 +00:00
jmcneill 4623508cab regen 2012-01-08 18:05:43 +00:00
jmcneill 9e1caf3a2d disklabel.h: handle __HAVE_OLD_DISKLABEL. while here, I noticed someone changed param.h without updating genheaders.h, so catch up. 2012-01-08 18:05:02 +00:00
phx f66849eb53 Set the extclk for NH230 to 33000000Hz.
Prepare a synosetup() function which should set a different extclk for
the 400MHz models, as soon as we find a method to check for them.
2012-01-08 14:53:54 +00:00
tron f834547595 Revert last change. The extra while loop intruced by the macro changes
causes an end-less loop in ci(1) which uses "break" inside one of the
macros.

"/etc/security" will now no longer fill up "/" (or "/var" depending on
file-system layout).
2012-01-08 13:57:31 +00:00
dholland eb3306a822 Sentences should verbs. From Snader_LB 2012-01-08 04:01:12 +00:00
christos ecad436e9c work for both X11R6 and X11R7 2012-01-08 02:32:00 +00:00
christos 56ed22796c this is only valid for X11R6; we never had a.out X11R7 2012-01-08 02:24:32 +00:00
dholland baa108c64c Note adventure(6)'s new save format and (the important bit) recommend
loading and re-saving any extant save files.
2012-01-07 22:31:07 +00:00
dholland c99eaa0a43 Redo save file handling. The old save files were unportable, had no
magic number or versioning, relied on random(3) never changing to a
different implementation, and were also saving pointers to disk and
reading them back again. It *looks* as if the pointers thus loaded
were reset before being used, but it's not particularly clear as the
main loop of this thing is goto-based FORTRAN translated lightly to C.
I've changed the logic to null these pointers instead of saving and
loading them, and things seem to still work.

The new save files have a header, support versioning, write only sized
types in network byte order, and for the toy encryption to discourage
cheating do something self-contained instead of using random(3) as a
stream cipher.

Because between the original import from 4.4 until earlier today
trying to save would result in SIGSEGV on most platforms, it's
unlikely anyone has a save file, but just in case (since the pointer
issue appears to be nonlethal) I've kept compat code for old save
files.
2012-01-07 22:23:16 +00:00
phx 7f7d4934d7 Configure pcf8563rtc for nhnas models. 2012-01-07 21:03:05 +00:00
phx 3828823874 Add direct config support. 2012-01-07 21:02:15 +00:00
phx 57fa1ff5e0 Disable flash device unless nor(4) is not finished.
Add pcf8563rtc(4) for NH230/231.
2012-01-07 20:51:23 +00:00
reinoud 92531faa53 Move target/${USERMODE_CPU} to target/${MACHINE_CPU} to more clearly
distinguish between CPU specific ones and machine specific ones.
2012-01-07 20:44:41 +00:00
christos 7c206e7387 make standalone 2012-01-07 20:20:22 +00:00
christos ba21b5b920 u_intN -> uintN
make standalone
2012-01-07 20:20:12 +00:00
reinoud ec74fc0746 Remove unused thunk_sdl.c file 2012-01-07 20:12:07 +00:00
reinoud a1d9faf5ca Add AMD64 target for NetBSD/usermode next to i386 and reorganize source tree
to have port specific stuff in arch/usermode/target/<port>/
2012-01-07 20:07:00 +00:00
phx 8e46b16673 NH230 PPCBoot configures the memory boundary registers for 128MB, although
the board has only 64MB. Fix that.
2012-01-07 19:57:49 +00:00
christos fbaf57ceb3 According to TOG, <aio.h> is a standalone header. 2012-01-07 19:48:19 +00:00
reinoud 71752b9071 Cleanup trap debug messages 2012-01-07 19:45:14 +00:00
reinoud ad1edb6e92 Change prototype of logical page number in pv_lookop and pv_enter and add
diagnostic checks to check for out-of-bounds.
2012-01-07 19:44:13 +00:00
reinoud abf38a5fd4 Boost symtab space for amd64 2012-01-07 19:43:06 +00:00
christos 4e3ddc38b5 only deal with X11R7 now. 2012-01-07 18:54:30 +00:00
christos de523f0873 use strspct. 2012-01-07 18:45:13 +00:00
christos 4a6887196f add strspct 2012-01-07 18:42:38 +00:00
christos 423a6f5ef0 strspct 2012-01-07 18:41:14 +00:00
christos 89cf253562 - add strspct
- be explicit about string not being NUL terminated if bufsiz == 0
2012-01-07 18:40:55 +00:00
jmcneill 01a67a2dc9 support multiple disk images (pass multiple disk=<path> parameters on the
command-line). while changing command-line params, rename tap= option to
net=
2012-01-07 18:10:18 +00:00
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