svn commit: r349481 - head/sys/sys

2019-06-27 Thread Mitchell Horne
Author: mhorne Date: Fri Jun 28 00:03:29 2019 New Revision: 349481 URL: https://svnweb.freebsd.org/changeset/base/349481 Log: Add some missing RISC-V ELF defines This adds defines for the RISC-V specific e_flags values, and some of the missing static relocations. Reviewed by: markj

svn commit: r349482 - in head/contrib/elftoolchain: common readelf

2019-06-27 Thread Mitchell Horne
Author: mhorne Date: Fri Jun 28 00:10:26 2019 New Revision: 349482 URL: https://svnweb.freebsd.org/changeset/base/349482 Log: readelf: Add support for RISC-V specific e_flags Reviewed by: markj Approved by: markj (mentor) MFC after:3 days Differential Revision:https://re

svn commit: r349483 - head/contrib/elftoolchain/libelftc

2019-06-27 Thread Mitchell Horne
Author: mhorne Date: Fri Jun 28 00:14:12 2019 New Revision: 349483 URL: https://svnweb.freebsd.org/changeset/base/349483 Log: libelftc: add RISC-V bfd targets This adds the following targets: elf32-riscv, elf64-riscv, elf64-riscv-freebsd Reviewed by: emaste, markj, jko...@users.source

svn commit: r349484 - in stable/12/sys/riscv: include riscv

2019-06-27 Thread Mitchell Horne
Author: mhorne Date: Fri Jun 28 00:36:26 2019 New Revision: 349484 URL: https://svnweb.freebsd.org/changeset/base/349484 Log: MFC r346021: RISC-V: initialize pcpu slightly earlier In certain scenarios, it is possible for PCPU data to be accessed before it has been initialized (e.g. duri

svn commit: r349485 - in stable/12/sys: conf riscv/include riscv/riscv

2019-06-27 Thread Mitchell Horne
Author: mhorne Date: Fri Jun 28 00:43:38 2019 New Revision: 349485 URL: https://svnweb.freebsd.org/changeset/base/349485 Log: MFC 348835-348836: Fix global pointer relaxations in the RISC-V kernel The gp register is intended to used by the linker as another means of performing relaxatio

svn commit: r349486 - stable/12/sys/riscv/riscv

2019-06-27 Thread Mitchell Horne
Author: mhorne Date: Fri Jun 28 00:50:00 2019 New Revision: 349486 URL: https://svnweb.freebsd.org/changeset/base/349486 Log: MFC r348837: Add TSLOG events to initriscv() Approved by: markj (mentor, implicit) Modified: stable/12/sys/riscv/riscv/machdep.c Directory Properties: stable

svn commit: r349487 - stable/12/sys/riscv/riscv

2019-06-27 Thread Mitchell Horne
Author: mhorne Date: Fri Jun 28 00:53:27 2019 New Revision: 349487 URL: https://svnweb.freebsd.org/changeset/base/349487 Log: MFC r348838: Announce real and available memory at boot Approved by: markj (mentor, implicit) Modified: stable/12/sys/riscv/riscv/machdep.c stable/12/sys/ris

svn commit: r349488 - stable/12/sys/riscv/conf

2019-06-27 Thread Mitchell Horne
Author: mhorne Date: Fri Jun 28 00:56:26 2019 New Revision: 349488 URL: https://svnweb.freebsd.org/changeset/base/349488 Log: MFC r348839: Clean up some GENERIC options Approved by: markj (mentor) Modified: stable/12/sys/riscv/conf/GENERIC Directory Properties: stable/12/ (props c

svn commit: r349489 - stable/12/sys/riscv/riscv

2019-06-27 Thread Mitchell Horne
Author: mhorne Date: Fri Jun 28 00:58:54 2019 New Revision: 349489 URL: https://svnweb.freebsd.org/changeset/base/349489 Log: MFC r348840: Remove unused mcall_trap() function Approved by: markj (mentor, implicit) Modified: stable/12/sys/riscv/riscv/machdep.c Directory Properties: st

svn commit: r349490 - in stable/12/sys/riscv: include riscv

2019-06-27 Thread Mitchell Horne
Author: mhorne Date: Fri Jun 28 01:01:54 2019 New Revision: 349490 URL: https://svnweb.freebsd.org/changeset/base/349490 Log: MFC r348886: RISC-V: expose extension bits in AT_HWCAP Approved by: markj (mentor, implicit) Modified: stable/12/sys/riscv/include/elf.h stable/12/sys/riscv/

svn commit: r349491 - stable/12/usr.bin/procstat

2019-06-27 Thread Mitchell Horne
Author: mhorne Date: Fri Jun 28 01:03:55 2019 New Revision: 349491 URL: https://svnweb.freebsd.org/changeset/base/349491 Log: MFC r348887: procstat: Recognize HWCAP and HWCAP2 with auxv command Approved by: markj (mentor, implicit) Modified: stable/12/usr.bin/procstat/procstat_auxv.c

svn commit: r349492 - stable/11/usr.bin/procstat

2019-06-27 Thread Mitchell Horne
Author: mhorne Date: Fri Jun 28 01:07:19 2019 New Revision: 349492 URL: https://svnweb.freebsd.org/changeset/base/349492 Log: MFC r348887: procstat: Recognize HWCAP and HWCAP2 with auxv command Approved by: markj (mentor, implicit) Modified: stable/11/usr.bin/procstat/procstat_auxv.c

