freebsd-skq/sys/sys
Ruslan Bukin ca20f8ec29 o Replace __riscv__ with __riscv
o Replace __riscv64 with (__riscv && __riscv_xlen == 64)

This is required to support new GCC 7.1 compiler.
This is compatible with current GCC 6.1 compiler.

RISC-V is extensible ISA and the idea here is to have built-in define
per each extension, so together with __riscv we will have some subset
of these as well (depending on -march string passed to compiler):

__riscv_compressed
__riscv_atomic
__riscv_mul
__riscv_div
__riscv_muldiv
__riscv_fdiv
__riscv_fsqrt
__riscv_float_abi_soft
__riscv_float_abi_single
__riscv_float_abi_double
__riscv_cmodel_medlow
__riscv_cmodel_medany
__riscv_cmodel_pic
__riscv_xlen

Reviewed by:	ngie
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D11901
2017-08-07 14:09:57 +00:00
..
disk Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
_bitset.h bitset: introduce helpers to allocate a bitset at runtime 2016-05-06 16:41:23 +00:00
_bus_dma.h
_callout.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
_cpuset.h Fix <sys/_bitset.h> and <sys/_cpuset.h> to not require <sys/param.h>. 2016-05-05 15:43:26 +00:00
_ffcounter.h
_iovec.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
_kstack_cache.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
_lock.h
_lockmgr.h
_mutex.h
_null.h
_pctrie.h Add pctrie_init() and vm_radix_init() to initialize generic pctrie and 2017-07-19 20:52:47 +00:00
_pthreadtypes.h
_rmlock.h
_rwlock.h
_semaphore.h
_sigset.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
_sockaddr_storage.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
_stack.h
_stdint.h
_sx.h
_task.h Update iflib to support more NIC designs 2016-08-12 21:29:44 +00:00
_termios.h Relax visibility for some termios symbols. 2017-08-04 09:45:40 +00:00
_timespec.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
_timeval.h
_types.h Define a new __INO64 macro in <sys/_types.h>, to indicate the system 2017-05-26 16:29:55 +00:00
_ucontext.h
_umtx.h Add implementation of robust mutexes, hopefully close enough to the 2016-05-17 09:56:22 +00:00
_unrhdr.h
_vm_domain.h
aac_ioctl.h
acct.h Solve the y2038 problem for powerpc 2017-06-26 02:25:19 +00:00
acl.h
agpio.h
aio.h Account for AIO socket operations in thread/process resource usage. 2016-06-21 22:19:06 +00:00
alq.h
apm.h Re-apply change 306811 or alternatively, revert change 307385. 2016-10-16 02:43:51 +00:00
assym.h
ata.h Fix IORDY bits definition. 2017-07-29 13:54:28 +00:00
bio.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
bitset.h Fix BIT_FLS(). 2017-07-11 12:35:44 +00:00
bitstring.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
blist.h The blist_meta_* routines that process a subtree take arguments 'radix' and 2017-08-01 03:51:26 +00:00
boot.h
buf_ring.h Fix a variety of cosmetic typos and misspellings 2017-01-15 18:00:45 +00:00
buf.h Add the definition of maxbcachebuf to sys/buf.h. 2017-06-19 22:07:53 +00:00
bufobj.h Document what the different flags mean for locking. 2017-02-21 18:49:51 +00:00
bus_dma_internal.h Clean up MD pollution of bus_dma.h: 2017-07-01 05:35:29 +00:00
bus_dma.h Clean up MD pollution of bus_dma.h: 2017-07-01 05:35:29 +00:00
bus.h Add a INTR_TRIG_INVALID, and use it in the powerpc interrupt code. 2017-01-30 02:21:29 +00:00
busdma_bufalloc.h Fix a variety of cosmetic typos and misspellings 2017-01-15 18:00:45 +00:00
callout.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
capability.h Add sys/capability.h deprecation warning 2017-01-25 15:42:29 +00:00
caprights.h
capsicum.h Add PROC_TRAPCAP procctl(2) controls and global sysctl kern.trap_enocap. 2016-09-21 08:23:33 +00:00
cdefs.h o Replace __riscv__ with __riscv 2017-08-07 14:09:57 +00:00
cdio.h
cdrio.h
cfictl.h
chio.h
clock.h Add clock_schedule(), a feature that allows realtime clock drivers to 2017-07-31 01:18:21 +00:00
cnv.h Remove duplicated declaration. 2016-08-28 07:40:11 +00:00
condvar.h
conf.h Set default uid/gid to nobody/nogroup for NFSv4 mapping. 2017-04-21 20:08:10 +00:00
cons.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
consio.h Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
copyright.h Bump copyright year. 2017-07-30 06:27:32 +00:00
counter.h Provide counter_ratecheck(), a MP-friendly substitution to ppsratecheck(). 2016-12-09 17:58:34 +00:00
cpu.h
cpuctl.h
cpuset.h Extend cpuset_get/setaffinity() APIs 2017-05-03 18:41:08 +00:00
ctype.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
dataacq.h
devicestat.h
devmap.h Fix a variety of cosmetic typos and misspellings 2017-01-15 18:00:45 +00:00
digiio.h
dir.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
dirent.h Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
disk_zone.h Add support for managing Shingled Magnetic Recording (SMR) drives. 2016-05-19 14:08:36 +00:00
disk.h Add support for encrypted kernel crash dumps. 2016-12-10 16:20:39 +00:00
disklabel.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
diskmbr.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
dkstat.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
dnv.h
domain.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
dtrace_bsd.h
dvdio.h
efi.h efi: restrict visibility of EFIABI_ATTR-declared functions 2017-07-20 06:47:06 +00:00
efiio.h Create /dev/efidev to provide an ioctl interface to 2016-10-11 22:24:30 +00:00
elf32.h Add remaining ELF compression definitions and structs 2017-01-21 17:39:10 +00:00
elf64.h Add remaining ELF compression definitions and structs 2017-01-21 17:39:10 +00:00
elf_common.h Add support for capturing 'struct ptrace_lwpinfo' for signals 2017-03-30 18:21:36 +00:00
elf_generic.h Define ELF_ST_VISIBILITY(). 2017-02-09 23:32:03 +00:00
elf.h
endian.h
errno.h Only activate __EXT1_VISIBLE block when using sys/errno.h in userspace. 2017-03-30 06:24:30 +00:00
eui64.h
event.h Add abstime kqueue(2) timers and expand struct kevent members. 2017-06-17 00:57:26 +00:00
eventhandler.h ifnet: move the new ifnet_event EVENTHANDLER_DECLARE to net/if_var.h 2017-01-28 07:26:42 +00:00
eventvar.h Fix a variety of cosmetic typos and misspellings 2017-01-15 18:00:45 +00:00
exec.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
extattr.h restore(8): Handle extended attribute names correctly 2017-01-18 18:16:57 +00:00
fail.h
fbio.h Attempt to determine the modes in which 8-bit wide characters are actually 2017-04-20 13:46:55 +00:00
fcntl.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
fdcio.h Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
file.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
filedesc.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
filio.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
firmware.h
fnv_hash.h
gmon.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
gpio.h GPIO: Add support for gpio pin interrupts. 2016-04-28 12:03:22 +00:00
gpt.h Re-apply change 306811 or alternatively, revert change 307385. 2016-10-16 02:43:51 +00:00
gtaskqueue.h Make gtaskqueue compatible with drm-next such that they can be used with the 2017-03-01 18:37:35 +00:00
gzio.h
hash.h
hhook.h
iconv.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
imgact_aout.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
imgact_binmisc.h sys/sys: missed in r298981. 2016-05-03 16:37:09 +00:00
imgact_elf.h Update r315753 with the proper flag name. 2017-03-22 22:28:13 +00:00
imgact.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
inflate.h
interrupt.h Extend cpuset_get/setaffinity() APIs 2017-05-03 18:41:08 +00:00
intr.h INTRNG: Rework handling with resources. Partially revert r301453. 2016-08-19 10:52:39 +00:00
ioccom.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ioctl_compat.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ioctl.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
iov_schema.h
iov.h
ipc.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ipmi.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
jail.h - Extend pr_allow flags visually to 32 bits, to make it more obvious at first look how much flags we still 2017-07-09 06:40:16 +00:00
joystick.h
kbio.h
kdb.h
kenv.h
kernel.h Fix TUNABLE_UINT64() on 32bit architectures. 2017-03-27 06:37:03 +00:00
kerneldump.h Add support for encrypted kernel crash dumps. 2016-12-10 16:20:39 +00:00
khelp.h
kobj.h - Also outside of the KOBJOPLOOKUP macro - which in turn is used by 2017-05-08 21:08:39 +00:00
ksem.h Fix a variety of cosmetic typos and misspellings 2017-01-15 18:00:45 +00:00
kthread.h
ktr_class.h
ktr.h
ktrace.h Ktracing kevent(2) calls with unusual arguments might leads to an 2017-03-12 13:48:24 +00:00
libkern.h armv8 has support for optional CRC32C instructions. This patch checks if they are 2017-04-27 17:53:05 +00:00
limits.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
link_aout.h
link_elf.h
linker_set.h
linker.h Implement boot-time encryption key passing (keybuf) 2017-04-01 05:05:22 +00:00
lock_profile.h
lock.h Do not turn LOCK_DEBUG for INVARIANT_SUPPORT. This allows to add 2017-03-09 00:58:21 +00:00
lockf.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
lockmgr.h lockmgr: implement fast path 2017-02-12 09:49:44 +00:00
lockstat.h mtx: microoptimize lockstat handling in __mtx_lock_sleep 2017-02-17 14:55:59 +00:00
loginclass.h
mac.h
malloc.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mbpool.h
mbuf.h Fixed typo. 2017-04-08 04:41:46 +00:00
mchain.h
md4.h Fix C++ includability of crypto headers with static array sizes 2016-10-18 23:20:49 +00:00
md5.h Fix C++ includability of crypto headers with static array sizes 2016-10-18 23:20:49 +00:00
mdioctl.h Add MD_VERIFY option to enable O_VERIFY in open for vnode type. 2017-05-31 21:18:11 +00:00
memdesc.h
memrange.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
mman.h Implement address space guards. 2017-06-24 17:01:11 +00:00
module_khelp.h
module.h Add the infrastructure to support loading multiple versions of TCP 2017-06-08 20:41:28 +00:00
mount.h Add MD_VERIFY option to enable O_VERIFY in open for vnode type. 2017-05-31 21:18:11 +00:00
mouse.h Add Elantech trackpad support 2016-09-26 22:06:19 +00:00
mpt_ioctl.h
mqueue.h
msg.h Change the return type of msgrcv() to ssize_t as required by POSIX. 2016-07-28 12:22:01 +00:00
msgbuf.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mtio.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
mutex.h locks: ensure proper barriers are used with atomic ops when necessary 2017-03-01 05:06:21 +00:00
namei.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nlist_aout.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
numa.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nv.h
osd.h osd(9): Change array pointer to array pointer type from void* 2016-04-26 19:57:35 +00:00
param.h Add kernel support for the NFS client forced dismount "umount -N" option. 2017-07-29 19:52:47 +00:00
pciio.h
pcpu.h - Remove 'struct vmmeter' from 'struct pcpu', leaving only global vmmeter 2017-04-17 17:34:47 +00:00
pctrie.h Make the number of children for pctrie node available outside subr_pctrie.c. 2017-07-27 16:40:14 +00:00
pioctl.h
pipe.h Fix a variety of cosmetic typos and misspellings 2017-01-15 18:00:45 +00:00
pmc.h Fix HWPMC interrupt handling in Counting Mode 2017-06-13 18:51:23 +00:00
pmckern.h hwpmc: partially depessimize munmap handling if the module is not loaded 2017-01-24 22:00:16 +00:00
pmclog.h
poll.h
posix4.h
power.h
priority.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
priv.h Add support to priority code point (PCP) that is an 3-bit field 2016-06-06 09:51:58 +00:00
proc.h Move struct syscall_args syscall arguments parameters container into 2017-06-12 21:03:23 +00:00
procctl.h Add the foundation copyrights to procctl kernel sources. 2016-09-23 12:32:20 +00:00
procdesc.h Introduce the PD_CLOEXEC for pdfork(2). 2016-06-08 02:09:14 +00:00
procfs.h Include process IDs in core dumps. 2016-07-18 15:14:23 +00:00
protosw.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ptio.h
ptrace.h Store a 32-bit PT_LWPINFO struct for 32-bit process core dumps. 2017-06-29 21:31:13 +00:00
queue.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
racct.h Get rid of rctl_lock; use racct_lock where appropriate. The fast paths 2016-04-21 16:22:52 +00:00
random.h Replace the RC4 algorithm for generating in-kernel secure random 2017-04-16 09:11:02 +00:00
rangelock.h
rctl.h Add four new RCTL resources - readbps, readiops, writebps and writeiops, 2016-04-07 04:23:25 +00:00
reboot.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
refcount.h Correct fences for sys/refcount.h. 2017-06-30 16:16:21 +00:00
regression.h
resource.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
resourcevar.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
rman.h Consistently use device_t 2016-08-09 19:32:06 +00:00
rmlock.h
rtprio.h
runq.h
rwlock.h rwlock: tidy up r313392 2017-02-15 23:33:14 +00:00
sbuf.h Add prototype for sbuf_putbuf() 2017-02-28 19:01:59 +00:00
sched.h Let <sched.h> define struct timespec. 2016-05-31 08:07:40 +00:00
sdt.h Implement LOCKSTAT_OOL_PROFILE_ENABLED 2017-02-08 19:25:58 +00:00
select.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
selinfo.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
sem.h
sema.h
seq.h Remove cpu_spinwait after seq_consistent. 2016-12-30 06:26:17 +00:00
serial.h
sf_buf.h Use bogus_page to properly reduce number of I/Os in sendfile(2). The new 2016-11-17 21:02:55 +00:00
sglist.h sglist.h: Fix sg_refs signedness to match refcount(9) 2017-06-22 15:52:18 +00:00
shm.h Add shmatt_t. 2016-07-26 17:23:49 +00:00
sigio.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
signal.h Store a 32-bit PT_LWPINFO struct for 32-bit process core dumps. 2017-06-29 21:31:13 +00:00
signalvar.h Fix typo in comment. 2017-03-09 13:41:57 +00:00
sleepqueue.h When the RTC is adjusted, reevaluate absolute sleep times based on the RTC 2017-03-14 19:06:44 +00:00
slicer.h - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
smp.h Corrected misspelled versions of rendezvous. 2017-04-09 02:00:03 +00:00
snoop.h
sockbuf.h Provide sbsetopt() that handles socket buffer related socket options. 2017-06-25 01:41:07 +00:00
socket.h Listening sockets improvements. 2017-06-08 21:30:34 +00:00
socketvar.h Listening sockets improvements. 2017-06-08 21:30:34 +00:00
sockio.h Persistently store NIC's hardware MAC address, and add a way to retrive it 2017-05-10 22:13:47 +00:00
sockopt.h Rename accept filter getopt/setopt functions, so that they are prefixed 2017-06-02 17:49:21 +00:00
sockstate.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
soundcard.h Don't test for INKERNEL to check whether we're in kernel space. 2016-06-04 18:57:00 +00:00
spigenio.h [spigen] add the userland ioctl API for spigen. 2016-05-27 01:40:33 +00:00
stack.h
stat.h Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
statvfs.h
stdatomic.h
stddef.h
stdint.h Implement the memset_s(3) function as specified by the C11 ISO/IEC 2017-03-30 04:57:26 +00:00
sun_disklabel.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
sx.h sx: fix mips builld after r313855 2017-02-17 22:09:55 +00:00
syscall.h Regen. 2017-06-17 00:58:19 +00:00
syscall.mk Regen. 2017-06-17 00:58:19 +00:00
syscallsubr.h Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
sysctl.h Export a sysctl dev.<clkdom>.<unit>.clocks for each clock domain containing 2017-03-05 07:13:29 +00:00
sysent.h Correct sysent flags for dynamically loaded syscalls. 2017-07-14 09:34:44 +00:00
syslimits.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
syslog.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
sysproto.h Regen. 2017-06-17 00:58:19 +00:00
systm.h Allow sysctl kern.vm_guest to return bhyve when running under bhyve. 2017-06-08 04:02:14 +00:00
taskqueue.h Add taskqueue_enqueue_timeout_sbt(), because sometimes you want more control 2017-07-31 00:54:50 +00:00
terminal.h
termios.h
thr.h
tiio.h
time.h Add inline functions to convert between sbintime_t and decimal time units. 2017-07-29 17:00:23 +00:00
timeb.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
timeet.h
timeffc.h
timepps.h
timers.h
times.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
timespec.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
timetc.h Implement userspace gettimeofday(2) with HPET timecounter. 2016-08-17 09:52:09 +00:00
timex.h sys/sys: minor spelling fixes. 2016-05-03 15:14:17 +00:00
tree.h
tty.h Commit the 64-bit inode project. 2017-05-23 09:29:05 +00:00
ttycom.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ttydefaults.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ttydevsw.h
ttydisc.h
ttyhook.h
ttyqueue.h Check tty_gone() after allocating IO buffers. The tty lock has to be 2017-01-13 16:37:38 +00:00
turnstile.h Typo in comment. 2016-05-12 06:20:26 +00:00
types.h Remove trivial comments. Remove and-ing with UINT_MAX for minor(), 2017-08-06 12:27:20 +00:00
ucontext.h
ucred.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
uio.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
umtx.h Add implementation of robust mutexes, hopefully close enough to the 2016-05-17 09:56:22 +00:00
un.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
unistd.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
unpcb.h Remove write only flag UNP_HAVEPCCACHED. 2017-06-02 17:39:05 +00:00
user.h procstat(1): Add TCP socket send/recv buffer size 2017-05-26 22:17:44 +00:00
utsname.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
uuid.h Add a helper function for comparing struct uuids. 2017-06-12 20:14:44 +00:00
vdso.h hyperv: Implement userspace gettimeofday(2) with Hyper-V reference TSC 2016-12-19 07:40:45 +00:00
vmem.h
vmmeter.h - Remove 'struct vmmeter' from 'struct pcpu', leaving only global vmmeter 2017-04-17 17:34:47 +00:00
vnode.h Implement proper Linux /dev/fd and /proc/self/fd behavior by adding 2017-08-01 03:40:19 +00:00
vtoc.h Re-apply change 306811 or alternatively, revert change 307385. 2016-10-16 02:43:51 +00:00
wait.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
watchdog.h
zlib.h
zutil.h