svn commit: r342919 - head/sys/arm64/include

2019-01-10 Thread Andrew Turner
Author: andrew Date: Thu Jan 10 16:31:07 2019 New Revision: 342919 URL: https://svnweb.freebsd.org/changeset/base/342919 Log: Fix a comment, pushed onto is two words. While here make the comments sentences. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/include/frame.h

svn commit: r342552 - head/sys/arm64/arm64

2018-12-27 Thread Andrew Turner
Author: andrew Date: Thu Dec 27 14:14:41 2018 New Revision: 342552 URL: https://svnweb.freebsd.org/changeset/base/342552 Log: Pass VM_PROT_EXECUTE to vm_fault for instruction faults. We need to tell vm_fault the reason for the fault was because we tried to execute from the memory

svn commit: r341814 - head/sys/arm64/acpica

2018-12-11 Thread Andrew Turner
Author: andrew Date: Tue Dec 11 11:13:11 2018 New Revision: 341814 URL: https://svnweb.freebsd.org/changeset/base/341814 Log: Only read the ACPI proximity tabled on arm64 when we are booting from ACPI. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/acpica/acpi_machdep.c Modified:

svn commit: r341489 - head

2018-12-04 Thread Andrew Turner
Author: andrew Date: Tue Dec 4 18:51:28 2018 New Revision: 341489 URL: https://svnweb.freebsd.org/changeset/base/341489 Log: Only gnu/lib/csu when MK_BSD_CRTBEGIN is off. We were still building it from Makefile.inc1. Disable it there so we don't try to build the GNU crtbegin/crtend when

Re: svn commit: r340841 - in head: . share/mk sys/sys

2018-12-03 Thread Andrew Turner
> On 3 Dec 2018, at 03:32, Sean Bruno wrote: > > I just had to disable this on the PowerPC64 build in the FreeBSD > Cluster. It led to the following error during linking: > > cc -O2 -pipe -g -MD -MF.depend.enhash.o -MTenhash.o -std=gnu99 > -fstack-protector-strong -c enhash.c -o

svn commit: r341424 - head/share/mk

2018-12-03 Thread Andrew Turner
Author: andrew Date: Mon Dec 3 09:40:37 2018 New Revision: 341424 URL: https://svnweb.freebsd.org/changeset/base/341424 Log: Disable the BSD CRT code on powerpc and sparc64, they need extra crt*.o files that haven't been implemented. Reported by: sbruno MFC with: r339738

svn commit: r340911 - head/lib/csu/tests

2018-11-24 Thread Andrew Turner
Author: andrew Date: Sat Nov 24 18:25:00 2018 New Revision: 340911 URL: https://svnweb.freebsd.org/changeset/base/340911 Log: Re-enable the dynamiclib tests. These should be fixed by r340910. Modified: head/lib/csu/tests/Makefile Modified: head/lib/csu/tests/Makefile

svn commit: r340910 - head/lib/csu/common

2018-11-24 Thread Andrew Turner
Author: andrew Date: Sat Nov 24 18:23:53 2018 New Revision: 340910 URL: https://svnweb.freebsd.org/changeset/base/340910 Log: Add the missing 0 at the end of the .jcr section. Without this the dynamic library test was failing as it was calling _Jv_RegisterClasses multiple times.

svn commit: r340881 - head/lib/csu/tests

2018-11-24 Thread Andrew Turner
Author: andrew Date: Sat Nov 24 16:05:40 2018 New Revision: 340881 URL: https://svnweb.freebsd.org/changeset/base/340881 Log: Disable the dynamiclib test until a failure can be debugged Modified: head/lib/csu/tests/Makefile Modified: head/lib/csu/tests/Makefile

svn commit: r340841 - in head: . share/mk sys/sys

2018-11-23 Thread Andrew Turner
Author: andrew Date: Fri Nov 23 16:45:07 2018 New Revision: 340841 URL: https://svnweb.freebsd.org/changeset/base/340841 Log: Enable the BSD crtbegin/crtend by default. It has passed an exp run on amd64 and i386, and has testing on arm64. On other architectures it is expected to run,

svn commit: r340840 - head/lib/csu/mips

2018-11-23 Thread Andrew Turner
Author: andrew Date: Fri Nov 23 16:33:03 2018 New Revision: 340840 URL: https://svnweb.freebsd.org/changeset/base/340840 Log: Mark the function called by the MIPS .init/.fini sequence with .local. As with r328939 we need to mark local symbols as such. Without this the assembly parser

svn commit: r340395 - head/lib/csu/common

2018-11-13 Thread Andrew Turner
Author: andrew Date: Tue Nov 13 15:28:27 2018 New Revision: 340395 URL: https://svnweb.freebsd.org/changeset/base/340395 Log: Run __cxa_finalize in shared objects in the destructor path. When we have .dtors call them before .dtor handling, otherwise call from a destructor. PR:

svn commit: r340213 - in head: lib/csu/mips lib/csu/sparc64 share/mk

2018-11-07 Thread Andrew Turner
Author: andrew Date: Wed Nov 7 09:49:25 2018 New Revision: 340213 URL: https://svnweb.freebsd.org/changeset/base/340213 Log: Add the (untested) mips and sparc64 .init call sequences. The BSD crtbegin/crtend code now builds on all architectures, however further work is needed to check if

svn commit: r340193 - in head/sys: amd64/conf arm64/conf

