freebsd-skq/sys/conf
Ed Schouten 6d338f9a81 Import the CloudABI datatypes and create a system call table.
CloudABI is a pure capability-based runtime environment for UNIX. It
works similar to Capsicum, except that processes already run in
capabilities mode on startup. All functionality that conflicts with this
model has been omitted, making it a compact binary interface that can be
supported by other operating systems without too much effort.

CloudABI is 'secure by default'; the idea is that it should be safe to
run arbitrary third-party binaries without requiring any explicit
hardware virtualization (Bhyve) or namespace virtualization (Jails). The
rights of an application are purely determined by the set of file
descriptors that you grant it on startup.

The datatypes and constants used by CloudABI's C library (cloudlibc) are
defined in separate files called syscalldefs_mi.h (pointer size
independent) and syscalldefs_md.h (pointer size dependent). We import
these files in sys/contrib/cloudabi and wrap around them in
cloudabi*_syscalldefs.h.

We then add stubs for all of the system calls in sys/compat/cloudabi or
sys/compat/cloudabi64, depending on whether the system call depends on
the pointer size. We only have nine system calls that depend on the
pointer size. If we ever want to support 32-bit binaries, we can simply
add sys/compat/cloudabi32 and implement these nine system calls again.

The next step is to send in code reviews for the individual system call
implementations, but also add a sysentvec, to allow CloudABI executabled
to be started through execve().

More information about CloudABI:
- GitHub: https://github.com/NuxiNL/cloudlibc
- Talk at BSDCan: https://www.youtube.com/watch?v=SVdF84x1EdA

Differential Revision:	https://reviews.freebsd.org/D2848
Reviewed by:	emaste, brooks
Obtained from:	https://github.com/NuxiNL/freebsd
2015-07-09 07:20:15 +00:00
..
config.mk Populate new KERN_OPTS from all the opt_*.h files in 2015-02-18 15:25:19 +00:00
dtb.mk Prefer install over mkdir to create the directory. Add test to ensure 2015-02-09 16:29:44 +00:00
files Import the CloudABI datatypes and create a system call table. 2015-07-09 07:20:15 +00:00
files.amd64 Allow DTrace to be compiled-in to the kernel. 2015-06-10 15:53:39 +00:00
files.arm Allow DTrace to be compiled-in to the kernel. 2015-06-10 15:53:39 +00:00
files.arm64 Introduce ITS support for ARM64 2015-07-06 18:27:41 +00:00
files.i386 Allow DTrace to be compiled-in to the kernel. 2015-06-10 15:53:39 +00:00
files.mips Add in library routines not supplied by gcc-4.9 but required by the kernel. 2015-06-19 01:21:10 +00:00
files.pc98 MFi386: r283407 2015-05-26 14:08:32 +00:00
files.powerpc Merge booke and aim interrupt.c files. 2015-07-06 05:08:57 +00:00
files.sparc64 Add a simple unaccelerated vt(4) framebuffer driver for Sun framebuffers 2014-08-05 18:19:51 +00:00
kern.mk Only include CWARNFLAGS once to reduce command line size from ~1400 2015-04-28 23:54:55 +00:00
kern.opts.mk Add a note of clarification. MK_* variables only control what modules 2015-03-27 17:36:22 +00:00
kern.post.mk Allow DTrace to be compiled-in to the kernel. 2015-06-10 15:53:39 +00:00
kern.pre.mk Cache _MPATH and pass it down into the modules build. Some NFS setups 2015-07-04 05:43:45 +00:00
kmod_syms.awk
kmod.mk Cache _MPATH and pass it down into the modules build. Some NFS setups 2015-07-04 05:43:45 +00:00
ldscript.amd64 amd64: set the correct LMA values 2015-06-26 07:12:17 +00:00
ldscript.arm Remove STARTUP_PAGETABLE_ADDR from the ARM configs and replace it with 2014-01-28 09:12:04 +00:00
ldscript.arm64 Bring in the start of the arm64 kernel. 2015-04-13 14:43:10 +00:00
ldscript.i386
ldscript.mips
ldscript.mips.cfe
ldscript.mips.mips64
ldscript.mips.octeon1
ldscript.powerpc Refactor PowerPC (especially AIM) init sequence to be less baroque. 2015-01-18 18:32:43 +00:00
ldscript.powerpc64 Refactor PowerPC (especially AIM) init sequence to be less baroque. 2015-01-18 18:32:43 +00:00
ldscript.sparc64
Makefile.amd64 Clang's 3.5 integrated assembler now handles these files correctly (it 2015-01-05 12:28:22 +00:00
Makefile.arm Since for clang 3.5.0 ARM EHABI is now the default, the -mllvm 2014-11-26 23:28:16 +00:00
Makefile.arm64 Bring in the start of the arm64 kernel. 2015-04-13 14:43:10 +00:00
Makefile.i386 Clang's 3.5 integrated assembler now handles these files correctly (it 2015-01-05 12:28:22 +00:00
Makefile.mips Bump the version of config to the latest (3 year old, so upgrade 2014-02-04 18:24:25 +00:00
Makefile.pc98 Fix kernel build ${MACHINE} path 2015-04-16 22:34:10 +00:00
Makefile.powerpc Make 32-bit PowerPC kernels, like 64-bit PowerPC kernels, position-independent 2015-03-07 20:14:46 +00:00
Makefile.sparc64 Bump the version of config to the latest (3 year old, so upgrade 2014-02-04 18:24:25 +00:00
makeLINT.mk
makeLINT.sed
newvers.sh newvers.sh: remove 'X' hack from shell script 2015-04-08 04:01:02 +00:00
NOTES ALTQ FAIRQ discipline import from DragonFLY 2015-06-24 19:16:41 +00:00
options Import the CloudABI datatypes and create a system call table. 2015-07-09 07:20:15 +00:00
options.amd64 Microsoft vmbus, storage and other related driver enhancements for HyperV. 2015-04-29 10:12:34 +00:00
options.arm Add support for getting the memory map from EFI if it has been pased in 2015-05-24 16:11:30 +00:00
options.arm64 Allow the arm64 config file to define SOCDEV_PA and SOCDEV_VA that may be 2015-04-28 17:02:43 +00:00
options.i386 Remove support for Xen PV domU kernels. Support for HVM domU kernels 2015-04-30 15:48:48 +00:00
options.mips Introduce opt_netfpga.h and allow setting NF10BMAC_64BIT from mips kernel 2014-06-26 17:20:45 +00:00
options.pc98 Reduce diffs against i386. 2014-10-04 05:03:39 +00:00
options.powerpc Remove FreeBSD/wii. 2015-02-10 06:35:16 +00:00
options.sparc64
systags.sh
WITHOUT_SOURCELESS
WITHOUT_SOURCELESS_HOST Retire the nve(4) driver; nfe(4) has been the default driver for NVIDIA 2014-02-16 12:22:43 +00:00
WITHOUT_SOURCELESS_UCODE The sn driver doesn't actually include microcode at the current time, 2014-12-30 02:39:44 +00:00