211715 Commits

Author SHA1 Message Date
bouyer
931da08bf7 In some case, when an error is reported by the disk, the ahci controller
still reports a number of bytes transfered equal to bcount.
This then triggers a KASSERT in physio_biodone:
        if (done == todo)
		KASSERT(bp->b_error == 0);
Detect this case in wd(4) (so that the workaround works for other controllers
too if they have the same issue, or if the issue is with the drive)
and claim we didn't read/write anything.
2012-06-26 09:49:24 +00:00
macallan
cb9b109d3a do as sparc64 does and switch the default terminal type to wsvt25 2012-06-26 02:05:43 +00:00
macallan
6c4d0ceaeb switch to WSEMUL_VT100 to reduce differences with sparc64 and other wscons
and fb console using ports
WSEMUL_SUN is left in but commented out so whoever wants it back can have it
with minimal effort
2012-06-26 02:04:55 +00:00
abs
9e66e6d75e Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
2012-06-25 22:32:43 +00:00
mlelstv
1e662e8f89 it's really 32bit 2012-06-25 20:39:54 +00:00
mlelstv
001d5cd77f Make digests work also on big endian machines. 2012-06-25 20:34:26 +00:00
mlelstv
58d2e3b383 report luns returns a 32bit list length. 2012-06-25 20:33:56 +00:00
jnemeth
98f55161d5 PR/46612 - Lloyd Parkes -- add a terminating newline to error messages 2012-06-25 20:23:43 +00:00
martin
ef2efed249 Adjust to rfc6056 rename to portalgo 2012-06-25 19:25:07 +00:00
abs
e14333f8c1 Some fun in trying to work out what was broken with gcc-4.1 to
trigger the following warning when gcc-4.5 was silent:
  nd6_rtr.c: In function 'nd6_ra_input':
  nd6_rtr.c:788: warning: 'ext' may be used uninitialized in this function
