253658 Commits

Author SHA1 Message Date
maxv
a6cd696ea0 use bootspace 2017-09-30 12:12:29 +00:00
maxv
21a9f40fe3 use bootspace 2017-09-30 12:01:56 +00:00
maxv
b66511fdf2 Add a bootspace structure. It describes the physical and virtual space
layout created by the early kernel bootstrap code. Start using it, and
eliminate several references to KERNBASE and other global symbols. While
here clean up xen-i386, it's really tiring.
2017-09-30 11:43:57 +00:00
jmcneill
1a7bf6a94d 0xB -> 0xb on previous 2017-09-30 10:29:10 +00:00
jmcneill
68c52448ba TX DMA status registers start at 0xB0 not 0x80. NFC since these are unused. 2017-09-30 10:28:09 +00:00
pgoyette
f0d71ae6ca Add commented-out ident lines to the XEN3_DOM{0,U} kernel config files
for consistency with other config files.

OK bouyer@
2017-09-30 09:03:38 +00:00
isaki
fdac6d12b2 Improve logic in audio_initbufs(). No functional changes intended. 2017-09-30 05:37:55 +00:00
isaki
ba920338cd Avoid magic numbers and give appropriate names. 2017-09-30 04:07:04 +00:00
macallan
2912ecf7ec use 7450 HID0 bitmask on 7447A and 7448 as well 2017-09-30 03:34:04 +00:00
macallan
77ec75e5a4 provide crude but working fan control based on sensor readings 2017-09-29 22:38:18 +00:00
scole
ac9b79b0ca Add ELAN keyboard 2017-09-29 22:05:54 +00:00
wiz
592cf6b9c0 Mention that linux and linux32 emulations are not loaded automatically
for modular kernels, and mention how to enable that. Bump date.
2017-09-29 21:48:17 +00:00
jmcneill
28b7028865 add sh arch 2017-09-29 21:18:28 +00:00
kre
f07d3f9b6b DEBUG only changes (non-debug, ie: normal, shell unaffected)
Add a little extra info in a few of the trace messages.
2017-09-29 17:53:57 +00:00
maxv
252ca9c54a Remove compat_linux32 from the autoload list and add a enable/disable
sysctl, like compat_linux.
2017-09-29 17:47:29 +00:00
kre
6bf17633e9 Use %ju and (intmax_t) to unbreak i386 build. 2017-09-29 17:27:26 +00:00
maxv
aef145dda9 Remove compat_linux from the autoload list, and add a sysctl to enable or
disable it - which defaults to disabled. The following command is now
required to use linux binaries:

	sysctl -w emul.linux.enabled=1

After a discussion on tech-kern@. All the other ideas to reduce the attack
surface have drawbacks, and this sysctl seems to be the best option.
2017-09-29 17:08:00 +00:00
christos
e760fba74d humanize printing of ip addresses 2017-09-29 14:59:43 +00:00
macallan
0cdd6f1a35 get sensor descriptions from OpenFirmware if we know how
this needs to be generalized
2017-09-29 14:17:47 +00:00
macallan
c44fe877f5 pass the right device node to i2c devices 2017-09-29 14:15:42 +00:00
maya
da0ec449a1 Add declaration. build fix
sorry, I forgot to commit this file.
2017-09-29 13:19:57 +00:00
christos
e48fa1237b Split the status printing routines (one for NetBSD and one for Linux) for
simplicity (Robert Swindelis)
2017-09-29 12:57:05 +00:00
maya
aef814ffa9 Add simple test for workqueue(9) 2017-09-29 12:42:36 +00:00
maya
d9fb11d888 Run both tests (rather than rumptest_threadjoin twice) 2017-09-29 10:22:36 +00:00
maya
9674f1fbd6 Remove outdated BUGS entry - vnd does work on sparse files.
(thanks hannken in 2011-06-29)
2017-09-29 08:46:47 +00:00
ozaki-r
09f29b8f7d Fix build
sys/arch/x86/x86/cpu.c:920:20: error: 'pmap_largepages' undeclared (first use in this function)
  smp_data.large = (pmap_largepages != 0);
                    ^
2017-09-29 03:17:18 +00:00
christos
97aca01504 PR/52578: Benjamin M. Schwartz: sync the internal copy of res_nquery for
getaddrinfo, with the real version so that we handle EDNS fallback.
2017-09-29 00:04:33 +00:00
christos
5e3f85208a PR/52578: Benjamin M. Schwartz Set the AD bit when DNSSEC is enabled
(RFC 6840 Section 5.7).
2017-09-28 23:32:01 +00:00
agc
89894cf870 Also report versions of tcpdump, libpcap, and wpa_supplicant
Bump sys_info version to 20170928
2017-09-28 18:08:04 +00:00
maxv
6f5ab4ae3c Pack the useful variables at the end of the trampoline page; eliminates
a hard-coded dependency on KERNBASE. Note that I cannot test this change
on i386 right now, but it seems fine enough.
2017-09-28 17:48:20 +00:00
maxv
f030f29afb Clean up, and initialize the lwp0 fields in init_x86_64. 2017-09-28 17:35:08 +00:00
christos
d6d612dc81 - sanitize key debugging so that we don't print extra newlines or unassociated
debugging messages.
- remove unused functions and make internal ones static
- print information in one line per message
2017-09-28 17:21:42 +00:00
sborrill
0e0ce305cc Fix the most obvious integer overflow errors which can lead to superblock
corruption. Thanks to riastradh@

