Commit Graph

259580 Commits

Author SHA1 Message Date
wiz
3a719c4bc0 Add missing word. 2018-06-15 23:13:19 +00:00
wiz
5fe4139bca Sort SEE ALSO. 2018-06-15 23:11:56 +00:00
uwe
964f7e1fe4 Fix fmttab value for L2CR_L2PE (parity enabled) so that we don't print
self-contradictory "no parity parity enabled".
2018-06-15 23:11:39 +00:00
pgoyette
56d0105401 Add missing .Fn mark-up 2018-06-15 22:40:33 +00:00
pgoyette
6ca7a307a1 Add note that there is no way to delete an individual datum from a
container.
2018-06-15 22:27:40 +00:00
pgoyette
6e6eddc2d0 Bump date for previous changes 2018-06-15 22:11:17 +00:00
pgoyette
bec9397abf Improve synopsis, remove unnecessary .Nm markup 2018-06-15 22:10:44 +00:00
uwe
675afe0676 In mtmsr emulation ignore PSL_VEC we set in mfmsr emulation just
above, as it freaks out PSL_USEROK_P().  This is also congruent with
how we handle PSL_FP.

PR port-macppc/53360
2018-06-15 22:07:14 +00:00
sevan
7367c87248 Add POWER/PowerPC/PPC.
Leaving the original PPC entry as it's a valid case.
2018-06-15 21:59:17 +00:00
uwe
57b32accc1 Fix pasto in .Dt title 2018-06-15 21:51:32 +00:00
macallan
4e6e39bd74 cosmetics, no functional change 2018-06-15 21:22:35 +00:00
mrg
2951cf94c8 move 'utsname' to the main() function scope, so that the reference to
it outside the block remains valid.