Eventually determined that it was not unreasonable for gcc-4.1 to
bleat in this case as there is a nasty 'goto insert' which could
indeed have resulted in an uninitialised variable use. Yay gcc 4.1.
2012-06-25 17:25:29 +00:00
abs
5659783547 Whatever "-Wl,--fatal-warnings" get-out-of-jail-free card gcc-4.5 gets,
give the same treatment to gcc-4.1.
2012-06-25 16:48:55 +00:00
abs
315046f892 Casting an uint32_t pointer to (long *) may have been acceptable
in the eighties but that time has long past. Minimally invasive
fix using a temporary long variable, so while we can still overflow
at least we're less broken.
2012-06-25 16:47:03 +00:00
christos
f20c6fee98 rename rfc6056.h to portalgo.h 2012-06-25 15:30:16 +00:00
christos
84f52095ad rename rfc6056 -> portalgo, requested by yamt 2012-06-25 15:28:38 +00:00
christos
f0966fe6ed moved to portalgo.h 2012-06-25 14:47:55 +00:00
reinoud
67d81114c7 Implement dummy `cpu_mcontext_validate' to make it compile again. This
function needs to be implemented in the target secton one day for extra
security.
2012-06-25 14:43:54 +00:00
jnemeth
55657a2741 PR/46601 - Jim Bernard -- add support for rc_directories 2012-06-25 07:22:45 +00:00
isaki
9cdd524924 Rewrite fpu_int().
Especially, remove the special treatment when |x| < 1
because it forgets to consider FPCR round mode.
See PR/46627 for the detail.  Thanks Y.Sugahara for advice.
2012-06-25 04:52:23 +00:00
riastradh
360ba4cb54 Omit outdated cryptographic claims as noted in PR 44160.
Interested readers can follow the references or read Wikipedia; this
is the wrong place to explain cryptographic hash functions and give
security advice.
2012-06-25 02:32:12 +00:00
jym
23a2531c0e Enable the map/unmap recursive mapping functions for all Xen ports for
save/restore.

For an unknown reason (to me) Xen refuses to update VM translations
when the entry is pointing back to itself (which is precisely
what our recursive VM model does). So enable the functions that take
care of this, which will avoid all sort of memory corruption upon restore
leading domU to trample upon itself.

Save/restore works again for amd64. The occasional domU frontend corruption is
still present, but is harmless to dom0. Now we have a working shell and
ddb inside domU, that helps debugging a tiny bit.

XXX pull-up to -6.
2012-06-24 18:31:52 +00:00
alnsn
2db61b9b19 Add missing $NetBSD$. 2012-06-24 17:28:09 +00:00
mlelstv
da501d22d0 Add more debugging, fix filehandle usage, login negotiation and session
shutdown.
Add #ifdef'd code to send negotiation parameters in hex instead of base64,
so it works against older Linux targets.
2012-06-24 17:01:35 +00:00
kardel
b01c74c514 PR/44647: commit fix proposed by Takahiro HAYASHI
verified to be working in -current and also helps NetBSD-6 BETA2
2012-06-24 16:24:34 +00:00
christos
3d365e7447 fix old style definitions; XXX: gcc should have picked them up but it did not. 2012-06-24 15:26:02 +00:00
jym
39b8d4bd9a Update comment: we stopped using xcall to sync PTP between CPUs.
pmap_kpm_sync_xcall => xen_kpm_sync
2012-06-24 13:56:10 +00:00
mlelstv
af909e1586 use first successful connection to a ISNS server 2012-06-24 13:08:38 +00:00
drochner
2c8471c744 stopgap fix for recursive locking on suspend/resume
(This can be simplified imo because interrupts should be disabled
at this point.)
2012-06-24 10:06:34 +00:00
jdc
e7e6a0e935 Note that the PHY instance changes when a MII transceiver is connected. 2012-06-24 09:38:54 +00:00
jdc
b67baf6e3e PR kern/46424
Revert the part of revision 1.77 that altered the PHY attachment order.
2012-06-24 09:37:28 +00:00
kiyohara
41f4d38cf3 Flush current empty descriptor in emac_rxeob_intr(). 2012-06-24 08:39:39 +00:00
riastradh
3c457d56bb Take the kernel lock in atapibusdetach just like atapibuschilddet.
Fixes kassert in scsipi_lookup_periph when I press the power button
on one of my laptops (and maybe another one) to power it off.

ok mrg
2012-06-24 07:48:01 +00:00
wiz
0d00d3b578 Bump date for previous. 2012-06-23 23:41:25 +00:00
jdf
8efbef4b63 Clarify use of the union option for mount, as proposed in PR 45919.
Text proposed by apb.
2012-06-23 23:17:46 +00:00
jdf
17ec07bc2d * Remove spurious period in name section
* remove spurious argument to Nm macro
Patch supplied by Bug Hunting.
2012-06-23 20:49:14 +00:00
wiz
e04232a5fa Remove superfluous word. 2012-06-23 20:29:06 +00:00
abs
796b9786c8 Document DIOCTUR (test unit ready) 2012-06-23 19:14:34 +00:00
martin
6817543049 Do not assign to a const pointer, but set the value of the target variable
instead. Makes sysinst at least start up again.
2012-06-23 17:49:58 +00:00
jdc
e6facd19bf Fix multicast filter set up: we need to byte-swap the hash before writing to
the chip.  While here, remove open-coded copy of ether_crc32_le().
2012-06-23 17:21:12 +00:00
christos
a9706a560c Trying to print a function pointer as a string is likely to cause tears.
While here, don't match on the unit either
2012-06-23 14:06:02 +00:00
minoura
37abe35e51 Change to the 2-clauses license. 2012-06-23 08:48:15 +00:00
dholland
069a188b26 "appeared in", not "appeared on". 2012-06-23 05:47:50 +00:00
christos
deb57840fd new ip6 sysctls 2012-06-23 03:16:03 +00:00
christos
443eb0a284 4 new sysctls to avoid ipv6 DoS attacks from OpenBSD 2012-06-23 03:13:41 +00:00
wiz
2c4ba053cf Replace nonexistant Lx macro. Use full NetBSD version for Nx. 2012-06-22 22:54:26 +00:00
wiz
0355356981 Fix macro. Replace another one (there is no .Lx). Use full NetBSD version. 2012-06-22 22:54:09 +00:00
wiz
10258cb7fe Remove trailing whitespace. Sort errors. Bump date for previous. 2012-06-22 22:49:03 +00:00
wiz
efd86e84be Remove trailing whitespace. Use more markup. Bump date for previous. 2012-06-22 22:48:37 +00:00
khorben
f4b7eefb95 Disable azalia(4) now that hdaudio(4) was switched on
ok bouyer@
2012-06-22 22:38:39 +00:00
abs
04c1553d52 - Replace the CD_NAME definition with a CD_NAMES comma separate list,
the default remains "cd0a", but i386 sets "cd0a", "mcd0a" while vax
  takes "cd0a", "racd0a"
- Add get_default_cdrom() to disks.c, which is called in init(). This
  checks the contents of hw.disknames against CD_NAMES. The first one
  found (minus partition letter) is picked, otherwise the first entry
  in CD_NAMES is used
The primary beneficiary is vax systems with an MSCP but no SCSI CD
drive, which now default to (a valid) racd0a rather than an invalid
cd0a.  The obvious example being simh-vax
2012-06-22 20:54:39 +00:00
abs
351c7b5d8f - Add racd* devices for MSCP based CD-ROM drives (RRD40s), as opposed
to mixing them in with the ra* disks, modelled loosely on how MSCP
  rx* floppies are handled
- racd* defaults to the same single iso9660 partition as cd*
- Cleanup config option handling slightly so any combination of ra*,
  rx* (and now raccd*) can be defined without build errors.
- Avoid ugly printf when disks have all zero disklabel magic number
2012-06-22 20:42:22 +00:00