215694 Commits

Author SHA1 Message Date
christos
353430cc63 fix messages. 2013-01-06 02:22:50 +00:00
christos
a2757a6074 add the udp test. 2013-01-06 00:36:29 +00:00
christos
436fdc82bd new udp test 2013-01-06 00:35:22 +00:00
wiz
4bdac686eb Sort options in man page SYNOPSIS and sync usage with it.
Bump date.
2013-01-06 00:19:13 +00:00
christos
0c1215940c PR/47408: Anthony Mallet: sendto(2) issue with IPv6 UDP datagrams
- don't connect when the local port is 0, just set the local port number.
- remove redundant assignment
XXX: pullup-6
2013-01-06 00:17:13 +00:00
christos
38f4ff5bf5 fix debug variables.
- include opt_usb.h in usb.h so that USB_DEBUG gets set properly in it.
- normalize and sort debugging variables
2013-01-05 23:34:16 +00:00
dsl
cbb941ff11 The Intel and AMD docs (more or less) agree on how the cpuid 'extended
family' and 'extended model' bits are used to create larger values
  than the original 16bit value allowed for.
Calculate and save these values 'up-front' and use them throughout.
Untangle the (backwards) nested switch statement for amd 'model 15' cpus.
Works as badly as ever on my i7.
2013-01-05 21:16:22 +00:00
jakllsch
74dad3229c Add driver for BCM2835 SPI0 controller. 2013-01-05 20:31:23 +00:00
jakllsch
605407517d Add driver for Broadcom Serial Control (I²C) master on BCM2835. 2013-01-05 20:15:17 +00:00
jakllsch
4f7412af4d Add a function for adjusting the pin muxer in the GPIO block.
(This should probably be revisited later.)
2013-01-05 19:55:18 +00:00
jakllsch
1dc05e277c Whitespace style adjustments. 2013-01-05 19:47:17 +00:00
jakllsch
f8c023710e The BSC (I²C) interrupt is actually shared between (at least) the BSC0 and
BSC1 units, so don't name it as belonging to only BSC0.
2013-01-05 19:44:44 +00:00
tsutsui
26ab297f8a Note luna68k bootloader. 2013-01-05 18:22:18 +00:00
tsutsui
df6945b89f First cut at NetBSD/luna68k native bootloader.
Based on 4.4BSD-Lite2/luna68k "Stinger" loader revision "Phase-31"
 http://svnweb.freebsd.org/csrg/sys/luna68k/stand/
and MI libsa glue stuff are taken from hp300 etc.

Tested on LUNA-I and old DK315C SCSI disk drive.

LUNA's monitor PROM can load only an a.out binary in 4.3BSD FFS partition
(i.e. created by "newfs -O 0") on disks with OMRON's UniOS disklabel,
but now we can load an ELF kernel in root partition via this bootloader.
(See luna68k/disksubr.c for details of UniOS label)

TODO:
 - LUNA-II support (check 68040 to adjust cpuspeed for DELAY())
 - secondary SCSI support for LUNA-II
 - netboot via le(4) (should be trivial)
 - support boot options on bootloader prompt
 - bootinfo (passing info about booted device and kernel symbols)
 - support "press return to boot now, any other key for boot menu" method
   like x86 bootloader (needs cnscan() like functions)
 - tapeboot (anyone wants it?)
2013-01-05 17:44:24 +00:00
dsl
cd90dce7d6 If the IOC_CPU_UCODE_GET_VERSION fails with ENOTTY, try issuing the
request that the amd64 kernel understands.
2013-01-05 16:38:12 +00:00
dsl
8e616b356f Add definitions so that the i386 cpuctl can issue IOC_CPU_UCODE_GET_VERSION
on amd64 kernels.
XXX This ioctl is horrid - writes into an unsized userspace buffer.
2013-01-05 16:36:38 +00:00
christos
79e7092a0d Fix bucket and chain counts on nat lists from Geoff Adams:
The problem was that ipf_nat_delete wasn't swapping inbound and
outbound hash codes for inbound NAT entries, so it was essentially
always looking in the wrong buckets in those cases. But because of
the way the linked list works, I don't think any NAT entries were
actually leaked. But since all the bucket counters and chain count
were getting messed up, things did start to go bad after a while.
(New NAT entries wouldn't be created, for instance.)

The fix is in the ipf_nat_delete function, itself; the other changes
are a slight refactoring of one method and adding some comments
that helped me figure out how the linked list with pointer-back-pointers
worked.

Also note that I haven't looked through the logic in ipf_nat_rehash;
it's likely that that might miss some things for the same reason.

I also haven't yet looked into the ipf_nat_newrdr problem with mappings
already existing. That'll be next.
2013-01-05 16:34:43 +00:00
dsl
ef07d271f5 Fix x86_identify() for amd64 2013-01-05 15:33:00 +00:00
dsl
7d87936626 Change the i386 asm x86_identify() so it returns a value instead of writing
into global data.
Fix a stack alignment fubar that would cause a crash on a cirix 486.
Refactor identify code to common setup for normal identify and ucode
identify - which was missing a memset().
2013-01-05 15:27:45 +00:00
christos
bd9e6f322e document show panic 2013-01-05 15:26:59 +00:00
christos
cedbce7adf Add "show panic" that shows the current panic string. two ports had it, and
it could be easily made MI.
2013-01-05 15:23:27 +00:00
christos
bd1c8509d7 remove show panic cmd 2013-01-05 15:06:51 +00:00
christos
1c7fafedde remove panic cmd 2013-01-05 15:04:00 +00:00
christos
df24e3a7e7 this used the wrong cpp variable for debugging so it does not need opt_usb.h
after all.
2013-01-05 14:54:06 +00:00
apb
aa3786b9b6 Change several int variables to size_t, ssize_t, or ptrdiff_t.
This should fix the bug described in CVE-2012-5667 when an input
line is so long that its length cannot be stored in an int
variable.

This change to NetBSD's version of GNU grep 2.5.1 (licenced under
GPLv2) was made without direct reference to any code licenced
under GPLv3.