Re: svn commit: r349482 - in head/contrib/elftoolchain: common readelf

2019-06-28 Thread Mitchell Horne
On Fri, Jun 28, 2019 at 12:45 PM John Baldwin wrote: > > On 6/27/19 5:10 PM, Mitchell Horne wrote: > > Author: mhorne > > Date: Fri Jun 28 00:10:26 2019 > > New Revision: 349482 > > URL: https://svnweb.freebsd.org/changeset/base/349482 > > > > Log: >

svn commit: r349562 - head/contrib/elftoolchain/common

2019-06-30 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 30 19:43:13 2019 New Revision: 349562 URL: https://svnweb.freebsd.org/changeset/base/349562 Log: elftoolchain: fix an incorrect e_flags description r349482 introduced the definitions and descriptions of the RISC-V specific e_flags values to elftoolchain. Howev

svn commit: r349563 - head/contrib/elftoolchain/readelf

2019-06-30 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 30 19:47:15 2019 New Revision: 349563 URL: https://svnweb.freebsd.org/changeset/base/349563 Log: readelf: Add RISC-V DWARF register aliases This allows DWARF debugging output to use the common register mneumonics, such as ra, sp, or t0. DWARF registers 0-

svn commit: r349734 - stable/12/sys/sys

2019-07-04 Thread Mitchell Horne
Author: mhorne Date: Thu Jul 4 17:13:41 2019 New Revision: 349734 URL: https://svnweb.freebsd.org/changeset/base/349734 Log: MFC r349481: Add some missing RISC-V ELF defines Approved by: markj (implicit) Modified: stable/12/sys/sys/elf_common.h Directory Properties: stable/12/ (p

svn commit: r349736 - in stable/12/contrib/elftoolchain: common readelf

2019-07-04 Thread Mitchell Horne
Author: mhorne Date: Thu Jul 4 17:17:00 2019 New Revision: 349736 URL: https://svnweb.freebsd.org/changeset/base/349736 Log: MFC r349482,r349563: readelf: Add support for RISC-V specific e_flags Approved by: markj (mentor, implicit) Modified: stable/12/contrib/elftoolchain/common/elf

svn commit: r349737 - stable/12/contrib/elftoolchain/libelftc

2019-07-04 Thread Mitchell Horne
Author: mhorne Date: Thu Jul 4 17:19:08 2019 New Revision: 349737 URL: https://svnweb.freebsd.org/changeset/base/349737 Log: MFC r349483: libelftc: add RISC-V bfd targets Approved by: markj (mentor, implicit) Modified: stable/12/contrib/elftoolchain/libelftc/elftc_bfd_find_target.3

Re: svn commit: r349736 - in stable/12/contrib/elftoolchain: common readelf

2019-07-04 Thread Mitchell Horne
On Thu, Jul 4, 2019 at 1:17 PM Mitchell Horne wrote: > > Author: mhorne > Date: Thu Jul 4 17:17:00 2019 > New Revision: 349736 > URL: https://svnweb.freebsd.org/changeset/base/349736 > > Log: > MFC r349482,r349563: Apologies, this should read r349482,r349562. The

svn commit: r349738 - stable/12/contrib/elftoolchain/readelf

2019-07-04 Thread Mitchell Horne
Author: mhorne Date: Thu Jul 4 17:24:48 2019 New Revision: 349738 URL: https://svnweb.freebsd.org/changeset/base/349738 Log: MFC r349563: readelf: Add RISC-V DWARF register aliases Approved by: markj (mentor, implicit) Modified: stable/12/contrib/elftoolchain/readelf/readelf.c Direct

svn commit: r348835 - head/sys/riscv/riscv

2019-06-09 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 9 15:36:51 2019 New Revision: 348835 URL: https://svnweb.freebsd.org/changeset/base/348835 Log: Remove block of dead code Approved by: markj (mentor) Modified: head/sys/riscv/riscv/exception.S Modified: head/sys/riscv/riscv/exception.S

svn commit: r348836 - in head/sys: conf riscv/include riscv/riscv

2019-06-09 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 9 15:43:38 2019 New Revision: 348836 URL: https://svnweb.freebsd.org/changeset/base/348836 Log: Fix global pointer relaxations in the RISC-V kernel The gp register is intended to used by the linker as another means of performing relaxations, and should point

svn commit: r348837 - head/sys/riscv/riscv

2019-06-09 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 9 15:45:48 2019 New Revision: 348837 URL: https://svnweb.freebsd.org/changeset/base/348837 Log: Add TSLOG events to initriscv() Add the enter and exit events, similar to what's found in hammer_time() on amd64. We must use TSRAW as the pcpu isn't yet initial

svn commit: r348838 - head/sys/riscv/riscv

2019-06-09 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 9 15:48:36 2019 New Revision: 348838 URL: https://svnweb.freebsd.org/changeset/base/348838 Log: RISC-V: Announce real and available memory at boot Most architectures print their total (real) and available memory during boot. Properly initialize the realmem gl

svn commit: r348839 - head/sys/riscv/conf

2019-06-09 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 9 15:50:35 2019 New Revision: 348839 URL: https://svnweb.freebsd.org/changeset/base/348839 Log: RISC-V: Clean up some GENERIC options Some of the config options that are disabled by default seem to be only for historical reasons. Enable those that appear to n

svn commit: r348840 - head/sys/riscv/riscv