2018-11-06 Thread Andrew Turner
Author: andrew Date: Tue Nov 6 17:47:58 2018 New Revision: 340193 URL: https://svnweb.freebsd.org/changeset/base/340193 Log: Add the KUBSAN options to the arm64 and amd64 GENERIC kernel config files. As the kernel file size may be too large to run with a stock loader comment them out for

svn commit: r340191 - in head/sys: conf kern

2018-11-06 Thread Andrew Turner
Author: andrew Date: Tue Nov 6 17:32:07 2018 New Revision: 340191 URL: https://svnweb.freebsd.org/changeset/base/340191 Log: Port the NetBSD ubsan runtime to the FreeBSD kernel. This allows us to build the ubsan code added in r340189 into the kernel with the KUBSAN option. This will

svn commit: r340189 - head/sys/kern

2018-11-06 Thread Andrew Turner
Author: andrew Date: Tue Nov 6 16:56:49 2018 New Revision: 340189 URL: https://svnweb.freebsd.org/changeset/base/340189 Log: Import the NetBSD micro ubsan code for the kernel. This imports revision 1.3 of common/lib/libc/misc/ubsan.c from NetBSD, the micro-ubsan code. It is an

svn commit: r340013 - in head/sys/arm64: arm64 include

2018-11-01 Thread Andrew Turner
Author: andrew Date: Thu Nov 1 17:43:28 2018 New Revision: 340013 URL: https://svnweb.freebsd.org/changeset/base/340013 Log: Add the ARMv8.3 SCTLR_EL1 fields. While here tag which architecture release fields were added and remove a field that only existed in very early releases of the

svn commit: r340008 - head/sys/arm64/include

2018-11-01 Thread Andrew Turner
Author: andrew Date: Thu Nov 1 17:05:10 2018 New Revision: 340008 URL: https://svnweb.freebsd.org/changeset/base/340008 Log: Add the ARMv8.3 HCR_EL2 register fields. MFC after:1 month Sponsored by: DARPA, AFRL Modified: head/sys/arm64/include/hypervisor.h Modified:

svn commit: r339988 - head/sys/arm64/arm64

2018-11-01 Thread Andrew Turner
Author: andrew Date: Thu Nov 1 10:25:22 2018 New Revision: 339988 URL: https://svnweb.freebsd.org/changeset/base/339988 Log: Use the correct offsets for the trap frame in fork_trampoline. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/arm64/swtch.S Modified:

svn commit: r339961 - head/sys/arm64/arm64

2018-10-31 Thread Andrew Turner
Author: andrew Date: Wed Oct 31 17:41:53 2018 New Revision: 339961 URL: https://svnweb.freebsd.org/changeset/base/339961 Log: Always set the MP_QUIRK_CPULIST quirk under ACPI. This needs a run time check to only set it for emulators as the CPU list may be changed when the emulator starts.

svn commit: r339948 - head/sys/arm64/arm64

2018-10-31 Thread Andrew Turner
Author: andrew Date: Wed Oct 31 12:00:35 2018 New Revision: 339948 URL: https://svnweb.freebsd.org/changeset/base/339948 Log: Use pmap_invalidate_all rather than invalidating 512 level 2 entries in the early pmap_mapbios/unmapbios code. It is even worse when there are multiple L2 entries to

svn commit: r339945 - head/sys/arm64/arm64

2018-10-31 Thread Andrew Turner
Author: andrew Date: Wed Oct 31 10:30:19 2018 New Revision: 339945 URL: https://svnweb.freebsd.org/changeset/base/339945 Log: Remove function prototypes for functions removed in r339943. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/arm64/mp_machdep.c Modified:

svn commit: r339944 - head/sys/arm64/arm64

2018-10-31 Thread Andrew Turner
Author: andrew Date: Wed Oct 31 09:39:38 2018 New Revision: 339944 URL: https://svnweb.freebsd.org/changeset/base/339944 Log: Fix some style(9) issues in the arm64 pmap_mapbios/unmapbios. Split lines when they are too long. Sponsored by: DARPA, AFRL Modified:

svn commit: r339943 - head/sys/arm64/arm64

2018-10-31 Thread Andrew Turner
Author: andrew Date: Wed Oct 31 09:25:17 2018 New Revision: 339943 URL: https://svnweb.freebsd.org/changeset/base/339943 Log: Remove the unused arm64_cpu driver. This was previously used for CPU initilisation, however this hasn't been the case in a long time. Sponsored by: DARPA,

svn commit: r339916 - in head/lib/csu: . arm mips powerpc riscv sparc64 tests

