Commit Graph

263037 Commits

Author SHA1 Message Date
maya
87431fdd37 .WAIT for tools to complete.
There's a lot of waits inside tools, but nothing that promises that we haven't
started doing the next subdir in the top level.

Shows up as warnings in the cleandir stage on releng builds:

cleandir ===> external/mit/xorg/server/drivers/xf86-video-suncg6
cleandir ===> lib/libpam/modules/pam_deny
sh: /home/builds/ab/HEAD-llvm/sparc64/201811091720Z-tools/bin/nbawk: not found
nbmake[9]: "../../Makefile.xf86-driver" line 23: warning: "/home/builds/ab/HEAD-llvm/sparc64/201811091720Z-tools/bin/nbawk '/^PACKAGE_VERSION=/ {                match($1, "[0-9]+\\.[0-9]+\\.[0-9]+");  version = substr($1, RSTART, RLENGTH);  } END { print version }'                        /home/source/ab/HEAD-llvm/xsrc/external/mit/xf86-video-ati/dist/configure" returned non-zero status
sh: /home/builds/ab/HEAD-llvm/sparc64/201811091720Z-tools/bin/nbawk: not found
2018-11-11 07:43:35 +00:00
christos
3b9b386971 use the data size in case stdout was a pipe (M. Levinson) 2018-11-11 01:42:36 +00:00
riastradh
a31ad98a39 Use feenableexcept to trap fp exceptions, and trigger one, for SIGFPE.
Not every CPU traps integer division by zero -- aarch64, powerpc,
&c., just return zero.
2018-11-11 01:26:08 +00:00
riastradh
bb7a1ff9e2 Sort #includes. 2018-11-11 01:26:00 +00:00
maya
0b54191a1c & promotes to int already, so clang warns about the hh modifier.
(and we use -Werror)

ok xtos
2018-11-11 00:24:01 +00:00
maya
dd1f793151 Add missing include for struct nvmm_x64_state
(Pointed out by the clang build)
2018-11-11 00:06:48 +00:00
riastradh
1ba9f2bf59 Print the input to cosf on failure too. 2018-11-10 23:04:16 +00:00
maya
59ba550a49 Revert part of 1.1079. MKSOFTFLOAT?=yes for mips64*.
That is most likely an accidental commit.

PR port-mips/53719
2018-11-10 22:19:33 +00:00
martin
ea2064c286 Revert previous - not needed here, I got lost in the include maze 2018-11-10 19:35:19 +00:00
ryo
bc55635b0e add LX_BLKPAG_SH_IS pte attribute for MP 2018-11-10 18:30:58 +00:00
ryo
bdb55c3064 need to invalidate TLBs after pmapboot_enter(). pmapboot_protect() requires KSEG mappings. 2018-11-10 18:29:08 +00:00
martin
30e0449cfd Add options NTP and enable clockctl. 2018-11-10 16:19:58 +00:00
jmcneill
b7772932c2 Implement pic_get_affinity/pic_set_affinity for LPIs via ITS 2018-11-10 11:46:31 +00:00
maxv
e899ee3eff Merge the VIA detection code into cpu_probe_c3. 2018-11-10 11:08:54 +00:00
maxv
823f3f6003 Add copyright and RCSID, from wiz@. 2018-11-10 10:57:06 +00:00
maxv
10636919e1 Declare the MSR_VIA_ACE values as macros, and use a consistent naming,
similar to the rest of the file.

I'm wondering if I'm not fixing a huge bug here. The ECX8 value we were
using was wrong: ECX8 is bit 1, not bit 0. Bit 0 is ALTINST, an alternate
ISA, which is now known to be backdoored.

So it looks like we were explicitly enabling the backdoor.

Not tested, because I don't have a VIA cpu.
2018-11-10 10:52:51 +00:00
maxv
fd6e438f9e Remove unused cpu_msr.h includes. 2018-11-10 09:42:42 +00:00
maxv
2760ca24b5 Add libnvmm, NetBSD's new virtualization API. It provides a way for VMM
software to effortlessly create and manage virtual machines via NVMM.

It is mostly complete, only nvmm_assist_mem needs to be filled -- I have
a draft for that, but it needs some more care. This Mem Assist should
not be needed when emulating a system in x2apic mode, so theoretically
the current form of libnvmm is sufficient to emulate a whole class of
systems.

Generally speaking, there are so many modes in x86 that it is difficult
to handle each corner case without introducing a ton of checks that just
slow down the common-case execution. Currently we check a limited number
of things; we may add more checks in the future if they turn out to be
needed, but that's rather low priority.

Libnvmm is compiled and installed only on amd64. A man page (reviewed by
wiz@) is provided.
2018-11-10 09:28:56 +00:00
jmcneill
e7b9134fea Implement pic_get_affinity/pic_set_affinity for SPIs 2018-11-10 01:56:28 +00:00
macallan
48e1bcf0e9 set list for Xorg on iyonix 2018-11-10 01:44:26 +00:00
macallan
32b6930bcb more Xorg on iyonix building goop 2018-11-10 01:40:46 +00:00
macallan
0210ccb23c build Xorg with nv and wsfb drivers on iyonix 2018-11-10 01:38:02 +00:00
jmcneill
c3b65aaf6f Initialize gic softc dma tag 2018-11-10 01:24:06 +00:00
jmcneill
35eeab5280 Add GICv3 ITS support 2018-11-09 23:36:58 +00:00
jmcneill
69c06fdf6b Add support for GICv3 Locality-specific Periphal Interrupts (LPIs) and the
Interrupt Translation Service (ITS).
2018-11-09 23:36:24 +00:00
jmcneill
40d2bfe059 Increase max PIC sources 2018-11-09 23:35:06 +00:00
jmcneill
8ed7dc3eac Increase size of is_irq and pic_irqbase 2018-11-09 23:34:20 +00:00
maya
66d2a2f791 Set and check NDIS version.
Throw away length 1 packets without a warning: we already throw away messages
with (len < sizeof(*msg)) a short while after, but print a warning.