2019-06-09 Thread Mitchell Horne
Author: mhorne Date: Sun Jun 9 15:52:26 2019 New Revision: 348840 URL: https://svnweb.freebsd.org/changeset/base/348840 Log: Remove unused mcall_trap() function The mcall_trap() dummy function is unused, and should be removed as we are unlikely to support M-mode traps any time soon.

svn commit: r348886 - in head/sys/riscv: include riscv

2019-06-10 Thread Mitchell Horne
Author: mhorne Date: Tue Jun 11 00:55:54 2019 New Revision: 348886 URL: https://svnweb.freebsd.org/changeset/base/348886 Log: RISC-V: expose extension bits in AT_HWCAP AT_HWCAP is a field in the elf auxiliary vector meant to describe cpu-specific hardware features. For RISC-V we want to u

svn commit: r348887 - head/usr.bin/procstat

2019-06-10 Thread Mitchell Horne
Author: mhorne Date: Tue Jun 11 00:59:46 2019 New Revision: 348887 URL: https://svnweb.freebsd.org/changeset/base/348887 Log: procstat: Recognize HWCAP and HWCAP2 with auxv command The two most recent additions to the elf auxiliary vector are HWCAP and HWCAP2 which describe platform speci

Re: svn commit: r348886 - in head/sys/riscv: include riscv

2019-06-10 Thread Mitchell Horne
On Mon, Jun 10, 2019 at 9:12 PM Ian Lepore wrote: > > On Tue, 2019-06-11 at 00:55 +, Mitchell Horne wrote: > > Author: mhorne > > Date: Tue Jun 11 00:55:54 2019 > > New Revision: 348886 > > URL: https://svnweb.freebsd.org/changeset/base/348886 > > > >

svn commit: r346016 - in head: lib/clang lib/clang/include/llvm/Config lib/clang/libllvm share/man/man5 share/mk tools/build/options

2019-04-07 Thread Mitchell Horne
Author: mhorne Date: Sun Apr 7 18:24:26 2019 New Revision: 346016 URL: https://svnweb.freebsd.org/changeset/base/346016 Log: Add option to build LLVM RISC-V target Reviewed by: emaste, dim Approved by: markj (mentor) MFC after:3 weeks Differential Revision:https://revie

svn commit: r346021 - in head/sys/riscv: include riscv

2019-04-07 Thread Mitchell Horne
Author: mhorne Date: Sun Apr 7 20:12:24 2019 New Revision: 346021 URL: https://svnweb.freebsd.org/changeset/base/346021 Log: RISC-V: initialize pcpu slightly earlier In certain scenarios, it is possible for PCPU data to be accessed before it has been initialized (e.g. during printf if

svn commit: r346891 - in stable/11: lib/clang lib/clang/include/llvm/Config lib/clang/libllvm share/man/man5 share/mk tools/build/options

2019-04-29 Thread Mitchell Horne
Author: mhorne Date: Mon Apr 29 16:14:24 2019 New Revision: 346891 URL: https://svnweb.freebsd.org/changeset/base/346891 Log: MFC r346016: Add option to build LLVM RISC-V target Approved by: markj (mentor) Added: stable/11/tools/build/options/WITHOUT_LLVM_TARGET_RISCV - copied un

svn commit: r346892 - in stable/12: lib/clang lib/clang/include/llvm/Config lib/clang/libllvm share/man/man5 share/mk tools/build/options

2019-04-29 Thread Mitchell Horne
Author: mhorne Date: Mon Apr 29 16:16:00 2019 New Revision: 346892 URL: https://svnweb.freebsd.org/changeset/base/346892 Log: MFC r346016: Add option to build LLVM RISC-V target Approved by: markj (mentor) Added: stable/12/tools/build/options/WITHOUT_LLVM_TARGET_RISCV - copied un

svn commit: r345417 - in head: share/misc usr.bin/calendar/calendars

2019-03-22 Thread Mitchell Horne
ov\nmelif...@freebsd.org\n2011/10/04"] +mhorne [label="Mitchell Horne\nmho...@freebsd.org\n2019/03/20"] miwi [label="Martin Wilke\nm...@freebsd.org\n2011/02/18\n2018/06/14"] mizhka [label="Michael Zhilin\nmiz...@freebsd.org\n2016/07/19"] mjacob [label="M

svn commit: r352033 - head/share/mk

2019-09-08 Thread Mitchell Horne
Author: mhorne Date: Sun Sep 8 19:40:52 2019 New Revision: 352033 URL: https://svnweb.freebsd.org/changeset/base/352033 Log: Allow for compiler versions >= 10 Both clang and gcc development branches have reached version 10. Since we only parse for a single digit in the major version numb

svn commit: r352034 - head/sys/conf

2019-09-08 Thread Mitchell Horne
Author: mhorne Date: Sun Sep 8 19:44:21 2019 New Revision: 352034 URL: https://svnweb.freebsd.org/changeset/base/352034 Log: RISC-V: fix kernel CFLAGS with clang Use the -march and -mabi flags for both gcc and clang as they are compatible. Specify the "medium" code model separately as it

svn commit: r352035 - head/sys/riscv/riscv

2019-09-08 Thread Mitchell Horne
Author: mhorne Date: Sun Sep 8 19:46:34 2019 New Revision: 352035 URL: https://svnweb.freebsd.org/changeset/base/352035 Log: Remove a duplicate KTR entry Reviewed by: markj Approved by: markj (mentor) Differential Revision:https://reviews.freebsd.org/D21438 Modified: head/

