| /freebsd/sys/contrib/device-tree/Bindings/riscv/ |
| H A D | extensions.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 --- 4 $id: http://devicetree.org/schemas/riscv/extensions.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: RISC-V ISA extensions 10 - Paul Walmsley <paul.walmsley@sifive.com> 11 - Palmer Dabbelt <palmer@sifive.com> 12 - Conor Dooley <conor@kernel.org> 15 RISC-V has a large number of extensions, some of which are "standard" 16 extensions, meaning they are ratified by RISC-V International, and others [all …]
|
| /freebsd/sys/conf/ |
| H A D | files.riscv | 1 cddl/dev/dtrace/riscv/dtrace_asm.S optional dtrace compile-with "${DTRACE_S}" 2 cddl/dev/dtrace/riscv/dtrace_isa.c optional dtrace compile-with "${DTRACE_C}" 3 cddl/dev/dtrace/riscv/dtrace_subr.c optional dtrace compile-with "${DTRACE_C}" 4 cddl/dev/dtrace/riscv/instr_size.c optional dtrace compile-with "${DTRACE_C}" 5 cddl/dev/fbt/riscv/fbt_isa.c optional dtrace_fbt | dtraceall compile-with "${FBT_C}" 6 crypto/des/des_enc.c optional netsmb 42 riscv/riscv/aplic.c standard 43 riscv/riscv/autoconf.c standard 44 riscv/riscv/bus_machdep.c standard 45 riscv/riscv/bus_space_asm.S standard [all …]
|
| /freebsd/sys/contrib/device-tree/src/riscv/starfive/ |
| H A D | jh7110.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 7 /dts-v1/; 8 #include <dt-bindings/clock/starfive,jh7110-crg.h> 9 #include <dt-bindings/power/starfive,jh7110-pmu.h> 10 #include <dt-bindings/reset/starfive,jh7110-crg.h> 11 #include <dt-bindings/thermal/thermal.h> 15 #address-cells = <2>; 16 #size-cells = <2>; 19 #address-cells = <1>; 20 #size-cells = <0>; [all …]
|
| /freebsd/sys/ |
| H A D | README.md | 2 ---------------------- 9 contains documentation of all possible entries. `LINT` is a compile-only 13 -------------- 17 top-level of the src tree. Consult [`intro(9)`](https://man.freebsd.org/intro/9) 20 Some additional high-level documentation of the kernel is maintained in the 21 [Architecture Handbook](https://docs.freebsd.org/en/books/arch-handbook/). 24 --------------- 26 | --------- | ----------- | 27 | amd64 | AMD64 (64-bit x86) architecture support | 28 | arm | 32-bit ARM architecture support | [all …]
|
| H A D | Makefile | 2 CSCOPEDIRS= bsm cam cddl compat conf contrib crypto ddb dev fs gdb \ 9 CSCOPE_ARCHDIR = amd64 arm arm64 i386 powerpc riscv x86 18 HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < c… 23 cd ${.CURDIR}; cscope -k -buq -p4 -v 27 find ${CSCOPEDIRS} -name "*.[chSsly]" -a -type f > ${.TARGET} 29 cscope-clean: 31 rm -f cscope.files cscope.out cscope.in.out cscope.po.out 40 HG_HOOK=if [ \$$HG_ERROR -eq 0 ]; then cd sys && make -m ../share/mk cscope; fi 41 cscope-hook: 42 @if [ -d ${HG_DIR} ]; then \ [all …]
|
| /freebsd/share/man/man5/ |
| H A D | src.conf.5 | 1 .\" DO NOT EDIT-- this file is @generated by tools/build/options/makeman. 43 may be necessary if the system-wide settings are not suitable 75 .Pa /etc/src-env.conf . 82 as they are environment-only variables. 99 .Bl -tag -width indent 117 memory corruption bugs such as buffer overflows or use-after-free. 122 .Bl -item -compact 150 .Pa /etc/src-env.conf , 185 .Bl -inset -compact 219 flag set to indicate that the run-time loader should perform all relocation [all …]
|
| /freebsd/sys/riscv/conf/ |
| H A D | GENERIC | 2 # GENERIC -- Generic kernel configuration file for FreeBSD/RISC-V 7 # https://docs.freebsd.org/en/books/handbook/kernelconfig/#kernelconfig-config 20 cpu RISCV 23 makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols 42 options UFS_GJOURNAL # Enable gjournal-based UFS journaling 51 options PSEUDOFS # Pseudo-filesystem framework 61 options SYSVSHM # SYSV-style shared memory 62 options SYSVMSG # SYSV-style message queues 63 options SYSVSEM # SYSV-style semaphores 64 options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions [all …]
|
| /freebsd/stand/libsa/ |
| H A D | Makefile | 4 # - We don't use the libc strerror/sys_errlist because the string table is 47 # translate to the -Bsymbolic -pie format required by self_reloc() in loader(8). 49 CFLAGS.clang+= -mno-movt 50 CFLAGS.clang+= -mfpu=none 52 .PATH: ${SRCTOP}/contrib/llvm-project/compiler-rt/lib/builtins/arm/ 57 .if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "riscv" 62 .PATH: ${SRCTOP}/contrib/llvm-project/compiler-rt/lib/builtins/ 92 CFLAGS.${i}+= -DBZ_NO_STDIO -DBZ_NO_COMPRESS 100 ZLIB_CFLAGS=-DHAVE_MEMCPY -I${SRCTOP}/sys/contrib/zlib ${NO_WDEPRECATED_NON_PROTOTYPE} 109 CFLAGS.lz4.c+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/lz4 [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaRISCV.cpp | 1 //===------ SemaRISCV.cpp ------- RISC-V target-specific routines ---------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // This file implements semantic analysis functions specific to RISC-V. 11 //===----------------------------------------------------------------------===// 35 using namespace clang::RISCV; 43 /// Mapping to which clang built-in function, e.g. __builtin_rvv_vadd. 95 switch (Type->getScalarType()) { in RVVType2Qual() 115 QT = Context.getIntTypeForBitwidth(Type->getElementBitwidth(), true); in RVVType2Qual() 118 QT = Context.getIntTypeForBitwidth(Type->getElementBitwidth(), false); in RVVType2Qual() [all …]
|
| /freebsd/sys/modules/ |
| H A D | Makefile | 6 # Modules that include binary-only blobs of microcode should be selectable by 463 _crypto= crypto 655 ${MACHINE_CPUARCH} != "riscv" 683 ${MACHINE_CPUARCH} == "riscv" 876 ${MACHINE_CPUARCH} == "riscv" 885 # XXX some of these can move to the general case when de-i386'ed 952 .endif # MODULES_OVERRIDE -- Keep last 956 .MAKEFLAGS+= -DNO_XREF 961 cat -l >> ${METALOG}
|
| /freebsd/crypto/openssl/crypto/modes/asm/ |
| H A D | ghash-riscv64.pl | 2 # This file is dual-licensed, meaning that you can use it under your 5 # Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved. 43 use riscv; 61 # input: H: 128-bit H - secret parameter E(K, 0^128) 65 # All callers of this function revert the byte-order unconditionally 66 # on little-endian machines. So we need to revert the byte-order back. 84 .size gcm_init_rv64i_zbc,.-gcm_init_rv64i_zbc 105 .size gcm_init_rv64i_zbc__zbb,.-gcm_init_rv64i_zbc__zbb 126 .size gcm_init_rv64i_zbc__zbkb,.-gcm_init_rv64i_zbc__zbkb 139 # extensions. Using the no-Karatsuba approach and clmul for the final reduction. [all …]
|
| H A D | aes-gcm-riscv64-zvkb-zvkg-zvkned.pl | 2 # This file is dual-licensed, meaning that you can use it under your 37 # - RV64I 38 # - RISC-V Vector ('V') with VLEN >= 128 39 # - RISC-V Vector Cryptography Bit-manipulation extension ('Zvkb') 40 # - RISC-V Vector GCM/GMAC extension ('Zvkg') 41 # - RISC-V Vector AES Block Cipher extension ('Zvkned') 42 # - RISC-V Zicclsm(Main memory supports misaligned loads/stores) 44 # Reference: https://github.com/riscv/riscv-crypto/issues/192#issuecomment-1270447575 65 use riscv; 95 # Do aes-128 enc. [all …]
|
| /freebsd/include/ |
| H A D | Makefile | 20 dirent.h dlfcn.h elf.h elf-hints.h endian.h err.h exterr.h \ 39 .PATH: ${SRCTOP}/contrib/libc-vis 164 input-event-codes.h \ 180 OPENCRYPTODIR= ${INCLUDEDIR}/crypto 257 CRYPTO \ 315 ${MACHINE_CPUARCH} == "riscv" 337 MK_OSRELDATE_SH= ${.CURDIR}/mk-osreldate.sh 366 # Take care of stale directory-level symlinks. 371 crypto -maxdepth 0 -mindepth 0 -type l -print -delete || true 372 mtree -deU ${NO_ROOT:D-W} ${MTREE_FOLLOWS_SYMLINKS} \ [all …]
|
| /freebsd/crypto/openssl/crypto/ |
| H A D | threads_pthread.c | 2 * Copyright 2016-2025 The OpenSSL Project Authors. All Rights Reserved. 13 #include <openssl/crypto.h> 14 #include <crypto/cryptlib.h> 48 * See: https://github.com/llvm/llvm-project/commit/a4c2602b714e6c6edb98164550a5ae829b2de760 63 * The Non-Stop KLT thread model currently seems broken in its rwlock 65 * Likewise is there a problem with the glibc implementation on riscv. 83 * not true on 32-bit pointer platforms, as a |uint64_t| is twice as large) 173 *p -= v; in fallback_atomic_sub_fetch() 225 /* rcu generation counter for in-order retirement */ 252 /* lock to enforce in-order retirement */ [all …]
|
| /freebsd/share/man/man4/ |
| H A D | Makefile | 4 MANPACKAGE= kernel-man 129 crypto.4 \ 686 MLINKS+=crypto.4 cryptodev.4 970 ${MACHINE_CPUARCH} == "riscv" 982 __arches= ${:!/bin/sh -c "/bin/ls -d ${.CURDIR}/man4.*"!:E} 1048 TESTS= atf-test-case.4
|
| /freebsd/crypto/openssl/crypto/modes/ |
| H A D | gcm128.c | 2 * Copyright 2010-2024 The OpenSSL Project Authors. All Rights Reserved. 11 #include <openssl/crypto.h> 14 #include "crypto/modes.h" 30 /* RISC-V uses C implementation as a fallback. */ 36 #define PACK(s) ((size_t)(s)<<(sizeof(size_t)*8-16)) 39 u64 T = U64(0xe100000000000000) & (0-(V.lo&1)); \ 44 u32 T = 0xe1000000U & (0-(u32)(V.lo&1)); \ 50 /*- 52 * NOTE: TABLE_BITS and all non-4bit implementations have been removed in 3.1. 56 * TABLE_BITS>1 are lookup-table-driven implementations referred to as [all …]
|
| /freebsd/crypto/openssl/Configurations/ |
| H A D | 10-main.conf | 1 ## -*- mode: perl; -*- 8 if (`nasm -v 2>NUL` =~ /NASM version ([0-9]+\.[0-9]+)/ && $1 >= 2.0) { 10 ASFLAGS => "-g", 11 asflags => "-Ox -f win64 -DNEAR", 12 asoutflag => "-o ", 22 $die->("NASM not found - make sure it's installed and available on %PATH%\n"); 36 my $ver=`nasm -v 2>NUL`; 37 my $vew=`nasmw -v 2>NUL`; 41 asflags => "-f win32", 42 asoutflag => "-o ", [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | Gnu.cpp | 1 //===--- Gnu.cpp - Gnu Tool and ToolChain Implementations -------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 15 #include "Arch/RISCV.h" 59 StringRef CPUArg(A->getValue()); in normalizeCPUNamesForAssembler() 61 CmdArgs.push_back("-mcpu=cortex-a15"); in normalizeCPUNamesForAssembler() 63 CmdArgs.push_back("-mcpu=cortex-a57"); in normalizeCPUNamesForAssembler() 78 if (forwardToGCC(A->getOption())) { in ConstructJob() 83 A->claim(); in ConstructJob() 85 A->render(Args, CmdArgs); in ConstructJob() [all …]
|
| /freebsd/contrib/xz/ |
| H A D | ChangeLog | 3 Date: 2025-04-03 14:34:43 +0300 7 src/liblzma/Makefile.am | 2 +- 8 src/liblzma/api/lzma/version.h | 2 +- 9 2 files changed, 2 insertions(+), 2 deletions(-) 13 Date: 2025-04-03 14:34:43 +0300 22 Date: 2025-04-03 14:34:43 +0300 32 for OSS-Fuzz."). 34 tests/ossfuzz/fuzz_common.h | 31 ++++++++++++++++++++++++------- 35 1 file changed, 24 insertions(+), 7 deletions(-) 39 Date: 2025-04-03 14:34:43 +0300 [all …]
|
| /freebsd/sys/dev/nvme/ |
| H A D | nvme.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (C) 2012-2013 Intel Corporation 53 /* NB: Fabrics-specific ioctls defined in nvmf.h start at 200. */ 284 /** Controller Multi-path I/O and Namespace Sharing Capabilities */ 291 /* SR-IOV Virtual Function */ 298 /** OAES - Optional Asynchronous Events Supported */ 327 /** CTRATT - Controller Attributes */ 328 /* supports 128-bit Host Identifier */ 331 /* supports Non-Operational Power State Permissive Mode */ [all …]
|
| /freebsd/ |
| H A D | Makefile.inc1 | 4 # -DNO_CLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir 5 # -DNO_CLEAN do not clean at all 6 # -DDB_FROM_SRC use the user/group databases in src/etc instead of 8 # -DNO_SHARE do not go into share subdir 9 # -DKERNFAST define NO_KERNEL{CONFIG,CLEAN,OBJ} 10 # -DNO_KERNELCONFIG do not run config in ${MAKE} buildkernel 11 # -DNO_KERNELCLEAN do not run ${MAKE} clean in ${MAKE} buildkernel 12 # -DNO_KERNELOBJ do not run ${MAKE} obj in ${MAKE} buildkernel 13 # -DNO_ROOT install without using root privilege 14 # -DWITHOUT_CTF do not run the DTrace CTF conversion tools on built objects [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInstrInfoVPseudos.td | 1 //===-- RISCVInstrInfoVPseudos.td - RISC-V 'V' Pseudos -----*- tablege [all...] |
| /freebsd/contrib/llvm-project/clang/include/clang/Driver/ |
| H A D | Options.td | 1 //===--- Options.td - Options for clang -----------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 38 // The option is a "driver"-only option, and should not be forwarded to other 39 // tools via `-Xarch` options. 42 // LinkerInput - The option is a linker input. 45 // NoArgumentUnused - Don't report argument unused warnings for this option; this 46 // is useful for options like -static or -dynamic which a user may always end up 50 // Unsupported - The option is unsupported, and the driver will reject command [all …]
|