should fix an asan reported issue.
2018-06-15 20:16:35 +00:00
jakllsch
8889253054 Add basic ARM PL061 GPIO driver with FDT attachment.
Mostly for Qemu 'virt' platform; really needs interrupt support
in gpiokeys(4) and this driver to work efficently and reliably.
2018-06-15 19:52:01 +00:00
jakllsch
417241ebeb Add cfprint_t virtiobusprint() and use it for virtio_mmio. 2018-06-15 17:13:43 +00:00
jakllsch
c68d846faf Fix PSCI 0.1 detection. 2018-06-15 16:03:59 +00:00
jakllsch
10ca86d30e Use correct value for PSCI 0.2+ PSCI_CPU_ON. 2018-06-15 15:59:20 +00:00
jakllsch
ca8434fa2e ... -mcpu=armv7-a is actually spelled -march=armv7-a ... 2018-06-15 15:22:01 +00:00
christos
a583d89315 PR/53367: Thomas Barabosch: Integer overflow in usr.sbin/dumplfs
While here use the "e" functions to always check for allocation errors.
2018-06-15 15:16:05 +00:00
wiz
3c87e35a2f Whitespace nit. 2018-06-15 15:15:10 +00:00
wiz
9a08b6a960 Whitespace fixes. 2018-06-15 15:14:15 +00:00
wiz
77d2cc62be Sort errors. Use \(em. 2018-06-15 15:12:49 +00:00
jakllsch
78ca7017a7 add FDT "qemu,fw-cfg-mmio" glue for qemufwcfg 2018-06-15 15:07:56 +00:00
jakllsch
cabede45bc 'virt' platform adjustments:
- support broader CPU model range
 - move kernel physical and virtual base to avoid bootloader,
   and keep KVA at or above 2GiB
 - add relevant drivers
2018-06-15 15:00:14 +00:00
jakllsch
937a05b0ed Big endian support for virt_platform_early_putchar and xputc. 2018-06-15 14:37:35 +00:00
jakllsch
a94f858987 fix xputc FIFO address for virt platform 2018-06-15 14:32:29 +00:00
jakllsch
bfc9d6e036 Add "arm,arm-v7" to compatible strings.
(for `qemu-system-arm -M virt`)
2018-06-15 14:27:57 +00:00
jakllsch
1a12da05b5 Bump PIC_MAXSOURCES to 352.
(`qemu-system-arm -M virt` currently needs 288)
2018-06-15 14:25:22 +00:00
yamaguchi
78e4f33125 Add if_vlan directory to lists to fix the build failure
build.sh was failed when using "-V MKDEBUG=yes"
2018-06-15 09:54:02 +00:00
mrg
62adeb39c4 simplify priq_class_create(): if the alloc for cl_q fails,
then only clean up required to to free cl.  delete all the
code at err_ret that was probably used in the past, and move
the free + return upon failure earlier.
2018-06-15 08:34:18 +00:00
kre
5a2f6188e2 Revert previous, mrg's fix is better (even with possible namespace issues,
which I guess are not great in compat includes) .... the perils of two
people doing fixes at around the same time.
2018-06-15 08:17:38 +00:00
kre
3d346d985a If we are going to use offsetof() we'd need to include <stddef.h> to
get it defined.  Rather than deal with potential namespace issues
with that, just clear the entire struct, rather than attempting to
stop after the potential padding field.   If the compiler is good enough
it should make no difference (there are just 3 fields, 2 named ones
are assigned to, immediately after the memset() - the compiler can
detect that, and not bother assigning (via memset()) to the unmamed
3rd padding field).   If the compiler is not smart enough to deal
with this, then I doubt writing 8 more zero bytes will make enough
difference to matter.
2018-06-15 07:46:59 +00:00
mrg
2b3c41532d include libkern.h or string.h & stddef.h, to get the offsetof()
and memset() definitions.
2018-06-15 07:33:27 +00:00
jakllsch
c25f7d4b74 Fix queue address setup bug introduced in 1.31.
This use-before-initialization problem resulted in non-zero queues never
being initialized with their virtqueue pointer, and queue zero's pointer
to be clobbered with the virtqueue pointer for the higest-indexed ring.
2018-06-15 01:37:40 +00:00
christos
fdf2ea1385 Add -n (don't send mail if command exited normally) option. From OpenBSD via
Job Snidjers.
2018-06-14 22:04:28 +00:00
christos
4911152229 Replace with the OpenBSD man page. It removes some historical comparisons
that are not very useful (and trully if any they belong to a separate section
instead of being interspersed in the document), and organizes and formats
the information better.
2018-06-14 22:02:57 +00:00
maya
40b0fdad11 for consistency, print the statement that is true in the error case.
also add missing closing paren
2018-06-14 21:57:25 +00:00
maya
b4dd0f8b48 Test for FE_INVALID in a way that works for powerpc too.
powerpc seems to return FE_INVALID | FE_VXSOFT rather than just FE_INVALID.
XXX need extra careful reading of standards
2018-06-14 21:11:08 +00:00
maxv
27027ffab1 Install the FPU state on the current CPU in setregs (execve). 2018-06-14 18:00:15 +00:00
maxv
0ca1eb2675 Eager FPU on i386. 2018-06-14 17:58:22 +00:00
macallan
8ac19a42a6 make this work on rv350 chips found in last generation *Books
Needs testing on non-Apple hardware.
2018-06-14 17:41:27 +00:00
christos
c85e5e1ae4 PR/53365: Thomas Barabosch: memory leak in route6d
XXX: pullup 7, 8
2018-06-14 16:17:18 +00:00
maxv
edb6f1effc SpectreV4, backports in NetBSD-8, no XSAVEOPT 2018-06-14 14:48:59 +00:00
maxv
fbf420517e Add some code to support eager fpu switch, INTEL-SA-00145. We restore the
FPU state of the lwp right away during context switches. This guarantees
that when the CPU executes in userland, the FPU doesn't contain secrets.

Maybe we also need to clear the FPU in setregs(), not sure about this one.

Can be enabled/disabled via:

	machdep.fpu_eager = {0/1}

Not yet turned on automatically on affected CPUs (Intel Family 6).

More generally it would be good to turn it on automatically when XSAVEOPT
is supported, because in this case there is probably a non-negligible
performance gain; but we need to fix PR/52966.
2018-06-14 14:36:46 +00:00
jmcneill
33b9f57fe7 arm: Add support for QEMU ARM Virtual Machine ("virt"). 2018-06-14 10:57:42 +00:00
jmcneill
2417111f9f Add support for QEMU ARM Virtual Machine ("virt"). 2018-06-14 10:56:39 +00:00
jmcneill
2f78d473d8 Increase storage space for FDT data 2018-06-14 10:53:39 +00:00
uwe
4ac70e4d2b timespec_to_timespec50 - don't leak kernel memory in struct padding.
On 64-bit machines struct timespec50 has padding between 32-bit tv_sec
and long tv_nsec that is not affected by normal assignment.  Scrub it.
The result is most likely about to be passed to the user space by the
caller, so do it here to take care of them all.
2018-06-14 10:30:55 +00:00
kamil
079a9ba6ba Make the alignof() usage more portable in grep(1)
Remove NetBSD specific check and replace it with GCC extension __alignof__
that is available since GCC 2.x.

Requested by <kre>
2018-06-14 10:14:39 +00:00
msaitoh
24189a7035 Remove extra tabs. No functional change. 2018-06-14 09:29:55 +00:00
yamaguchi
c9cc6dd9e6 Update the error message in t_vlan (ENXIO => EINVAL)
ok ozaki-r@
2018-06-14 08:38:24 +00:00