svn commit: r352036 - head/sys/riscv/riscv

2019-09-08 Thread Mitchell Horne
Author: mhorne Date: Sun Sep 8 19:53:11 2019 New Revision: 352036 URL: https://svnweb.freebsd.org/changeset/base/352036 Log: Fix compilation of locore.S with clang The branch from _start to mpentry has to cross a large section of data; an offset larger than can be specified with a 12-bit

svn commit: r352048 - head/lib/libc/sys

2019-09-08 Thread Mitchell Horne
Author: mhorne Date: Sun Sep 8 21:37:52 2019 New Revision: 352048 URL: https://svnweb.freebsd.org/changeset/base/352048 Log: Fix cpuwhich_t column width Not bumping .Dd since this is purely a format change. Approved by: markj (mentor) Modified: head/lib/libc/sys/cpuset.2 Modified

svn commit: r352428 - stable/12/lib/libc/sys

2019-09-16 Thread Mitchell Horne
Author: mhorne Date: Mon Sep 16 22:00:29 2019 New Revision: 352428 URL: https://svnweb.freebsd.org/changeset/base/352428 Log: MFC r352048: Fix cpuwhich_t column width Modified: stable/12/lib/libc/sys/cpuset.2 Directory Properties: stable/12/ (props changed) Modified: stable/12/lib/l

svn commit: r352429 - stable/11/lib/libc/sys

2019-09-16 Thread Mitchell Horne
Author: mhorne Date: Mon Sep 16 22:02:14 2019 New Revision: 352429 URL: https://svnweb.freebsd.org/changeset/base/352429 Log: MFC r352048: Fix cpuwhich_t column width Modified: stable/11/lib/libc/sys/cpuset.2 Directory Properties: stable/11/ (props changed) Modified: stable/11/lib/l

svn commit: r352430 - in head/sys/riscv: conf riscv

2019-09-16 Thread Mitchell Horne
Author: mhorne Date: Mon Sep 16 22:17:16 2019 New Revision: 352430 URL: https://svnweb.freebsd.org/changeset/base/352430 Log: RISC-V: Support EARLY_AP_STARTUP The EARLY_AP_STARTUP option initializes non-boot processors much sooner during startup. This adds support for this option on RIS

svn commit: r352637 - stable/12/share/mk

2019-09-23 Thread Mitchell Horne
Author: mhorne Date: Tue Sep 24 02:28:17 2019 New Revision: 352637 URL: https://svnweb.freebsd.org/changeset/base/352637 Log: MFC r352033: Allow for compiler versions >= 10 Modified: stable/12/share/mk/bsd.compiler.mk Directory Properties: stable/12/ (props changed) Modified: stable

svn commit: r352638 - stable/11/share/mk

2019-09-23 Thread Mitchell Horne
Author: mhorne Date: Tue Sep 24 02:30:32 2019 New Revision: 352638 URL: https://svnweb.freebsd.org/changeset/base/352638 Log: MFC r352033: Allow for compiler versions >= 10 Modified: stable/11/share/mk/bsd.compiler.mk Directory Properties: stable/11/ (props changed) Modified: stable

svn commit: r352639 - stable/12/sys/conf

2019-09-23 Thread Mitchell Horne
Author: mhorne Date: Tue Sep 24 02:33:03 2019 New Revision: 352639 URL: https://svnweb.freebsd.org/changeset/base/352639 Log: MFC r352034: RISC-V: fix kernel CFLAGS with clang Modified: stable/12/sys/conf/kern.mk Directory Properties: stable/12/ (props changed) Modified: stable/12/s

svn commit: r352640 - stable/12/sys/riscv/riscv

2019-09-23 Thread Mitchell Horne
Author: mhorne Date: Tue Sep 24 02:36:09 2019 New Revision: 352640 URL: https://svnweb.freebsd.org/changeset/base/352640 Log: MFC r352035: Remove a duplicate KTR entry Modified: stable/12/sys/riscv/riscv/intr_machdep.c Directory Properties: stable/12/ (props changed) Modified: stabl

svn commit: r352641 - stable/12/sys/riscv/riscv

2019-09-23 Thread Mitchell Horne
Author: mhorne Date: Tue Sep 24 02:38:08 2019 New Revision: 352641 URL: https://svnweb.freebsd.org/changeset/base/352641 Log: MFC r352036: Fix compilation of locore.S with clang Modified: stable/12/sys/riscv/riscv/locore.S Directory Properties: stable/12/ (props changed) Modified: s

svn commit: r352642 - in stable/12/sys/riscv: conf riscv

2019-09-23 Thread Mitchell Horne
Author: mhorne Date: Tue Sep 24 02:41:39 2019 New Revision: 352642 URL: https://svnweb.freebsd.org/changeset/base/352642 Log: MFC r352430: RISC-V: Support EARLY_AP_STARTUP Modified: stable/12/sys/riscv/conf/GENERIC stable/12/sys/riscv/riscv/clock.c stable/12/sys/riscv/riscv/mp_machde

svn commit: r352729 - head/sys/riscv/riscv

2019-09-25 Thread Mitchell Horne
Author: mhorne Date: Thu Sep 26 00:54:07 2019 New Revision: 352729 URL: https://svnweb.freebsd.org/changeset/base/352729 Log: Cleanup of elf_machdep.c Fix some style(9) violations. This also changes the name of the machine-dependent sysctl kern.debug_kld to debug.kld_reloc, and chang