Hardware is allowed to pad USB packets which % wMaxPacketSize length with
such packets for hardware implementation simplicity reasons.

This is described in
https://docs.microsoft.com/en-us/windows-hardware/drivers/network/usb-short-packets

From Artturi Alm in tech-net, with amendment from pgoyette.
2018-11-09 21:57:09 +00:00
abs
5b096803d3 Install the sample slip.login to share/examples/slip/slip.login 2018-11-09 21:33:50 +00:00
martin
5864e121ba Fix test for active root partition when booting from a wedge 2018-11-09 15:20:36 +00:00
jmcneill
fd70b7a6af Enable new timings and HS200 mode on A64 eMMC 2018-11-09 14:39:51 +00:00
jmcneill
d991bdc40d Defer DIOCCACHESYNC to the sdmmc task queue so they are serialized with other requests. 2018-11-09 14:39:19 +00:00
jmcneill
55f594fd3c Wait for data ready after eMMC flush cache commands 2018-11-09 14:38:36 +00:00
maya
bddddfadc4 Use the same type redefinition guards as stdint.h since rev1.8
PR pkg/53713
2018-11-09 11:46:28 +00:00
martin
6b62e867ad Add modfl alias. 2018-11-09 10:19:47 +00:00
mbalmer
ce9e22ba54 I am responsible for luactl. 2018-11-09 07:54:25 +00:00
ozaki-r
82733c9693 Add a test to show a large number of MAC addresses cached in a bridge 2018-11-09 06:45:03 +00:00
ozaki-r
63f183af76 Fix that brconfig <bridge> (addr) can't show a large number of MAC addresses
The command shows only 256 addresses at maximum even if a bridge caches more
addresses.  It occurs because the kernel doesn't return an error if the command
passes a short buffer that can't store all cached addresses; the kernel fills
cached addresses as much as possible and returns it without telling that the
result is truncated.

Fix the issue by telling a required size of a buffer if a buffer passed from the
command is not enough, which lets the command retry with an enough buffer.

Reported by k-goda@IIJ
2018-11-09 06:44:31 +00:00
mrg
33cbd42a21 tg1 is a 64 bit value, store it in a 64 bit variable. 2018-11-09 04:06:40 +00:00
mrg
93c24e9cc2 implement dumpsys() and friends for arm64.
this is almost a direct copy of the arm code, which is simply
as the basic structures about physical memory are the same
between arm and arm64.  the main change i made was to use
the direct map instead of a virtual dump page that is remapped
to whatever physical page is being dumped.

i also changed the existing cpu_kcore_hdr_t to include the
missing number of ram segments.

note that this is not a complete solution for crash dumps yet,
as the libkvm code needs some work.  i'm fairly positive that
this side is correct, as i can see the data i expect to see,
but libkvm's _kvm_kvtop() function returns garbage so far.

there is no "minidump" support here yet, ala amd64, but we
probably want it eventually.


ok skrll@.
2018-11-09 04:05:27 +00:00
kre
7ba0d30a60 PR bin/53712
Avoid crash from redirect on null compound command.
2018-11-09 02:11:04 +00:00
christos
5a18d4517f revert previous; does not fix the issue 2018-11-08 23:20:52 +00:00
christos
86a693fca0 Don't build this as a PIE binary, PIE binaries need PHDR and this barfs
under the new binutils: error: PHDR segment not covered by LOAD segment
[including bsd.init.mk includes ../Makefile.inc which disables PIE like
 all the other bootloaders do]
2018-11-08 21:47:04 +00:00
martin
1c2e5b02c0 Adapt other cd-device query functions to new world order, fix
default cd device (assume 'a' partition).
2018-11-08 20:29:37 +00:00
kre
375f4ceb14 Allow shells forked to run command substitutions while expanding
prompts to exit when they're done, rather than forcing them to
turn into interactive shells and start reading input ...

Completes a part of the previous changes (just 10+ weeks late...)

Should fix the prompt expansion issue reported by Caóc on
current-users.
2018-11-08 18:37:42 +00:00
riastradh
0cc7838e19 Attempt to implement fabsf by copying fabs and s/d/f/g.
Vax wizards, please vaxinate if I flubbed this!
2018-11-08 18:19:37 +00:00
riastradh
7b66ed5df0 Use the generic C fabs/fabsl on ia64 for now to unbreak the build. 2018-11-08 16:36:16 +00:00
riastradh
3e49d37969 powerpc64 needs fabsl too. (Apparently no __HAVE_LONG_DOUBLE?) 2018-11-08 16:31:46 +00:00
riastradh
e84f49ed3d Try speling it rite, riasthradhdadhaa or whatever your name is. 2018-11-08 16:29:50 +00:00
martin
a48ed55e5c Untangle disk enumeration a bit more. 2018-11-08 11:56:56 +00:00