210946 Commits

Author SHA1 Message Date
christos
0c647c7841 remove obsolete comment. 2012-04-23 20:54:40 +00:00
christos
925babedcc fix the USE_KERBEROS=no USE_PAM=no build. 2012-04-23 18:27:15 +00:00
jym
e1a27e5df5 Note that si_addr may be inaccurate on certain architectures.
Example: i386/amd64 alignement fault can drive to SIGBUS (when configured
so by process), however the faulty address returned by the CPU is not
reliable.

Bump date.
2012-04-23 17:44:39 +00:00
drochner
de54f242ed everywhere else it is assumed that the filesystem block size fits into
a 32-bit "int" -- do the cast to quell a compiler warning in a more
sensible way
2012-04-23 17:19:00 +00:00
martin
874f5e2394 Report faulting data address with SIGBUS (instead of the faulting instruction) 2012-04-23 15:09:13 +00:00
martin
c06a8560ae Revert previous, si_addr is expected to be the faulting *data* address
(mmm, consistent standards).
Add a few tweaks to prevent the compiler's optimizer outsmarting the test.
2012-04-23 15:07:56 +00:00
christos
dbd9f683e7 centralize error function processing. 2012-04-23 15:07:02 +00:00
macallan
35c5bb4baa initialize a variable before using it
found by uebayasi@
now why did gcc warn him on x86 but not me on macppc?
2012-04-23 11:51:56 +00:00
skrll
5d5e04ddd5 Pass the trap address in ksi_addr without privilege bits.
Previously GDB would get confused by the trap address given when hitting
the _rtld_debug_state breakpoint.
2012-04-23 11:25:03 +00:00
martin
6192dc18bf trimusername (which does not exist) probably was meant to be called
trimloginname (which does exist, at least)
2012-04-23 09:27:36 +00:00
isaki
778479cda0 Print a message before enabling interrupts. It's helpful to
know when a kernel was hung up.  Suggested by tsutsui@,
the message is derived from arch/sun3/sun3/autoconf.c.
2012-04-23 05:31:31 +00:00
christos
0dfe19f4d3 - fix non pam build
- merge duplicated error code
- fix opt struct leak
2012-04-22 23:43:51 +00:00
christos
e694c7c9d0 make krb5 compile again. XXX: one function left that is deprecated, what's
the new equivalent?
2012-04-22 23:26:19 +00:00
wiz
7ee504a202 Sync with reality, From Abhinav Upadhyay in private mail. 2012-04-22 21:29:27 +00:00
wiz
1c81341419 Add HISTORY section. From Abhinav Upadhyay in private mail. 2012-04-22 21:27:07 +00:00
christos
e32ea54e40 From Bob Lee [glee at force10networks dot com], Preserve the have fpu context
bit for compat_16 signals, because the old 1.6 context does not deal with the
fpu.
2012-04-22 20:36:52 +00:00
dholland
91ee0b0011 Update NAME (to include msk, mskc) and clarify checksum offload statements
based on PR 36580.
2012-04-22 19:42:23 +00:00
rmind
999d4270af i686_mtrr_init_first: handle the case when there are no variable-size MTRR
registers available (i686_mtrr_vcnt == 0).
2012-04-22 18:59:41 +00:00
christos
0758b27308 don't include <sys/rnd.h> before we define cn_trap, because it might bring
in <sys/systm.h>
2012-04-22 16:00:45 +00:00
christos
37a2b6f0c2 use setenv so that we don't leak memory. 2012-04-22 15:55:41 +00:00
christos
7006e67fd8 Bring in fix from:
http://gcc.gnu.org/bugzilla/show_bug.cgi?format=multiple&id=43804
Allows libmudflap to compile on m68k:

/usr/src/external/gpl3/gcc/dist/libmudflap/mf-hooks1.c: In function
'__mf_wrap_alloca_indirect':
/usr/src/external/gpl3/gcc/dist/libmudflap/mf-hooks1.c:492:1: error:
insn does not satisfy its constraints:
(insn 360 142 68 13
/usr/src/external/gpl3/gcc/dist/libmudflap/mf-impl.h:257 (set (reg/f:SI
6 %d6 [159])
        (const:SI (unspec:SI [
                    (symbol_ref:SI ("__mf_state_1") [flags 0x50]
<var_decl 0x7f7ff7304d20 __mf_state_1>)
                     (const_int 1 [0x1])
                 ] 6))) 36 {*movsi_m68k}
(nil))/usr/src/external/gpl3/gcc/dist/libmudflap/mf-hooks1.c:492:1:
internal compiler error: in reload_cse_simplify_operands, at postreload.c:396
2012-04-22 15:15:46 +00:00
khorben
1ffeba3ee9 Implemented extra keys as found on Sun Type 7 USB keyboards, and
according to the documentation mentioned above in this file.

"works here" macallan@, myself
2012-04-22 14:32:08 +00:00
khorben
cc841e7557 Also lookup and be able to lit the LED for the Compose key. Seems to
require additional modifications to function properly in X though.