svn commit: r352730 - head/sys/riscv/riscv

2019-09-25 Thread Mitchell Horne
Author: mhorne Date: Thu Sep 26 00:58:47 2019 New Revision: 352730 URL: https://svnweb.freebsd.org/changeset/base/352730 Log: Fix some broken relocation handling In a few cases, the symbol lookup is missing before attempting to perform the relocation. While the relocation types affected a

svn commit: r367020 - in head/sys/riscv: include riscv

2020-10-24 Thread Mitchell Horne
Author: mhorne Date: Sat Oct 24 20:57:13 2020 New Revision: 367020 URL: https://svnweb.freebsd.org/changeset/base/367020 Log: riscv: improve exception code naming The existing names were inherited from arm64, but we should prefer RISC-V terminology. Change the prefix to SCAUSE, and furthe

svn commit: r367033 - head/sys/cddl/dev/dtrace/riscv

2020-10-24 Thread Mitchell Horne
Author: mhorne Date: Sat Oct 24 23:21:51 2020 New Revision: 367033 URL: https://svnweb.freebsd.org/changeset/base/367033 Log: Fix build after r367020 DTrace also relies on these definitions. Reported by: jenkins Modified: head/sys/cddl/dev/dtrace/riscv/dtrace_subr.c Modified: head

svn commit: r367067 - in head/sys/riscv: include riscv

2020-10-26 Thread Mitchell Horne
Author: mhorne Date: Mon Oct 26 19:06:30 2020 New Revision: 367067 URL: https://svnweb.freebsd.org/changeset/base/367067 Log: riscv: remove sbi_clear_ipi() S-mode software has write access to the SIP.SSIP bit, so instead of making a second round-trip through the SBI we can clear it oursel

svn commit: r367068 - in head/sys/riscv: include riscv

2020-10-26 Thread Mitchell Horne
Author: mhorne Date: Mon Oct 26 19:13:22 2020 New Revision: 367068 URL: https://svnweb.freebsd.org/changeset/base/367068 Log: riscv: make use of SBI legacy replacement extensions Version 0.2 of the SBI specification [1] marked the existing SBI functions as "legacy" in order to move to a n

svn commit: r367163 - head/sys/net

2020-10-30 Thread Mitchell Horne
Author: mhorne Date: Fri Oct 30 13:32:58 2020 New Revision: 367163 URL: https://svnweb.freebsd.org/changeset/base/367163 Log: net: add ETHER_IS_IPV6_MULTICAST This can be used to detect if an ethernet address is specifically an IPv6 multicast address, defined in accordance to RFC 2464.

svn commit: r367175 - head/release/tools

2020-10-30 Thread Mitchell Horne
Author: mhorne Date: Fri Oct 30 18:16:10 2020 New Revision: 367175 URL: https://svnweb.freebsd.org/changeset/base/367175 Log: Slight refactor in vmimage.subr De-duplicate the invocation of mkimg(1). No functional change. Reviewed by: gjb MFC after:2 weeks Sponsored by: The Fre

svn commit: r367176 - head/release/tools

2020-10-30 Thread Mitchell Horne
Author: mhorne Date: Fri Oct 30 18:18:25 2020 New Revision: 367176 URL: https://svnweb.freebsd.org/changeset/base/367176 Log: vmimage.subr: noisier failure for unsupported targets The return code of write_partition_layout() doesn't bubble up, so an invocation of make vm-release for an inc

svn commit: r367177 - in head/release: scripts tools

2020-10-30 Thread Mitchell Horne
Author: mhorne Date: Fri Oct 30 18:20:52 2020 New Revision: 367177 URL: https://svnweb.freebsd.org/changeset/base/367177 Log: arm64: convert virtual machine images to GPT These images were switched to MBR in r281876 as a way to cope with a hard-coded partition GUID in QEMU's default EFI f

svn commit: r367178 - head/release/arm64

2020-10-30 Thread Mitchell Horne
Author: mhorne Date: Fri Oct 30 18:22:46 2020 New Revision: 367178 URL: https://svnweb.freebsd.org/changeset/base/367178 Log: arm64: set the correct partition type in make-memstick.sh We create a UFS root filesystem using makefs(8), and later pass it to mkimg(1) when creating the final im

svn commit: r367356 - head/sys/riscv/riscv

2020-11-04 Thread Mitchell Horne
Author: mhorne Date: Thu Nov 5 00:52:52 2020 New Revision: 367356 URL: https://svnweb.freebsd.org/changeset/base/367356 Log: riscv: set kernel_pmap hart mask more precisely In pmap_bootstrap(), we fill kernel_pmap->pm_active since it is invariably active on all harts. However, this marks

svn commit: r367493 - head/sys/netinet

2020-11-08 Thread Mitchell Horne
Author: mhorne Date: Sun Nov 8 18:49:23 2020 New Revision: 367493 URL: https://svnweb.freebsd.org/changeset/base/367493 Log: igmp: convert igmpstat to use PCPU counters Currently there is no locking done to protect this structure. It is likely okay due to the low-volume nature of IGMP, b

svn commit: r367494 - head/sys/net

2020-11-08 Thread Mitchell Horne
Author: mhorne Date: Sun Nov 8 19:02:22 2020 New Revision: 367494 URL: https://svnweb.freebsd.org/changeset/base/367494 Log: Fix definition of rn_addmask() Add the missing static keyword present in the declaration. Reviewed by: melifaro Sponsored by: NetApp, Inc. Sponsored by: Kl

