freebsd-dev/sys/amd64
John Polstra ca0154bc75 Revamp the ELF include files to better support architecture-independent
applications.  Here's how it works.

The kernel should include <machine/elf.h> to get the definitions
for the native architecture.  It can reference the various ELF
structures with generic names like Elf_Sym, Elf_Shdr, etc.  A define
__ELF_WORD_SIZE is also available with the value 32 or 64 as
appropriate for the native architecture.

Generic applications should include <elf.h>, which is just a wrapper
for <machine/elf.h>.

Applications such as object file dumpers that need to deal with
foreign ELF files can include <sys/elf32.h> and/or <sys/elf64.h>.
Both can be included from the same source file if desired.  The
structure names must be referenced using wordsize-specific names
like Elf32_Sym, Elf64_Shdr, etc.

I haven't change the alpha stuff, but I haven't broken it either.
1998-08-16 03:03:38 +00:00
..
amd64 pmap.c: 1998-08-16 00:41:40 +00:00
conf Add the 'cs' driver for Crystal Semiconductor CS89x0 devices. This 1998-07-20 20:00:43 +00:00
include Revamp the ELF include files to better support architecture-independent 1998-08-16 03:03:38 +00:00
isa Register tty software interrupt handlers at run time using register_swi() 1998-08-11 17:01:32 +00:00
pci Make the class code checks in function pci_cfgcheck less strict. 1997-12-20 09:04:25 +00:00
Makefile Make this ${.OBJDIR} and ${.CURDIR} aware. 1998-05-31 22:40:49 +00:00