Commit Graph

222480 Commits

Author SHA1 Message Date
msaitoh b1a32cacda Modify some macros and add some new macros for CPU family and model
to reduce code duplication and to avoid bug.

CPUID_TO_STEPPING(cpuid)	(not changed)

CPUID_TO_FAMILY(cpuid)		(new)
CPUID_TO_MODEL(cpuid)		(new)

	Return the display family and the display model.
	The macro names are the same as FreeBSD.

CPUID_TO_BASEFAMILY(cpuid)	(The old name was CPUID2FAMILY)
CPUID_TO_BASEMODEL(cpuid)	(The old name was CPUID2MODEL)

	Only for the base field.

CPUID_TO_EXTFAMILY(cpuid)	(The old name was CPUID2EXTFAMILY)
CPUID_TO_EXTMODEL(cpuid)	(The old name was CPUID2EXTMODEL)

	Only for the extended field.

See http://mail-index.netbsd.org/port-amd64/2013/11/12/msg001978.html
2013-11-15 08:47:55 +00:00
mrg 52b710c4ba update gcc 4.8 support for 4.8.1 -> 4.8.2. 2013-11-15 08:42:18 +00:00
skrll 4d28a8e554 Simplify 2013-11-15 06:32:17 +00:00
rmind d0748eb941 - Add bpf_args_t and convert bpf_filter_ext() to use it. This allows the
caller to initialise (and re-use) the memory store.
- Add bpf_jit_generate() and bpf_jit_freecode() wrappers.
2013-11-15 00:12:44 +00:00
christos b764989391 - add KASSERTS on functions that don't accept M_COPYALL
- compute length for m_copyback0, m_makewritable used from ipf, is using
  M_COPYALL.
2013-11-14 18:54:40 +00:00
martin 153351b36e oops, remove accidently commited debug code 2013-11-14 16:53:51 +00:00
nonaka 95c1bb0c0b If the Weltrend Semiconductor device found in SANWA SUPPLY TAP-TST10 electricity meter as a usbhid device, it doesn't work at all, connect as ugen instead. Verified working with taptst10ctl. 2013-11-14 16:33:20 +00:00
nonaka ac18e7b5aa regen 2013-11-14 16:26:18 +00:00
nonaka d3531043c5 Added Weltrend Semiconductor vendor and device. 2013-11-14 16:25:46 +00:00
martin 6aa2ab9e22 Make it compile on archs with implicit NBIT 2013-11-14 15:25:22 +00:00
skrll 3715f6edd9 Removed unused variable 2013-11-14 13:54:08 +00:00
skrll 6205e3484c Use __diagused 2013-11-14 13:11:50 +00:00
skrll e0e1a8ccf7 Improve error message 2013-11-14 13:02:57 +00:00
skrll 8d3b2f38cd Use __debugused 2013-11-14 13:01:26 +00:00
skrll 1cd7a8f9b7 Fix silly typo 2013-11-14 12:44:25 +00:00
skrll 810860c8c1 Simplify variable assignment and avoid gcc warnings. 2013-11-14 12:41:46 +00:00
skrll 67d31eff3d Remove unused variable. 2013-11-14 12:40:51 +00:00
martin 3d01f81a9c On sparc64 when compiling 64bit binaries:
- if proper "marker" objects exist, encode the code model in use in the
   binary
 - default to -mcmodel=medmid (instead of medlow)
2013-11-14 12:21:05 +00:00
martin 591a8c0745 On sparc64: create additional "marker" object files, that can be used by the
compiler to encode the used code model in binaries.
2013-11-14 12:19:34 +00:00
martin eeff5755ca Allow TOPDOWN-VM only for binaries compiled with appropriate code model.
No change yet, as __HAVE_TOPDOWN is not yet defined.
2013-11-14 12:11:13 +00:00
martin 41de4c61e8 As discussed on tech-kern: make TOPDOWN-VM runtime selectable per process
(offer MD code or emulations to override it).
2013-11-14 12:07:11 +00:00
skrll 955298ee4a Deal with M_COPYALL becoming -ve properly in m_copym0.
I can now mount via nfs again.
2013-11-14 09:21:30 +00:00
martin 7c50380698 Fix typo in previous 2013-11-14 09:11:39 +00:00
roy 2975c235a4 Fix setsockopt(2) error. 2013-11-14 08:26:54 +00:00
wiz 8df34715d2 Stop hissing. 2013-11-14 07:45:05 +00:00
christos 94c4f88296 CID 240779: Wrong sizeof used in allocation 2013-11-14 05:04:24 +00:00
christos 63ab64571e M_COPYALL has a different value now and it is used in modules. Pointed out
by phone@
2013-11-14 04:27:50 +00:00
christos 5774707710 CID 1102787: Only copy the interface name if it is NUL terminated, avoiding
a buffer overrun by one in the equals case.
2013-11-14 04:24:33 +00:00
christos e028f49d87 add --gnu for pax. 2013-11-14 04:00:48 +00:00
christos 901b1f0b31 miminize diff to original. 2013-11-14 02:27:29 +00:00
christos 5435e94952 CID 1102803: Memory leak 2013-11-14 02:26:35 +00:00
christos 7524cd91bf CID 1102804: Memory leak 2013-11-14 01:39:26 +00:00
christos 13df76e42e 1102805: Memory leak 2013-11-14 01:36:00 +00:00
christos dbb1d6e3ee CID 1102809: Fix uninitialized variable 2013-11-14 01:28:16 +00:00
christos 16129349e4 CID 1102810: Fix uninitialized 2013-11-14 01:18:02 +00:00
christos 95ea4fb705 CID 1102811: Unitialized variable. Don't pass random sun_len for the BSD's,
zero the whole structure as recommended for portability.
2013-11-14 01:14:39 +00:00
christos cf3d00d2c6 CID 1102856: Fix memory leak 2013-11-14 01:12:14 +00:00
christos 87ddf4238e CID 1102812: Fix uninitialized 2013-11-14 01:00:22 +00:00
christos b89fa8e9d5 change M_COPYALL to be -1 instead of depending on it too be "too large",
so that we check explicitly against it in all places. ok gimpy
2013-11-14 00:50:36 +00:00
sjg ca96724fac Don't SEGV when Hash_Table is uninitialized 2013-11-14 00:27:05 +00:00
wiz c0e2590a8c Remove annoying comma and sort SEE ALSO. 2013-11-14 00:13:41 +00:00
sjg d959c16735 Don't SEGV when passed NULL for list. 2013-11-14 00:01:28 +00:00
christos fad7083044 PR/48379: mention kqueue functionality 2013-11-13 23:58:51 +00:00
wiz a987b5b309 Add missing comma. 2013-11-13 22:11:52 +00:00
joerg bc2f32b2d9 truncl(3) 2013-11-13 22:09:55 +00:00
christos 1f8b65e5d5 CID 1107545, 1107546: fix memory leak 2013-11-13 21:46:22 +00:00
christos 04c9845e3b CID 1107546: Fix memory leak 2013-11-13 21:44:29 +00:00
christos fa1e6d6374 CID 1107543, 230676, 1107543, 976795, 230676, 976795, 1125885, etc. 2013-11-13 21:41:23 +00:00
christos 5c9e5de9b6 CID 1125827: Avoid buffer overrun (read past end of struct) 2013-11-13 21:36:57 +00:00
christos 611f94995e CID 1125874: Fix memory leak 2013-11-13 21:25:40 +00:00