svn commit: r367528 - stable/12/sys/kern

2020-11-09 Thread Mitchell Horne
Author: mhorne Date: Mon Nov 9 18:07:21 2020 New Revision: 367528 URL: https://svnweb.freebsd.org/changeset/base/367528 Log: MFC r366526: Handle kmod local relocation failures gracefully Modified: stable/12/sys/kern/link_elf_obj.c Directory Properties: stable/12/ (props changed) Modif

svn commit: r367729 - stable/12/release/tools

2020-11-16 Thread Mitchell Horne
Author: mhorne Date: Mon Nov 16 17:41:05 2020 New Revision: 367729 URL: https://svnweb.freebsd.org/changeset/base/367729 Log: MFC r367175: Slight refactor in vmimage.subr Modified: stable/12/release/tools/vmimage.subr Directory Properties: stable/12/ (props changed) Modified: stable/12

svn commit: r367730 - stable/12/release/tools

2020-11-16 Thread Mitchell Horne
Author: mhorne Date: Mon Nov 16 17:42:22 2020 New Revision: 367730 URL: https://svnweb.freebsd.org/changeset/base/367730 Log: MFC r367176: vmimage.subr: noisier failure for unsupported targets Modified: stable/12/release/tools/vmimage.subr Directory Properties: stable/12/ (props changed

svn commit: r367731 - in stable/12/release: scripts tools

2020-11-16 Thread Mitchell Horne
Author: mhorne Date: Mon Nov 16 17:44:34 2020 New Revision: 367731 URL: https://svnweb.freebsd.org/changeset/base/367731 Log: MFC r367177: arm64: convert virtual machine images to GPT Modified: stable/12/release/scripts/mk-vmimage.sh stable/12/release/tools/vmimage.subr Directory Properti

svn commit: r367732 - stable/12/release/arm64

2020-11-16 Thread Mitchell Horne
Author: mhorne Date: Mon Nov 16 17:45:42 2020 New Revision: 367732 URL: https://svnweb.freebsd.org/changeset/base/367732 Log: MFC r367178: arm64: set the correct partition type in make-memstick.sh Modified: stable/12/release/arm64/make-memstick.sh Directory Properties: stable/12/ (props

svn commit: r367734 - head/usr.bin/bsdiff/bsdiff

2020-11-16 Thread Mitchell Horne
Author: mhorne Date: Mon Nov 16 18:41:49 2020 New Revision: 367734 URL: https://svnweb.freebsd.org/changeset/base/367734 Log: bsdiff: fix off-by-one error The program reads oldsize bytes from oldfile, and proceeds to initialize a suffix array of oldsize elements using divsufsort(). As per

svn commit: r367848 - in head: share/man/man4 sys/kern

2020-11-19 Thread Mitchell Horne
Author: mhorne Date: Thu Nov 19 18:03:40 2020 New Revision: 367848 URL: https://svnweb.freebsd.org/changeset/base/367848 Log: Add an option for entering KDB on recursive panics There are many cases where one would choose avoid entering the debugger on a normal panic, opting instead to reb

svn commit: r367894 - head/sys/net

2020-11-20 Thread Mitchell Horne
Author: mhorne Date: Fri Nov 20 14:45:45 2020 New Revision: 367894 URL: https://svnweb.freebsd.org/changeset/base/367894 Log: Make net/ifq.h C++ friendly Don't use "new" as an identifier, and add explicit casts from void *. As a general policy, FreeBSD doesn't make any C++ compatibilit

svn commit: r367896 - head/sys/riscv/riscv

2020-11-20 Thread Mitchell Horne
Author: mhorne Date: Fri Nov 20 15:21:10 2020 New Revision: 367896 URL: https://svnweb.freebsd.org/changeset/base/367896 Log: riscv: always initialize the static kernel environment Ensure we initialize the static environment when not booting via loader(8), and provide a static buffer if t

svn commit: r368200 - head/usr.sbin/efibootmgr

2020-11-30 Thread Mitchell Horne
Author: mhorne Date: Mon Nov 30 22:16:11 2020 New Revision: 368200 URL: https://svnweb.freebsd.org/changeset/base/368200 Log: efibootmgr: fix an incorrect error handling check efivar_device_path_to_unix_path() returns standard error codes on failure and zero on success. Checking for a ret

svn commit: r368281 - head/sys/dev/e1000

2020-12-02 Thread Mitchell Horne
Author: mhorne Date: Wed Dec 2 17:37:32 2020 New Revision: 368281 URL: https://svnweb.freebsd.org/changeset/base/368281 Log: em: fix a null de-reference in em_free_pci_resources A failure in iflib_device_register() can result in em_free_pci_resources() being called after receive queues h

svn commit: r368284 - head/sys/dev/uart

2020-12-02 Thread Mitchell Horne
Author: mhorne Date: Wed Dec 2 21:01:52 2020 New Revision: 368284 URL: https://svnweb.freebsd.org/changeset/base/368284 Log: uart: allow UART_DEV_DBGPORT for fdt consoles Allow fdt devices to be used as debug ports for gdb(4). A debug console can be specified with the "freebsd,debug-p

svn commit: r368301 - stable/12/usr.bin/bsdiff/bsdiff