For example:

# df /data
Filesystem    1K-blocks       Used      Avail %Cap Mounted on
/dev/ccd0d   -19974939099004 -19982708701532 -737868756431824584   0% /data

# dumpfs -s /dev/rccd0d
file system: /dev/rccd0d
format  FFSv2
endian  little-endian
location 65536  (-b 128)
magic   19540119        time    Thu Sep 28 13:18:10 2017
superblock location     65536   id      [ 595fa4a5 3363fe37 ]
cylgrp  dynamic inodes  FFSv2   sblock  FFSv2   fslevel 5
nbfree  242773148       ndir    211185  nifree  650798800       nffree
215448
ncg     13933   size    2647654400      blocks  -4993734774751
bsize   32768   shift   15      mask    0xffff8000
fsize   4096    shift   12      mask    0xfffff000
frag    8       shift   3       fsbtodb 3
bpg     23754   fpg     190032  ipg     46848
minfree 5%      optim   time    maxcontig 2     maxbpg  4096
symlinklen 120  contigsumsize 2
maxfilesize 0x000800800805ffff
nindir  4096    inopb   128
avgfilesize 16384       avgfpdir 64
sblkno  24      cblkno  32      iblkno  40      dblkno  2968
sbsize  4096    cgsize  32768
csaddr  35792   cssize  225280
cgrotor 0       fmod    0       ronly   0       clean   0x01
wapbl version 0x1       location 2      flags 0x0
wapbl loc0 6354693888   loc1 131072     loc2 512        loc3 3
flags   none
fsmnt   /data
volname         swuid   0
2017-09-28 17:07:20 +00:00
christos
a52d29cf5f - add a constant for the vlan mask.
- enforce that we have a tag before we get it.
2017-09-28 16:26:14 +00:00
christos
1706b6f5e4 - only get the vtag if we have it like the other drivers
- mask the hardware vlan tag
2017-09-28 16:24:39 +00:00
christos
5ee97c1d12 only get vtag when we have vtag like the other drivers. 2017-09-28 16:23:57 +00:00
maya
ab208a3dad Restore CAVEATS section unmodified.
It apparently refers to VAX and its lack of a negative zero.
2017-09-28 15:03:18 +00:00
jmcneill
1e1980ee8d Fix register write location 2017-09-28 13:08:00 +00:00
maya
cf91bfe7da List a few more functions 2017-09-28 11:18:41 +00:00
maya
f56039ca90 Remove CAVEATS section
The man page for an individual function is not the right place to discuss
the issues with negative zero
2017-09-28 11:09:05 +00:00
msaitoh
6d10025f31 Print the following cpuid bits:
0x0000000d:1 eax	(xsaveopt, xsavec, xgetbv1, xsaves)
  0x0000000f:0 edx	(cqm_llc)
  0x0000000f:1 edx	(cqm_occup_llc)
  0x00000006   eax	(dtherm, ida, arat, pln, pts, hwp, hwp_notify,
			 hwp_act_window, hwp_epp, hwp_pkg_req)
2017-09-28 10:59:38 +00:00
jmcneill
267dce13d6 use CLK_GATE_SIMPLE 2017-09-28 09:44:29 +00:00
msaitoh
761e1e94b4 Print ACPI_HEST_GHES_ASSIST flag (ACPI 6.2). 2017-09-28 06:55:08 +00:00
wiz
e4dcc564b8 Remove Tn. 2017-09-28 05:51:26 +00:00
christos
3b612085a8 Remove debugging log statement 2017-09-28 02:32:51 +00:00
macallan
ec933c7ffa if there is no 'compatible' property try to guess the codec from the i2c
address
2017-09-27 22:31:53 +00:00
macallan
53b0c4dcd2 add obio and some child devices 2017-09-27 22:18:15 +00:00
macallan
9e80246f5a identify as 'Audio Codec' and print out which codec we found 2017-09-27 22:11:31 +00:00
macallan
7b642a570f pass the right OF node to i2c devices 2017-09-27 22:10:19 +00:00
mlelstv
e30da9649b fix offset of segment count in NetBSD crashdump header. 2017-09-27 21:04:05 +00:00