Thanks to Ignatios Souvatzis for looking at GPLv3-derived
patches and describing the problem in general terms.  Thanks to
pkgsrc/devel/coccinelle for helping me find places where int
variables were used to store the results from pointer arithmetic
or strlen().  Thanks to Martin Husemann for testing.
2013-01-05 09:40:15 +00:00
martin
eaad654085 Remove non existent include of opt_uatp_debug.h and unused variable
(if !UATP_DEBUG).
2013-01-05 08:01:13 +00:00
christos
efbc8c83c1 add include "opt_usb.h" where needed. 2013-01-05 01:32:50 +00:00
christos
3039e3a5a7 - need opt_usb.h if depending on USB_DEBUG
- remove trailing whitespace
- add missing KERNEL_RCSID
2013-01-05 01:30:15 +00:00
jakllsch
3e230313d1 Don't leak condvars and mutexes, even if they are on the stack.
Fixes LOCKDEBUG asserts when a mutex/condvar is initialized at the same
stack address as a previous initialization.  We probably want to revisit
the transfer structure lifecyle at some point in the future.
2013-01-04 22:23:06 +00:00
jakllsch
2db6832d7c Use config_stdsubmatch() to enable (optional) use of locators on obio devices. 2013-01-04 21:00:23 +00:00
christos
ae7c06ea58 fix quoting. 2013-01-04 17:33:01 +00:00
christos
db1b387dc9 bring return value fixes from head. 2013-01-04 17:03:13 +00:00
christos
b060521580 fix the version string manually.
new sentence, new line.
2013-01-04 15:37:53 +00:00
christos
1c5b5b415c fix version detection 2013-01-04 15:34:47 +00:00
para
493b8304e5 fix a lock order reversal during global boundary tag refill.
thanks to chuq@
xxx: request pullup
2013-01-04 08:28:38 +00:00
wiz
e17e68c7fd Use Lk for links. 2013-01-04 07:27:57 +00:00
christos
9fe511f6ca missed libmagic bump 2013-01-04 04:23:17 +00:00
christos
fed1477544 PR/47396: Steffen: mail(1) may falsely use quoted-printable for files with
embedded NULs
2013-01-04 01:54:55 +00:00
christos
ec0bd15985 PR/47395: Steffen: mail(1) unnecessarily uses base64 if a CR without a LF is seen 2013-01-04 01:43:59 +00:00
christos
1decb32e9b Explain why we did not follow the standard.
Worth revisiting the proposal:
http://marc.info/?l=netbsd-tech-userlevel&m=110019726222841
2013-01-04 01:21:45 +00:00
christos
f5bc9f2162 magic bug. 2013-01-04 00:49:44 +00:00
christos
46078508f1 bump libmagic 2013-01-03 23:20:28 +00:00
christos
f731f39bd1 new config, bump lib 2013-01-03 23:18:10 +00:00
christos
4a8570ca97 mention new file 2013-01-03 23:15:05 +00:00
christos
20d96732d4 merge changes 2013-01-03 23:05:35 +00:00
christos
84d8cf07ec make it work if $1 != . 2013-01-03 23:04:52 +00:00
dsl
804a1dd71e Add some missing bit definitions to CPUID2 and those for XCR0.
Taken from the August 2012 Intel SDM (intel_x86_325462.pdf).
Split all the snprintb() format strings to make them (almost) readable.
Fix CPUID_AMD_FLAGS4 to not try to print bits \41 and \42.
2013-01-03 23:03:57 +00:00
jakllsch
19bc285103 Add driver for TI CPSW Ethernet on TI AM335x SoCs.
Portions of this driver are derived from FreeBSD's cpsw(4).

Developed and tested on a BeagleBone.
2013-01-03 21:13:26 +00:00
dsl
a34e002f26 Spell cprng_fast() properly 2013-01-03 17:12:05 +00:00
dsl
278835249a Use cprgn_fast() not rnd_extract_data().
The latter isn't in any header files any more.
2013-01-03 16:42:55 +00:00