2020-12-03 Thread Mitchell Horne
Author: mhorne Date: Thu Dec 3 14:04:42 2020 New Revision: 368301 URL: https://svnweb.freebsd.org/changeset/base/368301 Log: MFC r367734: bsdiff: fix off-by-one error Modified: stable/12/usr.bin/bsdiff/bsdiff/bsdiff.c Directory Properties: stable/12/ (props changed) Modified: stable/1

svn commit: r368349 - in head/sys: conf crypto/openssl modules/ossl

2020-12-04 Thread Mitchell Horne
Author: mhorne Date: Fri Dec 4 20:54:20 2020 New Revision: 368349 URL: https://svnweb.freebsd.org/changeset/base/368349 Log: ossl: split out x86 bits to x86/ossl_cpuid.c Make room for adding arm64 support to this driver by moving the x86-specific feature parsing to a separate file.

svn commit: r368350 - in head: share/man/man4 sys/conf sys/crypto/openssl sys/crypto/openssl/aarch64 sys/modules sys/modules/ossl tests/sys/opencrypto

2020-12-04 Thread Mitchell Horne
define ARMV8_SHA512(1<<6) + +#endif Added: head/sys/crypto/openssl/ossl_aarch64.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/crypto/openssl/ossl_aarch64.c Fri Dec 4

svn commit: r368421 - in head/release: . tools

2020-12-07 Thread Mitchell Horne
Author: mhorne Date: Tue Dec 8 00:35:13 2020 New Revision: 368421 URL: https://svnweb.freebsd.org/changeset/base/368421 Log: release.sh: add support for RISC-V embedded builds Since the few existing RISC-V hardware platforms are single board computers, we can piggyback off of arm/arm64's

svn commit: r368422 - in head: release/tools tools/boot

2020-12-07 Thread Mitchell Horne
Author: mhorne Date: Tue Dec 8 00:37:11 2020 New Revision: 368422 URL: https://svnweb.freebsd.org/changeset/base/368422 Log: riscv: allow building virtual machine images RISC-V has the same booting requirements as arm64 (loader.efi, no legacy boot options), so generated images for both a

svn commit: r368423 - head/release/riscv

2020-12-07 Thread Mitchell Horne
Author: mhorne Date: Tue Dec 8 00:42:03 2020 New Revision: 368423 URL: https://svnweb.freebsd.org/changeset/base/368423 Log: RISC-V release confs Add two release flavors for RISC-V. First, the traditional "big-iron" images, capable of generating distribution sets and VM images. Installer

svn commit: r368424 - head/release

2020-12-07 Thread Mitchell Horne
Author: mhorne Date: Tue Dec 8 00:48:50 2020 New Revision: 368424 URL: https://svnweb.freebsd.org/changeset/base/368424 Log: release: don't checksum images if there are none For platforms that don't have any of the memstick, cdrom, or dvdrom release images (i.e. riscv64), the release-ins

svn commit: r368458 - head/sys/arm64/linux

2020-12-08 Thread Mitchell Horne
Author: mhorne Date: Tue Dec 8 18:24:33 2020 New Revision: 368458 URL: https://svnweb.freebsd.org/changeset/base/368458 Log: arm64: fix struct l_sigaction_t layout The definition was copied from amd64, but the layout of the struct differs slightly between these platforms. This fixes spur

svn commit: r356592 - head/sys/riscv/riscv

2020-01-09 Thread Mitchell Horne
Author: mhorne Date: Fri Jan 10 03:17:28 2020 New Revision: 356592 URL: https://svnweb.freebsd.org/changeset/base/356592 Log: Replace inline assembly with rdtime macro This macro is used elsewhere and is slightly cleaner. NFC. Modified: head/sys/riscv/riscv/timer.c Modified: head/sys/ri

svn commit: r356675 - head/sys/riscv/riscv

2020-01-12 Thread Mitchell Horne
Author: mhorne Date: Mon Jan 13 03:39:02 2020 New Revision: 356675 URL: https://svnweb.freebsd.org/changeset/base/356675 Log: RISC-V: fix global symbol lookups for mpentry with lld This is a follow up to r356481. In locore.S, before virtual memory is set up, we should avoid using indirect

svn commit: r356835 - head/sys/riscv/riscv

2020-01-17 Thread Mitchell Horne
Author: mhorne Date: Fri Jan 17 17:03:25 2020 New Revision: 356835 URL: https://svnweb.freebsd.org/changeset/base/356835 Log: RISC-V: fix global pointer assignment at boot As part of the RISC-V ABI, the gp register is expected to initialized with the address of __global_pointer$ as early

svn commit: r357255 - head/sys/riscv/include

2020-01-29 Thread Mitchell Horne
Author: mhorne Date: Wed Jan 29 15:50:48 2020 New Revision: 357255 URL: https://svnweb.freebsd.org/changeset/base/357255 Log: Fix definition of SSTATUS_SD The SD bit is defined as the MSB of the sstatus register, meaning its position will vary depending on the CSR's length. Previously, th

svn commit: r357256 - head/sys/dev/cadence

2020-01-29 Thread Mitchell Horne
Author: mhorne Date: Wed Jan 29 15:58:19 2020 New Revision: 357256 URL: https://svnweb.freebsd.org/changeset/base/357256 Log: cgem: Add another compat string for the SiFive fu540 Newer device trees use "sifive,fu540-c000-gem" instead of "cdns,macb". Reviewed by: br, kp Differential

svn commit: r357369 - head/sys/riscv/sifive

