Commit Graph

211124 Commits

Author SHA1 Message Date
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
christos
3fd38f84eb If we are asked to step on ptid(-1,0,0), then step on our inferior_thread
instead, which is the main thread instead of the currently executing thread
which is not what we want, since we've been running and nother thread might
have just started.
2012-04-21 00:16:35 +00:00
rmind
893357500f Mention support for 256 CPUs on amd64. 2012-04-20 22:43:19 +00:00
rmind
0c79472223 - Convert x86 MD code, mainly pmap(9) e.g. TLB shootdown code, to use
kcpuset(9) and thus replace hardcoded CPU bitmasks.  This removes the
  limitation of maximum CPUs.

- Support up to 256 CPUs on amd64 architecture by default.

Bug fixes, improvements, completion of Xen part and testing on 64-core
AMD Opteron(tm) Processor 6282 SE (also, as Xen HVM domU with 128 CPUs)
by Manuel Bouyer.
2012-04-20 22:23:24 +00:00
tls
848fd25c3d Fix a bug and a compilation problem. Bug: spin mutexes don't have owners,
so KASSERT(!mutex_owned()) shouldn't be used to assert that the current
LWP does not have the mutex.  Compilation problem: explicitly include
sys/mutex.h from rnd.h so evbarm builds again.
2012-04-20 21:57:33 +00:00
bouyer
976962ad8c Add a bustype_async_event_xfer_mode() callback to scsipi_bustype (which can
be NULL), so that transport-specific details of transfer mode setting/printing
can be handled more easily.
Move scsipi_async_event_xfer_mode() and scsipi_print_xfer_mode() to
scsi_base.c and split in parallel scsi and FC/SAS parts.
size of struct scsipi_bustype has changed, welcome to 6.99.5
2012-04-20 20:23:20 +00:00
christos
e0f6e43eb5 add __PRETTY_FUNCTION__ 2012-04-20 18:35:28 +00:00
jym
e7ffd7b1f7 PSL_AC is user-settable. 2012-04-20 18:28:43 +00:00
christos
0bcf0d6f44 PR/46360: YAMAMOTO Takashi: Restore NetBSD-5 compatibility with putenv()
copying the passed string (which is not ToG compliant), instead of using
it directly in the environment arrat as it should. Needs to be pulled up
to NetBSd-6.
2012-04-20 17:31:29 +00:00
joerg
2839b8fcc3 Do not wrap other header files with extern "C". 2012-04-20 16:20:45 +00:00
matt
ca66ac7ad4 Don't use the current value of maccfg2. 2012-04-20 13:51:48 +00:00
adam
a92b391e5e Fix building tools 2012-04-20 13:28:27 +00:00
christos
7c8eec143a fix cast in local macro 2012-04-20 13:20:39 +00:00
jruoho
71224831e0 Add few unit tests for mlock(2), including a case for PR kern/44788. 2012-04-20 12:11:29 +00:00
jruoho
84c32e5f2a For now, skip module tests if modctl(8) fails either with EPERM or ENOSYS. 2012-04-20 05:41:25 +00:00
sjg
7a49f6a73f Fix some typos in/around ParseGmakeExport.
Remove the suppresssion of duplicate entries in .MAKE.MAKEFILES
2012-04-20 05:33:41 +00:00
jruoho
c69613ea1e Close all file descriptors before trying to reason about the number of open
descriptors. Should fix the test failures reported on current users.
2012-04-20 05:15:11 +00:00
christos
fe0d6a4e66 one more cast 2012-04-20 02:07:43 +00:00
jym
c5252d3225 ATF test for SIGBUS => BUS_ADRALN (invalid address alignment).
That one is tedious to test under x86: alignment exceptions are
not reported by this architecture unless you ask for them explicitely (by
setting the PSL_AC bit). The brokenness does not end there: %cr2 should
contain the address where the unaligned access occured, alas, it does not.

I am not aware of other architectures where this could happen. Still, my
knowledge is limited; if there is one, feel free to send me a mail and I
will update the test accordingly.

Adding insult to injury, this test can fail in various funny ways with VMs:
- under x86 QEMU, no trap() happens. As ring 3 code stays almost untouched by
QEMU VMM, I suppose the exception can only be triggered when the host
itself is capable of catching unaligned accesses.
- under Virtual Box with HVM support, i386 works fine, but amd64 fails with a
SIGILL (Illegal instruction) that happens right before entering the
signal handler. No idea why, and trying to debug it with gdb freezes the VM
(including ddb breaks).

Anyway, tested with:
- i386: P4 host, anita, Virtual Box HVM (Mac OS X)
- amd64: anita, Virtual Box HVM (Mac OS X)

XXX I would appreciate if someone could test it under a real amd64 host with
an up-to-date kernel, so I can reasonably assume that the culprit is
Virtual Box and not our amd64 port (my test machine being off line
I cannot do it myself). Results from other arches would be a plus too.

Initial issue reported by Nicolas Joly on port-amd64. Thanks!
2012-04-20 00:40:31 +00:00
matt
f90c9c2dab Read maccfg1/maccfg2/ecntrl so we can preserve bits we don't change (like
GMII mode).
2012-04-19 21:32:01 +00:00
drochner
c89bad5193 pull in upstream SVN rev. 22439:
check for potentially exploitable overflows in asn1_d2i_read_bio
BUF_mem_grow and BUF_mem_grow_clean. Refuse attempts to shrink buffer
in CRYPTO_realloc_clean. (CVE-2012-2110)
2012-04-19 20:20:56 +00:00
wiz
d136758f88 Correct option name for hdaudio debugging.
Reported by Dave Tyson in PR 46357.
2012-04-19 20:20:34 +00:00
wiz
9317462bbf Remove trailing whitespace. 2012-04-19 20:13:48 +00:00