256951 Commits

Author SHA1 Message Date
mrg
a14db5ae62 switch an assert in backtrace to an error return. 2018-02-28 20:11:09 +00:00
snj
fdc61e1224 vax folks probably aren't the _most_ interested in current developments,
but i think most of them probably know, 16 years later, that we switched
from a.out to ELF.
2018-02-28 20:09:29 +00:00
flxd
1c543a3199 Cosmetic printf/aprint changes.
Add missing return statement after failed pci_intr_establish().
2018-02-28 18:03:48 +00:00
flxd
3dd95c0733 Cosmetic fix for the Physical Address Registers PAR0 to PAR5. 2018-02-28 17:13:44 +00:00
ozaki-r
372b74399c Remove an obsolete assertion too (fix build)
bif_refs was removed when migrated to use psref.
2018-02-28 13:12:53 +00:00
maxv
f3215192fd add missing static 2018-02-28 11:29:14 +00:00
maxv
17614cda2e Remove unused ipsec_private.h includes. 2018-02-28 11:23:24 +00:00
maxv
d81439a881 Remove unused macros, and while here style. 2018-02-28 11:19:49 +00:00
maxv
f05cdaa5c6 (just forgot to commit this file, the message was)
Remove duplicate IPSEC_STATINC(IPSEC_STAT_IN_POLVIO), ipsec_in_reject
already increases it. IPSEC6_STATINC is now unused, so remove it too.
2018-02-28 11:10:22 +00:00
maxv
e9a0140794 Remove duplicate IPSEC_STATINC(IPSEC_STAT_IN_POLVIO), ipsec_in_reject
already increases it. IPSEC6_STATINC is now unused, so remove it too.
2018-02-28 11:09:03 +00:00
ozaki-r
a96bf12681 Sweep obsolete BRIDGE_MPSAFE (it's always on now) 2018-02-28 10:34:04 +00:00
maxv
d55163dec9 Remove unused mbuf tags. 2018-02-28 10:30:20 +00:00
maxv
247966d592 Dedup: merge ipsec4_setspidx_inpcb and ipsec6_setspidx_in6pcb. 2018-02-28 10:16:19 +00:00
maxv
f931621816 ipsec6_setspidx_in6pcb: call ipsec_setspidx() only once, just like the
IPv4 code. While here put the correct variable in sizeof.

ok ozaki-r@
2018-02-28 10:09:17 +00:00
mrg
ba849c5621 in sockaddr_getsize_by_family() print the p_comm, pid and lid
for unknown address family.  helps location where missing
af settings are.
2018-02-28 09:44:25 +00:00
pgoyette
c71d6c8e27 Remove exgtra / in the $NetBSD$ line. Thanks to leot@ for spotting it! 2018-02-28 09:25:02 +00:00
pgoyette
822434bf76 Remove extra */ from comment - fix build 2018-02-28 09:07:18 +00:00
pgoyette
6df876f615 Mention imcsmb(4) 2018-02-28 08:15:27 +00:00
pgoyette
60a40acd83 Remove extra blank line 2018-02-28 06:08:14 +00:00
pgoyette
edaff7ac6e Add RCSID and short title/synopsis 2018-02-28 05:53:13 +00:00
msaitoh
e54d537308 - Add new PCI quirk PCI_QUIRK_HASEXTCNF and PCI_QUIRK_NOEXTCNF. Some devices'
extended configuration area may be broken or violate spec. If an extended
  configuration space is strange but it really exist, use PCI_QUIRK_HASEXTCNF.
  If an extended configuration space is plausible to exist but it really
  doesn't exist, use PCI_QUIRK_NOEXTCNF.
- Add PCI_PRODUCT_INTEL_XEOND_MEM_0_TTR_1(0x6fa8) and
  PCI_PRODUCT_INTEL_COREI76K_IMC_0(0x6f68) with PCI_QUIRK_HASEXTCNF. The
  document clearly states they violate spec and it support the extended
  configuration space.
2018-02-28 05:50:06 +00:00
pgoyette
276ca183dd Note that the imc driver works on at least one ASUS motherboard, the
X99-E.
2018-02-28 05:47:00 +00:00
pgoyette
77b28ae546 Remove extraneous space from $NetBSD$ tag 2018-02-27 23:33:44 +00:00
uwe
2bbe9c117d Fix pasto in a comment. 2018-02-27 23:09:02 +00:00
uwe
da83da02db threadfunc - we do return from swapcontext() (since revision 1.2),
so drop the NOTREACHED comment.
2018-02-27 20:34:04 +00:00
uwe
02b9aeb870 swapfunc() is not passed to pthread_create, there's no need for it to
have any arguments.
2018-02-27 20:31:35 +00:00
uwe
738b2ab23a Drop unnecessary cast to makecontext() argument. 2018-02-27 20:24:50 +00:00
uwe
79bd7f2c4b Cleanup trailing whitespace. 2018-02-27 20:22:31 +00:00
maxv
faad9849ec Dedup: merge ipsec4_set_policy and ipsec6_set_policy. The content of the
original ipsec_set_policy function is inlined into the new one.
2018-02-27 15:01:30 +00:00
maxv
6fd7a9a762 Remove duplicate checks, and no need to initialize 'newsp' in
ipsec_set_policy.
2018-02-27 14:52:51 +00:00
maxv
e9030bedd8 Oops, forgot this file; I just merged two IPsec functions, so adapt
the rump stubs accordingly.
2018-02-27 14:45:43 +00:00
maxv
580ac4be42 Dedup: merge
ipsec4_get_policy and ipsec6_get_policy
	ipsec4_delete_pcbpolicy and ipsec6_delete_pcbpolicy

The already-existing ipsec_get_policy() function is inlined in the new
one.
2018-02-27 14:44:10 +00:00
maxv
cd974a5908 Remove the Econet code. It was part of acorn26, which was removed a
month ago.
2018-02-27 14:28:01 +00:00
maxv
c7aeccf20a style and fix typo 2018-02-27 14:14:19 +00:00
maxv
be32dea43c Use inpcb_hdr to reduce the diff between
ipsec4_set_policy and ipsec6_set_policy
	ipsec4_get_policy and ipsec6_get_policy
	ipsec4_delete_pcbpolicy and ipsec6_delete_pcbpolicy

No real functional change.
2018-02-27 13:36:21 +00:00
christos
9ac12f166f - don't leak ccb on alloc failure.
- KASSERT to prevent memory leak.
2018-02-27 12:59:53 +00:00
kamil
5198f250f5 Include <inttypes.h> in t_ucontext.c
The <inttypes.h> user-land header is required for PRI types.
We were including indirectly <sys/inttypes.h> through <sys/*.h> sources,
and this worked for most of the ports.

This fixes indirectly a build for MIPS (tested ports: arc and hpcmips),
where PRI types (PRIxREGISTER) were undefined.

Noted by <uwe>.
2018-02-27 12:20:35 +00:00
pgoyette
8d441d9cea Detach our children before allowing ourselves to detach. 2018-02-27 11:50:57 +00:00
kamil
b81b72d988 Implement _UC_MACHINE_INTRV() for hppa
INTRV = integer return value
For hppa this is R28 alias _REG_RET0.
2018-02-27 11:26:39 +00:00
kamil
c3018cf20c Make the t_ucontext.c test more portable
Cast _UC_MACHINE_*(&u) to (register_t).
This allows to print the returned values with PRIxREGISTER.

This corrects build failures on MIPS and HPPA.
sizeof(int) == sizeof(long) on these 32-bit systems.
2018-02-27 11:15:53 +00:00
uwe
ab5491b594 INTRV is INT-RV - integer return value (not INTR-V, interrupt vector) :) 2018-02-27 10:09:42 +00:00
kamil
65d22cea25 Add a dummy implementation of _UC_MACHINE_INTRV() for ia64
This fixes a build problem in src/tests/lib/libc/sys/t_ucontext.c.

This needs to be revisited once the port will get more mature.
2018-02-27 09:51:28 +00:00
maxv
215e1b4181 Optimize: use ipsec_sp_hdrsiz instead of ipsec_hdrsiz, not to re-query
the SP.

ok ozaki-r@
2018-02-27 08:05:19 +00:00
skrll
13822393ce Remove c&p comment that doesn't apply 2018-02-27 07:24:13 +00:00
pgoyette
21a7a775c9 Fix total timeout amount - since we decrement by 10 every 10 usec, we
need 35000 usec to equal 35ms.
2018-02-27 05:56:12 +00:00
pgoyette
84b0deb6b0 Fix another case of 7-bit right-justified addressing, without write-bit 2018-02-27 05:55:08 +00:00
pgoyette
d691638539 Use I2C_READ_OP_P() rather than negating I2C_WRITE_OP_P() 2018-02-27 05:52:10 +00:00
pgoyette
88c5eab4ef Change a couple of aprint messages to aprint_debug-only 2018-02-27 05:50:52 +00:00
pgoyette
6c0e84d128 KNF - remove space between cast and variable 2018-02-27 05:49:08 +00:00
pgoyette
1fa1550c57 For byte-writes we only load an 8-bit quantity 2018-02-27 05:47:10 +00:00