2020-02-01 Thread Mitchell Horne
Author: mhorne Date: Sat Feb 1 17:09:56 2020 New Revision: 357369 URL: https://svnweb.freebsd.org/changeset/base/357369 Log: prci: register the DDR and GEMGX PLLs The PRCI module exports three PLLs. Currently only the coreclk/corepll is registered, so add the logic to register the DDR (m

svn commit: r357370 - head/sys/riscv/sifive

2020-02-01 Thread Mitchell Horne
Author: mhorne Date: Sat Feb 1 17:12:15 2020 New Revision: 357370 URL: https://svnweb.freebsd.org/changeset/base/357370 Log: prci: fix up compat Add two additional compat strings that can be used to identify the PRCI. With newer device trees the PRCI has two parents, hfclk and rtcclk,

svn commit: r357371 - head/sys/riscv/sifive

2020-02-01 Thread Mitchell Horne
Author: mhorne Date: Sat Feb 1 17:13:52 2020 New Revision: 357371 URL: https://svnweb.freebsd.org/changeset/base/357371 Log: prci: register tlclk as a fixed clock The PRCI exports tlclk as a constant fixed divisor clock, defined as 1/2 of the coreclk frequency. In older FU540 device tree

svn commit: r361086 - in stable/12/sys/riscv: include riscv

2020-05-15 Thread Mitchell Horne
Author: mhorne Date: Fri May 15 20:01:30 2020 New Revision: 361086 URL: https://svnweb.freebsd.org/changeset/base/361086 Log: MFC r360551-r360554 This set of changes allows booting with OpenSBI v0.7. r360551: Make mpentry independent of _start r360552: Add support for HSM SBI

svn commit: r361402 - head/sys/conf

2020-05-22 Thread Mitchell Horne
Author: mhorne Date: Fri May 22 18:54:56 2020 New Revision: 361402 URL: https://svnweb.freebsd.org/changeset/base/361402 Log: Simplify the RISC-V kernel linker invocation Remove our custom SYSTEM_LD definition. This generates program headers that are more consistent with other architectur

svn commit: r361587 - in head/sys/riscv: include riscv

2020-05-28 Thread Mitchell Horne
Author: mhorne Date: Thu May 28 14:56:11 2020 New Revision: 361587 URL: https://svnweb.freebsd.org/changeset/base/361587 Log: Add macros simplifying the fake preload setup This is in preparation for booting via loader(8). Lift these macros from arm64 so we don't need to worry about the si

svn commit: r361661 - in head/sys: arm/arm arm/include arm64/arm64 riscv/riscv

2020-05-31 Thread Mitchell Horne
Author: mhorne Date: Sun May 31 14:43:04 2020 New Revision: 361661 URL: https://svnweb.freebsd.org/changeset/base/361661 Log: Remove remnant of arm's ELF trampoline The trampoline code used for loading gzipped a.out kernels on arm was removed in r350436. A portion of this code allowed for

svn commit: r361754 - head/stand/efi/gptboot

2020-06-03 Thread Mitchell Horne
Author: mhorne Date: Wed Jun 3 16:38:16 2020 New Revision: 361754 URL: https://svnweb.freebsd.org/changeset/base/361754 Log: gptboot.efi: align secbuf to 4K The u-boot EFI implementation of the ReadBlocks and WriteBlocks methods requires that the provided buffer meet the IO alignment req

svn commit: r361802 - in head/sys/contrib/edk2: . Include Include/Guid Include/IndustryStandard Include/Library Include/Protocol Include/Uefi

2020-06-04 Thread Mitchell Horne
Author: mhorne Date: Thu Jun 4 19:21:41 2020 New Revision: 361802 URL: https://svnweb.freebsd.org/changeset/base/361802 Log: Update edk2 headers to stable202005 We use these to compile libefivar. The particular motivation for this update is the inclusion of the RISC-V machine definition

svn commit: r361807 - head/sys/contrib/edk2

2020-06-04 Thread Mitchell Horne
Author: mhorne Date: Thu Jun 4 20:48:57 2020 New Revision: 361807 URL: https://svnweb.freebsd.org/changeset/base/361807 Log: Document upgrade procedure in FREEBSD-upgrade It was pointed out to me that this is the convention for documenting upgrade instructions, rather than just leaving t

Re: svn commit: r361587 - in head/sys/riscv: include riscv

2020-06-08 Thread Mitchell Horne
On Thu, May 28, 2020 at 11:56 AM Mitchell Horne wrote: > > Author: mhorne > Date: Thu May 28 14:56:11 2020 > New Revision: 361587 > URL: https://svnweb.freebsd.org/changeset/base/361587 > > Log: > Add macros simplifying the fake preload setup > > This is in prep

svn commit: r365455 - in head/sys: dev/xilinx riscv/riscv

2020-09-08 Thread Mitchell Horne
Author: mhorne Date: Tue Sep 8 13:21:13 2020 New Revision: 365455 URL: https://svnweb.freebsd.org/changeset/base/365455 Log: RISC-V: fix some mismatched format specifiers RISC-V is currently built with -Wno-format, which is how these went undetected. Address them now before re-enabling t

svn commit: r365456 - head/sys/conf

2020-09-08 Thread Mitchell Horne
Author: mhorne Date: Tue Sep 8 13:24:44 2020 New Revision: 365456 URL: https://svnweb.freebsd.org/changeset/base/365456 Log: RISC-V: enable MK_FORMAT_EXTENSIONS This option was marked as broken because our riscv64-xtoolchain-gcc package lacked support. Since we are moving away from xtool

  1   2   3   >