Copy Linux's compiler.h
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 11 Apr 2018 17:27:47 +0000 (13:27 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Apr 2018 18:37:05 +0000 (14:37 -0400)
commitfbb0635c1dc8ca142c647ad0f9a3b13c3cd09432
tree53f35a6c7a0130d49d5c2d25dce4d5013eb90d8b
parent806c190e63b34af4d4812f17a3e10c444ddef8a0
Copy Linux's compiler.h

There are a couple things that Linux has that I'd like to use.  Plus, it's
just a matter of time until we have some horrible bug that we could have
caught by using the stuff instead of rolling our own.  The compiler headers
are less about the OS and more about using the compilers to write an OS.

From commit 569dbb88e80d ("Linux 4.13").

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/linux/compiler-clang.h [new file with mode: 0644]
kern/include/linux/compiler-gcc.h [new file with mode: 0644]
kern/include/linux/compiler-intel.h [new file with mode: 0644]
kern/include/linux/compiler.h [new file with mode: 0644]