No objection on current-users@
2012-04-22 14:25:14 +00:00
khorben
283a1bc555 Convert keycodes 0x7f, 0x80 and 0x81 to PMF events VOLUME_TOGGLE,
VOLUME_UP and VOLUME_DOWN as observed on my Sun Type 7 USB keyboard, and
according to the documentation mentioned above.

"works here" macallan@ and myself
2012-04-22 14:19:24 +00:00
khorben
70d954e8fe Indent the trtab_gdium_fn array like surrounding variables.
No objection on current-users@
2012-04-22 14:13:32 +00:00
pgoyette
6ecf19e095 Identify SMBus block-mode operations.
XXX Nothing in the kernel issues block-mode commands, and each i2c bus
XXX driver needs its own support for the block-mode operations.
2012-04-22 14:10:36 +00:00
khorben
58cd88d402 Fixed a potential out-of-bounds array access when translating keycodes
for the gdium keyboard.

Reviewed by macallan@
2012-04-22 14:04:45 +00:00
rkujawa
ac50450e2c Fix typo 2012-04-22 12:23:22 +00:00
wiz
6ffe8aa8a8 Remove duplicate Pp. Remove trailing whitespace. Sort sections. 2012-04-22 10:23:39 +00:00
wiz
cc7b4e18c8 Sort sections. Remove superfluous Ns macro. 2012-04-22 10:22:08 +00:00
wiz
c090f09873 Sort SEE ALSO; new sentence, new line. 2012-04-22 10:19:15 +00:00
wiz
c5308616ec Sort sections, sort SEE ALSO. 2012-04-22 10:19:00 +00:00
wiz
1cc71411f8 Sort SEE ALSO. 2012-04-22 10:13:52 +00:00
martin
51f1919a26 Do not compare si_addr (address of faulting instruction) against the
unaligned data address causing the fault - this will always fail.
If anybody knows a portable way to get the data address involved in the
fault, please fix the test case as originally intended.
2012-04-22 08:52:26 +00:00
tsutsui
f5e4f3d0bd Fix typo in comments. 2012-04-22 07:23:42 +00:00
jruoho
24d5434adb As in Linux, prevent BIOS from trying to map addresses beyond ULONG_MAX. 2012-04-22 06:33:04 +00:00
tsutsui
e70f6aa789 Add two optional variables for liveimage/installimage builds:
---
	MBR_BOOTCODE
		optional MBR bootcode which should be installed by fdisk(8)
		(default: empty)
		- specified MBR_BOOTCODE must exist in ${DESTDIR}/usr/mdec
		- if MBR_BOOTCODE is not specified,
		  MBR_DEFAULT_BOOTCODE (default: mbr) will be used
		  if the target ${MACHINE} has the one in /usr/mdec

	INSTALLBOOTOPTIONS
		options passed to installboot(8), e.g., -o console=com0
		(default: empty)
---
Proposed by Brook Milligan on current-users@:
http://mail-index.NetBSD.org/current-users/2012/04/16/msg019892.html

Also make USE_MBR work on ${MACHINE}s which don't have the default
/usr/mdec/mbr bootcode. (no such port has the liveimage target yet though)

XXX: tools fdisk(8) implicitly uses host's /usr/mdec/mbr for the default
XXX: bootcode even for non-x86 targets if host is x86
2012-04-22 05:24:39 +00:00
uebayasi
c0c935250f Consistent declaration. 2012-04-22 03:57:00 +00:00
uebayasi
eabd60ab7f Add newline at end of file; fix ALL build for me. 2012-04-22 03:47:53 +00:00
jakllsch
d4e00d5a6c Use usbd_get_device_descriptor() instead of groping for it directly
in the usbd_device struct.
2012-04-22 01:31:48 +00:00
rmind
4b8ea8ed96 Improve the assert message. 2012-04-21 22:38:25 +00:00
rmind
5cf69dcee9 - pmap_tlb_shootdown: do not overwrite tp_cpumask with pm_cpus, but merge
like pm_kernel_cpus.  Remove unecessary intersection with kcpuset_running.
  Do not reset tp_userpmap if pmap_kernel().
- Remove pmap_tlb_mailbox_t wrapping, which is pointless after recent changes.
- pmap_tlb_invalidate, pmap_tlb_intr: constify for packet structure.
2012-04-21 22:22:48 +00:00
christos
243696ae20 Alignment fault traps push the error code automatically, so don't use ZTRAP! 2012-04-21 18:52:36 +00:00
roy
27c1dc0dc5 Fix build 2012-04-21 14:39:35 +00:00
roy
258cf0abec Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
2012-04-21 12:27:24 +00:00
blymn
35253f4b16 Fix build break if curses is built without wide char support 2012-04-21 11:33:16 +00:00
blymn
0f995dfd31 Remove trailing whitespace 2012-04-21 11:31:59 +00:00
veego
ed1ef0512a Add usr.bin to the exclude list for make includes.
This is no longer needed after flex was moved to the external framework.
2012-04-21 08:28:00 +00:00
jruoho
2ef8e9d811 Avoid harmless compiler (integer) warnings. 2012-04-21 01:15:13 +00:00
manu
ae04a0ba81 Do not set PUFFS_KFLAG_CACHE_FS_TTL for PUFFS tests 2012-04-21 01:03:46 +00:00