2018-10-30 Thread Andrew Turner
le is newly added) +++ head/lib/csu/mips/crt.h Tue Oct 30 14:44:12 2018(r339916) @@ -0,0 +1,31 @@ +/*- + * SPDX-License-Identifier: BSD-1-Clause + * + * Copyright 2018 Andrew Turner + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitte

svn commit: r339913 - head/lib/csu/tests

2018-10-30 Thread Andrew Turner
Author: andrew Date: Tue Oct 30 11:19:47 2018 New Revision: 339913 URL: https://svnweb.freebsd.org/changeset/base/339913 Log: Disable the .preinit_array test in DSOs, ld.bfd fails to link objects with the section. MFC with: r339738 Sponsored by: DARPA, AFRL Modified:

svn commit: r339912 - head/lib/csu/tests

2018-10-30 Thread Andrew Turner
Author: andrew Date: Tue Oct 30 10:16:21 2018 New Revision: 339912 URL: https://svnweb.freebsd.org/changeset/base/339912 Log: Fix the location of the static keyword. MFC with: r339738 Sponsored by: DARPA, AFRL Modified: head/lib/csu/tests/init_test.c Modified:

svn commit: r339908 - in head: etc/mtree lib/csu/tests lib/csu/tests/dso lib/csu/tests/dynamiclib

2018-10-30 Thread Andrew Turner
Author: andrew Date: Tue Oct 30 09:43:26 2018 New Revision: 339908 URL: https://svnweb.freebsd.org/changeset/base/339908 Log: Run the csu tests on a DSO. This builds the tests into a shared library, then runs these from the base test programs. With this we can check crtbeginS.o and

svn commit: r339907 - head/lib/csu/tests

2018-10-30 Thread Andrew Turner
Author: andrew Date: Tue Oct 30 09:36:31 2018 New Revision: 339907 URL: https://svnweb.freebsd.org/changeset/base/339907 Log: The jcr argument to _Jv_RegisterClasses is used, stop marking it otherwise. MFC with: r339738 Sponsored by: DARPA, AFRL Modified:

svn commit: r339866 - head/lib/csu/common

2018-10-29 Thread Andrew Turner
Author: andrew Date: Mon Oct 29 17:55:26 2018 New Revision: 339866 URL: https://svnweb.freebsd.org/changeset/base/339866 Log: Make the .ctors, .dtors, and .jcr markers as static. They shouldn't be accessible from out of the files they are defined in. MFC with: r339738 Sponsored by:

svn commit: r339865 - head/etc/mtree

2018-10-29 Thread Andrew Turner
Author: andrew Date: Mon Oct 29 17:13:12 2018 New Revision: 339865 URL: https://svnweb.freebsd.org/changeset/base/339865 Log: Include the csu test directories in BSD.tests.dist MFC with: r339738 Sponsored by: DARPA, AFRL Modified: head/etc/mtree/BSD.tests.dist Modified:

svn commit: r339864 - head/lib/csu/tests

2018-10-29 Thread Andrew Turner
Author: andrew Date: Mon Oct 29 17:03:20 2018 New Revision: 339864 URL: https://svnweb.freebsd.org/changeset/base/339864 Log: Check __dso_handle is NULL in non-DSO objects. It should only be non-NULL when accessed from a shared object. MFC with: r339738 Sponsored by: DARPA, AFRL

svn commit: r339773 - head/lib/csu/common

2018-10-26 Thread Andrew Turner
Author: andrew Date: Fri Oct 26 11:53:20 2018 New Revision: 339773 URL: https://svnweb.freebsd.org/changeset/base/339773 Log: Add __dso_handle to the BSD crtbegin. This is used to identify shared objects. MFC with: r339738 Sponsored by: DARPA, AFRL Modified:

Re: svn commit: r339738 - in head: gnu/lib lib/csu lib/csu/aarch64 lib/csu/amd64 lib/csu/common lib/csu/i386 lib/csu/powerpc64 lib/csu/tests lib/csu/tests/dynamic lib/csu/tests/static share/mk tools/b

2018-10-26 Thread Andrew Turner
> On 26 Oct 2018, at 03:40, Kyle Evans wrote: > > On Thu, Oct 25, 2018 at 12:40 PM Andrew Turner <mailto:and...@freebsd.org>> wrote: >> >> Author: andrew >> Date: Thu Oct 25 17:39:41 2018 >> New Revision: 339738 >> URL: https://svn

svn commit: r339770 - in head/lib/csu/tests: . dynamic static

2018-10-26 Thread Andrew Turner
Author: andrew Date: Fri Oct 26 08:12:28 2018 New Revision: 339770 URL: https://svnweb.freebsd.org/changeset/base/339770 Log: Drop the csu tests WARNS to 5 to fix the powerpc64 build. MFC with: r339738 Sponsored by: DARPA, AFRL Modified: head/lib/csu/tests/Makefile.tests

svn commit: r339744 - head/lib/csu

2018-10-25 Thread Andrew Turner
Author: andrew Date: Thu Oct 25 21:08:15 2018 New Revision: 339744 URL: https://svnweb.freebsd.org/changeset/base/339744 Log: Add a missing include for src.opts.mk. Without it MK_TESTS isn't defined. MFC with: r339738 Sponsored by: DARPA, AFRL Modified: head/lib/csu/Makefile

svn commit: r339739 - head/share/man/man5

2018-10-25 Thread Andrew Turner
Author: andrew Date: Thu Oct 25 17:42:43 2018 New Revision: 339739 URL: https://svnweb.freebsd.org/changeset/base/339739 Log: Regen src.conf.5 to add WITH_BSD_CRTBEGIN Sponsored by: DARPA, AFRL Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5

svn commit: r339738 - in head: gnu/lib lib/csu lib/csu/aarch64 lib/csu/amd64 lib/csu/common lib/csu/i386 lib/csu/powerpc64 lib/csu/tests lib/csu/tests/dynamic lib/csu/tests/static share/mk tools/bu...

2018-10-25 Thread Andrew Turner
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/csu/amd64/crt.hThu Oct 25 17:39:41 2018(r339738) @@ -0,0 +1,32 @@ +/*- + * SPDX-License-Identifier: BSD-1-Clause + * + * Copyright 2018 Andrew Turn

svn commit: r339594 - head/sys/arm64/arm64

2018-10-22 Thread Andrew Turner
Author: andrew Date: Mon Oct 22 15:18:49 2018 New Revision: 339594 URL: https://svnweb.freebsd.org/changeset/base/339594 Log: Stop advertising ARMv8.3 Pointer Authentication This needs firmware and kernel support before userspace can use it. Until then don't advertise it's available.

svn commit: r339593 - head/sys/arm64/include

2018-10-22 Thread Andrew Turner
Author: andrew Date: Mon Oct 22 15:06:14 2018 New Revision: 339593 URL: https://svnweb.freebsd.org/changeset/base/339593 Log: Fix the ID_AA64ISAR0_EL1 dot product field shift. It's 44 in the documentation, use this correct value. MFC after:3 days Modified:

svn commit: r339592 - in head/sys/arm64: arm64 include

2018-10-22 Thread Andrew Turner
Author: andrew Date: Mon Oct 22 14:58:59 2018 New Revision: 339592 URL: https://svnweb.freebsd.org/changeset/base/339592 Log: Correctly set the DAIF bits in new threads We should only unmask interrupts when creating a new thread and leave the other exceptions in teh same state as before

svn commit: r339540 - in head/sys: conf dev/virtio/mmio

2018-10-21 Thread Andrew Turner
y SRI International and the University of + * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) + * ("CTSRD"), as part of the DARPA CRASH research programme. + * + * Portions of this software were developed by Andrew Turner + * under sponsorship from the FreeBSD Foun

svn commit: r339074 - in head/sys: arm64/arm64 arm64/include conf kern

2018-10-01 Thread Andrew Turner
Author: andrew Date: Mon Oct 1 18:51:08 2018 New Revision: 339074 URL: https://svnweb.freebsd.org/changeset/base/339074 Log: Add kernel ifunc support on arm64. Tested with ifunc resolvers in the kernel and module with calls from kernel to kernel, module to kernel, and module to module.

svn commit: r339041 - head/libexec/rtld-elf/aarch64

2018-10-01 Thread Andrew Turner
Author: andrew Date: Mon Oct 1 14:02:29 2018 New Revision: 339041 URL: https://svnweb.freebsd.org/changeset/base/339041 Log: Add STT_GNU_IFUNC and R_AARCH64_IRELATIVE support on arm64. This is based on the amd64 implementation. Support for both PLT and non-PLT (e.g. a global variable

svn commit: r338994 - head/sys/arm64/arm64

2018-09-28 Thread Andrew Turner
Author: andrew Date: Fri Sep 28 11:57:40 2018 New Revision: 338994 URL: https://svnweb.freebsd.org/changeset/base/338994 Log: Export ID_AA64ISAR{0,1}_EL1 to userland. As with r338962 also export the instruction set attribute register. This will allow userland to identify optional

svn commit: r338962 - head/sys/arm64/arm64

2018-09-27 Thread Andrew Turner
Author: andrew Date: Thu Sep 27 13:54:09 2018 New Revision: 338962 URL: https://svnweb.freebsd.org/changeset/base/338962 Log: Export ID_AA64PFR0_EL1 to userland Create a user view of the ID_AA64PFR0_EL1 register with values common across all CPUs. Approved by: re (kib) Sponsored

svn commit: r338961 - in head/sys/arm64: arm64 include

2018-09-27 Thread Andrew Turner
Author: andrew Date: Thu Sep 27 13:50:57 2018 New Revision: 338961 URL: https://svnweb.freebsd.org/changeset/base/338961 Log: Move the undefined instruction handler to identcpu.c so we have access to the registers from boot. Approved by: re (kib) Sponsored by: ABT Systems Ltd

svn commit: r338957 - in head/sys/amd64: include vmm vmm/intel

2018-09-27 Thread Andrew Turner
Author: andrew Date: Thu Sep 27 11:16:19 2018 New Revision: 338957 URL: https://svnweb.freebsd.org/changeset/base/338957 Log: Handle a guest executing a vm instruction by trapping and raising an undefined instruction exception. Previously we would exit the guest, however an unprivileged

svn commit: r338502 - head/sys/arm/arm

2018-09-06 Thread Andrew Turner
Author: andrew Date: Thu Sep 6 17:25:50 2018 New Revision: 338502 URL: https://svnweb.freebsd.org/changeset/base/338502 Log: Fix the GIC ACPI cross reference value. To support INTRNG with ACPI we need to set a non-zero cross reference value for the interrupt controller. The GICv3 driver

svn commit: r338501 - head/sys/arm/arm

2018-09-06 Thread Andrew Turner
Author: andrew Date: Thu Sep 6 17:25:01 2018 New Revision: 338501 URL: https://svnweb.freebsd.org/changeset/base/338501 Log: Remove the check that the Arm generic interrupt controller variant is non-zero. This is the case on qemu, so remove it to allow us to boot there. This change is

svn commit: r338337 - in head/stand/efi: boot1 loader/arch/arm64

2018-08-27 Thread Andrew Turner
Author: andrew Date: Mon Aug 27 11:14:49 2018 New Revision: 338337 URL: https://svnweb.freebsd.org/changeset/base/338337 Log: Ensure we have a large enough stack for the lua loader Lua has a few places where it allocates a large buffer on the stack. This is normally fine, except there

svn commit: r338336 - head/sys/arm/arm

2018-08-27 Thread Andrew Turner
Author: andrew Date: Mon Aug 27 10:08:27 2018 New Revision: 338336 URL: https://svnweb.freebsd.org/changeset/base/338336 Log: Use the correct register when storing the arm VFP state. Previously we have been lucky where the state was already in r0, however this is not guaranteed. Use the

svn commit: r337903 - in head/sys/arm: arm include

2018-08-16 Thread Andrew Turner
Author: andrew Date: Thu Aug 16 10:00:51 2018 New Revision: 337903 URL: https://svnweb.freebsd.org/changeset/base/337903 Log: Remove the L1 and L2 xscale page defines and rename the generic macros to the common name. While here move the macros to check these into pmap-v4.c as they're only

svn commit: r337853 - in head/sys/arm: arm include

2018-08-15 Thread Andrew Turner
Author: andrew Date: Wed Aug 15 14:57:34 2018 New Revision: 337853 URL: https://svnweb.freebsd.org/changeset/base/337853 Log: Remove pmap_kenter_section from the arm pmap. It's unused. Sponsored by: DARPA, AFRL Modified: head/sys/arm/arm/pmap-v4.c head/sys/arm/include/pmap-v4.h

svn commit: r337851 - in head/sys/arm: arm include

2018-08-15 Thread Andrew Turner
Author: andrew Date: Wed Aug 15 14:52:56 2018 New Revision: 337851 URL: https://svnweb.freebsd.org/changeset/base/337851 Log: Remove ARM_HAVE_SUPERSECTIONS. It was only supported on some XScale CPUs. Sponsored by: DARPA, AFRL Modified: head/sys/arm/arm/pmap-v4.c

svn commit: r337850 - in head/sys/arm: arm include

2018-08-15 Thread Andrew Turner
Author: andrew Date: Wed Aug 15 14:45:01 2018 New Revision: 337850 URL: https://svnweb.freebsd.org/changeset/base/337850 Log: Make code and data only used within the arm pmap code as static. Sponsored by: DARPA, AFRL Modified: head/sys/arm/arm/pmap-v4.c head/sys/arm/include/pmap-v4.h

svn commit: r337848 - in head/sys/arm: arm include

2018-08-15 Thread Andrew Turner
Author: andrew Date: Wed Aug 15 14:29:04 2018 New Revision: 337848 URL: https://svnweb.freebsd.org/changeset/base/337848 Log: Remove arm pmap variables that are only ever set and never read. Sponsored by: DARPA, AFRL Modified: head/sys/arm/arm/pmap-v4.c head/sys/arm/include/pmap-v4.h

svn commit: r337847 - in head/sys/arm: arm include

2018-08-15 Thread Andrew Turner
Author: andrew Date: Wed Aug 15 14:19:07 2018 New Revision: 337847 URL: https://svnweb.freebsd.org/changeset/base/337847 Log: Remove ARM_MMU_GENERIC, it's the only ARMV4/v5 MMU we support. Sponsored by: DARPA, AFRL Modified: head/sys/arm/arm/pmap-v4.c head/sys/arm/include/pmap-v4.h

svn commit: r337846 - head/sys/arm/arm

2018-08-15 Thread Andrew Turner
Author: andrew Date: Wed Aug 15 13:52:31 2018 New Revision: 337846 URL: https://svnweb.freebsd.org/changeset/base/337846 Log: Remove the ARMv5 pmap function pointers. These were to support XScale so are now unused. Sponsored by: DARPA, AFRL Modified: head/sys/arm/arm/pmap-v4.c

svn commit: r337845 - head/sys/arm/include

2018-08-15 Thread Andrew Turner
Author: andrew Date: Wed Aug 15 13:48:59 2018 New Revision: 337845 URL: https://svnweb.freebsd.org/changeset/base/337845 Log: Remove checks for now unsupported CPU_* values in arm headers. Sponsored by: DARPA, AFRL Modified: head/sys/arm/include/intr.h head/sys/arm/include/pmap-v4.h

svn commit: r337843 - in head/sys/arm: arm include

2018-08-15 Thread Andrew Turner
Author: andrew Date: Wed Aug 15 13:40:16 2018 New Revision: 337843 URL: https://svnweb.freebsd.org/changeset/base/337843 Log: Start to remove XScale support from the ARMv4/v5 pmap. Support for XScale has been removed from the kernel so we can remove it from here to help simplify the code.

svn commit: r337842 - head/sys/arm64/arm64

2018-08-15 Thread Andrew Turner
Author: andrew Date: Wed Aug 15 13:19:15 2018 New Revision: 337842 URL: https://svnweb.freebsd.org/changeset/base/337842 Log: Set the Execute Never flags in EFI device memory as required by the ARMv8 spec. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/arm64/efirt_machdep.c

svn commit: r337841 - in head/sys/arm: conf mv/discovery mv/orion ralink

2018-08-15 Thread Andrew Turner
Author: andrew Date: Wed Aug 15 13:13:19 2018 New Revision: 337841 URL: https://svnweb.freebsd.org/changeset/base/337841 Log: Remove PHYSADDR from kernel configurations that don't need it. The only place we need to set it is when we also have FLASHADDR set. Sponsored by: DARPA, AFRL

svn commit: r337839 - head/sys/arm/conf

2018-08-15 Thread Andrew Turner
Author: andrew Date: Wed Aug 15 13:03:01 2018 New Revision: 337839 URL: https://svnweb.freebsd.org/changeset/base/337839 Log: Remove the VIRT armv7 kernel config. It is supported by GENERIC. Sponsored by: DARPA, AFRL Deleted: head/sys/arm/conf/VIRT

svn commit: r337762 - in head/sys/arm: arm include

2018-08-14 Thread Andrew Turner
Author: andrew Date: Tue Aug 14 16:01:25 2018 New Revision: 337762 URL: https://svnweb.freebsd.org/changeset/base/337762 Log: Remove cpu_pfr from arm. It's unused. Modified: head/sys/arm/arm/identcpu-v4.c head/sys/arm/include/cpufunc.h Modified: head/sys/arm/arm/identcpu-v4.c

svn commit: r337761 - head/sys/arm/arm

2018-08-14 Thread Andrew Turner
Author: andrew Date: Tue Aug 14 15:48:13 2018 New Revision: 337761 URL: https://svnweb.freebsd.org/changeset/base/337761 Log: Remove an old comment now the code it references has been removed. Modified: head/sys/arm/arm/cpufunc_asm.S Modified: head/sys/arm/arm/cpufunc_asm.S

svn commit: r337760 - head/sys/arm/arm

2018-08-14 Thread Andrew Turner
Author: andrew Date: Tue Aug 14 15:42:27 2018 New Revision: 337760 URL: https://svnweb.freebsd.org/changeset/base/337760 Log: Fix the spelling of armv4_idcache_inv_all in an END macro. Modified: head/sys/arm/arm/cpufunc_asm_armv4.S Modified: head/sys/arm/arm/cpufunc_asm_armv4.S

svn commit: r337739 - head/sys/arm64/arm64

2018-08-14 Thread Andrew Turner
Author: andrew Date: Tue Aug 14 11:00:54 2018 New Revision: 337739 URL: https://svnweb.freebsd.org/changeset/base/337739 Log: Support reading from the arm64 ID registers from userspace. Trap reads to the arm64 ID registers and write a safe value into them. This will allow us to put more

Re: svn commit: r337379 - head/sys/arm/conf

2018-08-06 Thread Andrew Turner
> On 6 Aug 2018, at 15:40, Andrew Turner wrote: > > Author: andrew > Date: Mon Aug 6 14:40:45 2018 > New Revision: 337379 > URL: https://svnweb.freebsd.org/changeset/base/337379 > > Log: > Default to armv5te in LINT on arm. This should fix building LINT there

svn commit: r337379 - head/sys/arm/conf

2018-08-06 Thread Andrew Turner
Author: andrew Date: Mon Aug 6 14:40:45 2018 New Revision: 337379 URL: https://svnweb.freebsd.org/changeset/base/337379 Log: Default to armv5te in LINT on arm. This should fix building LINT there. Modified: head/sys/arm/conf/NOTES Modified: head/sys/arm/conf/NOTES

svn commit: r336971 - in head/sys: arm64/arm64 arm64/include dev/psci

2018-07-31 Thread Andrew Turner
Author: andrew Date: Tue Jul 31 15:08:02 2018 New Revision: 336971 URL: https://svnweb.freebsd.org/changeset/base/336971 Log: Use int for the pcpu_ssbd argument. This is included from userland and may not include the needed headers to get the bool definition. Reported by: manu Pointy

svn commit: r336967 - in head/sys: arm64/arm64 arm64/include dev/psci

2018-07-31 Thread Andrew Turner
Author: andrew Date: Tue Jul 31 12:53:27 2018 New Revision: 336967 URL: https://svnweb.freebsd.org/changeset/base/336967 Log: Implement the SSBD (CVE-2018-3639) workaround on arm64 This calls into the Arm Trusted Firmware to enable and disable the workaround for the Speculative Store

svn commit: r336915 - head/sys/arm64/conf

2018-07-30 Thread Andrew Turner
Author: andrew Date: Mon Jul 30 15:57:58 2018 New Revision: 336915 URL: https://svnweb.freebsd.org/changeset/base/336915 Log: Enable VIMAGE on arm64 again. A workaround for modules with static VNET variables has been committed so these should work now. PR: 223670 Sponsored

svn commit: r336909 - in head/sys: net sys

2018-07-30 Thread Andrew Turner
Author: andrew Date: Mon Jul 30 15:05:07 2018 New Revision: 336909 URL: https://svnweb.freebsd.org/changeset/base/336909 Log: As with DPCPU_DEFINE_STATIC make VNET_DEFINE_STATIC non-static on arm64 in modules. It also fails in the same way, we are unable to relocate static variables as the

svn commit: r336906 - in head/sys: kern net

2018-07-30 Thread Andrew Turner
Author: andrew Date: Mon Jul 30 14:25:17 2018 New Revision: 336906 URL: https://svnweb.freebsd.org/changeset/base/336906 Log: Ensure the DPCPU and VNET module spaces are aligned to hold a pointer. Previously they may have been aligned to a char, leading to misaligned DPCPU and VNET

svn commit: r336902 - head/sys/net

2018-07-30 Thread Andrew Turner
Author: andrew Date: Mon Jul 30 12:44:44 2018 New Revision: 336902 URL: https://svnweb.freebsd.org/changeset/base/336902 Log: As with DPCPU_DEFINE make it a compile error to use static with VNET_DEFINE. There is the VNET_DEFINE_STATIC macro for that. Modified: head/sys/net/vnet.h

svn commit: r336894 - head/sys/arm/arm

2018-07-30 Thread Andrew Turner
Author: andrew Date: Mon Jul 30 10:55:02 2018 New Revision: 336894 URL: https://svnweb.freebsd.org/changeset/base/336894 Log: Remove teh non-INTRNG code from the ARM GIC interrupt controller driver. We don't build for the non-INTRNG case and it was makeing the code harder to read.

svn commit: r336892 - head/sys/arm/arm

2018-07-30 Thread Andrew Turner
Author: andrew Date: Mon Jul 30 09:50:26 2018 New Revision: 336892 URL: https://svnweb.freebsd.org/changeset/base/336892 Log: Require ARMv5 for arm. All current kernels are for ARMv5 or later, and it will allow us to clean out old ARMv4 (and earlier) specific assembly. Relnotes: yes

svn commit: r336834 - in head/sys/arm: arm include mv/armadaxp ti

2018-07-28 Thread Andrew Turner
Author: andrew Date: Sat Jul 28 17:21:34 2018 New Revision: 336834 URL: https://svnweb.freebsd.org/changeset/base/336834 Log: Use the cp15 functions to read cp15 registers rather than using assembly functions. The former are static inline functions so will compile to a single instruction.

svn commit: r336833 - head/sys/arm/arm

2018-07-28 Thread Andrew Turner
Author: andrew Date: Sat Jul 28 16:56:46 2018 New Revision: 336833 URL: https://svnweb.freebsd.org/changeset/base/336833 Log: Remove an unneeded cpu_ident() prototype. Modified: head/sys/arm/arm/elf_trampoline.c Modified: head/sys/arm/arm/elf_trampoline.c

svn commit: r336831 - head/sys/arm/arm

2018-07-28 Thread Andrew Turner
Author: andrew Date: Sat Jul 28 12:53:10 2018 New Revision: 336831 URL: https://svnweb.freebsd.org/changeset/base/336831 Log: Remove some write only global values from the arm cpufunc code. Modified: head/sys/arm/arm/cpufunc.c Modified: head/sys/arm/arm/cpufunc.c

svn commit: r336830 - head/sys/arm/arm

2018-07-28 Thread Andrew Turner
Author: andrew Date: Sat Jul 28 12:52:03 2018 New Revision: 336830 URL: https://svnweb.freebsd.org/changeset/base/336830 Log: Remove an unused function from the arm ELF trampoline. It tries to find properties about the CPU caches, however we never use these values. Modified:

svn commit: r336829 - in head/sys: arm/arm conf

2018-07-28 Thread Andrew Turner
Author: andrew Date: Sat Jul 28 12:50:09 2018 New Revision: 336829 URL: https://svnweb.freebsd.org/changeset/base/336829 Log: Only build the cache handling code we need when building the arm ELF trampoline. Modified: head/sys/arm/arm/cpufunc_asm_armv5_ec.S

svn commit: r336828 - in head/sys/arm: arm include

2018-07-28 Thread Andrew Turner
Author: andrew Date: Sat Jul 28 12:20:42 2018 New Revision: 336828 URL: https://svnweb.freebsd.org/changeset/base/336828 Log: Make the arm cpu setup functions static. Any other place that needs these functions will use the function pointer we create for them. Modified:

svn commit: r336827 - head/sys/arm/arm

2018-07-28 Thread Andrew Turner
Author: andrew Date: Sat Jul 28 12:16:57 2018 New Revision: 336827 URL: https://svnweb.freebsd.org/changeset/base/336827 Log: Remove an unneeded check for CPU_XSCALE_81342 Modified: head/sys/arm/arm/identcpu-v4.c Modified: head/sys/arm/arm/identcpu-v4.c

svn commit: r336826 - in head/sys/arm: arm include

2018-07-28 Thread Andrew Turner
Author: andrew Date: Sat Jul 28 12:00:32 2018 New Revision: 336826 URL: https://svnweb.freebsd.org/changeset/base/336826 Log: Remove old CPU_ values from the arm cpufunc code. These have been removed. Modified: head/sys/arm/arm/cpufunc.c head/sys/arm/arm/cpufunc_asm_arm9.S

svn commit: r336825 - head/sys/arm/arm

2018-07-28 Thread Andrew Turner
Author: andrew Date: Sat Jul 28 11:58:43 2018 New Revision: 336825 URL: https://svnweb.freebsd.org/changeset/base/336825 Log: Remove the old CPU_ values from the arm kernel trampoline. These options are gone so we can remove them from the code. Modified: head/sys/arm/arm/elf_trampoline.c

Re: svn commit: r336813 - in head/sys: arm/arm arm/conf conf

2018-07-28 Thread Andrew Turner
> On 28 Jul 2018, at 12:00, Andrew Turner wrote: > > Author: andrew > Date: Sat Jul 28 11:00:45 2018 > New Revision: 336813 > URL: https://svnweb.freebsd.org/changeset/base/336813 > > Log: > Remove now the cow unused CPU_ARM9 and CPU_FA526 options.

svn commit: r336813 - in head/sys: arm/arm arm/conf conf

2018-07-28 Thread Andrew Turner
Author: andrew Date: Sat Jul 28 11:00:45 2018 New Revision: 336813 URL: https://svnweb.freebsd.org/changeset/base/336813 Log: Remove now the cow unused CPU_ARM9 and CPU_FA526 options. These are for ARMv4 CPUs that are no longer supported. Deleted: head/sys/arm/arm/cpufunc_asm_fa526.S

svn commit: r336807 - head/sys/arm/ralink

2018-07-28 Thread Andrew Turner
Author: andrew Date: Sat Jul 28 10:48:41 2018 New Revision: 336807 URL: https://svnweb.freebsd.org/changeset/base/336807 Log: The RT1310 is an ARM926EJ-S, fix the config to mark it as such. Modified: head/sys/arm/ralink/std.ralink Modified: head/sys/arm/ralink/std.ralink

svn commit: r336806 - in head/sys: arm/arm arm/include conf

2018-07-28 Thread Andrew Turner
Author: andrew Date: Sat Jul 28 07:54:21 2018 New Revision: 336806 URL: https://svnweb.freebsd.org/changeset/base/336806 Log: Only support INTRNG in the SMP code on arm. We already require INTRNG on anything that could be multicore on arm. Modified: head/sys/arm/arm/mp_machdep.c

svn commit: r336804 - in head/sys/arm: allwinner altera/socfpga amlogic/aml8726 annapurna/alpine broadcom/bcm2835 freescale/imx mv/armada38x nvidia/tegra124 qemu rockchip samsung/exynos xilinx

2018-07-28 Thread Andrew Turner
Author: andrew Date: Sat Jul 28 06:46:10 2018 New Revision: 336804 URL: https://svnweb.freebsd.org/changeset/base/336804 Log: Remove IPI_IRQ_START and IPI_IRQ_END from the arm kernel config files. These are unneeded with INTRNG. Modified: head/sys/arm/allwinner/std.allwinner

svn commit: r336677 - head/sys/netinet

2018-07-24 Thread Andrew Turner
Author: andrew Date: Tue Jul 24 16:45:01 2018 New Revision: 336677 URL: https://svnweb.freebsd.org/changeset/base/336677 Log: icmp_quotelen was accidentially changes in r336676, undo this. Sponsored by: DARPA, AFRL Modified: head/sys/netinet/ip_icmp.c Modified:

svn commit: r336676 - in head/sys: contrib/ipfilter/netinet net netgraph netinet netinet/cc netinet6 netipsec netpfil/ipfw netpfil/ipfw/nptv6 netpfil/ipfw/pmod netpfil/pf

2018-07-24 Thread Andrew Turner
Author: andrew Date: Tue Jul 24 16:35:52 2018 New Revision: 336676 URL: https://svnweb.freebsd.org/changeset/base/336676 Log: Use the new VNET_DEFINE_STATIC macro when we are defining static VNET variables. Reviewed by: bz Sponsored by: DARPA, AFRL Differential Revision:

svn commit: r336674 - in head: share/man/man9 sys/net

2018-07-24 Thread Andrew Turner
Author: andrew Date: Tue Jul 24 16:31:16 2018 New Revision: 336674 URL: https://svnweb.freebsd.org/changeset/base/336674 Log: As with DPCPU create VNET_DEFINE_STATIC for when a variable needs to be declaired static. This will allow us to change the definition on arm64 as it has the same

svn commit: r336492 - head/contrib/netbsd-tests/lib/libc/sys

2018-07-19 Thread Andrew Turner
Author: andrew Date: Thu Jul 19 17:13:46 2018 New Revision: 336492 URL: https://svnweb.freebsd.org/changeset/base/336492 Log: Stop writing past the end of the buffer in the msgget_limit test. The value in i is already correct to write to the last item in the buf array. Obtained from:

svn commit: r336447 - head/sys/arm/include

2018-07-18 Thread Andrew Turner
Author: andrew Date: Wed Jul 18 09:17:37 2018 New Revision: 336447 URL: https://svnweb.freebsd.org/changeset/base/336447 Log: Also check if __ARM_ARCH_6KZ__ is defined when detecting when to use ARMv6 instructions. There is some code that still uses the _ARM_ARCH_* macros. Sponsored by:

svn commit: r336349 - head/sys/sys

2018-07-16 Thread Andrew Turner
Author: andrew Date: Mon Jul 16 18:21:29 2018 New Revision: 336349 URL: https://svnweb.freebsd.org/changeset/base/336349 Log: Don't use the static keyword with DPCPU defines in arm64 modules. On arm64 compiler will create PC-relative loads and stores for static data. This means it

svn commit: r336348 - in head/sys: conf crypto/armv8 modules/armv8crypto

2018-07-16 Thread Andrew Turner
Author: andrew Date: Mon Jul 16 15:39:33 2018 New Revision: 336348 URL: https://svnweb.freebsd.org/changeset/base/336348 Log: Create an empty stdint.h for arm_neon.h to include. The armv8crypto module includes arm_neon.h for the compiler intrinsic functions. This includes the userland

Re: svn commit: r336130 - head/sys/dev/pci

2018-07-09 Thread Andrew Turner
This breaks at least armv7. Please either fix, or revert this. I have some comments below I was planning on adding to the review, but you committed before I had the time to do so. > On 9 Jul 2018, at 10:00, Wojciech Macek wrote: > > Author: wma > Date: Mon Jul 9 09:00:16 2018 > New Revision:

<    1   2   3   4   5   6   7   8   9   10   >