Drop obsolete <minix/compiler.h> and <minix/crtso.h>
Change-Id: I05da32bd2bdf014b6fd5c39d6e808d3c73812dc0
This commit is contained in:
parent
93764854ee
commit
cfc36e5fd3
6 changed files with 4 additions and 63 deletions
|
@ -1105,11 +1105,11 @@
|
|||
./usr/include/minix/chardriver.h minix-sys
|
||||
./usr/include/minix/clkconf.h minix-sys
|
||||
./usr/include/minix/com.h minix-sys
|
||||
./usr/include/minix/compiler.h minix-sys
|
||||
./usr/include/minix/compiler.h minix-sys obsolete
|
||||
./usr/include/minix/config.h minix-sys
|
||||
./usr/include/minix/const.h minix-sys
|
||||
./usr/include/minix/cpufeature.h minix-sys
|
||||
./usr/include/minix/crtso.h minix-sys
|
||||
./usr/include/minix/crtso.h minix-sys obsolete
|
||||
./usr/include/minix/debug.h minix-sys
|
||||
./usr/include/minix/devio.h minix-sys
|
||||
./usr/include/minix/devman.h minix-sys
|
||||
|
|
|
@ -6,8 +6,8 @@ INCS+= dirent.h paths.h param.h
|
|||
INCS+= acpi.h audio_fw.h bitmap.h \
|
||||
bdev.h blockdriver.h blockdriver_mt.h \
|
||||
btrace.h \
|
||||
callnr.h chardriver.h clkconf.h com.h compiler.h \
|
||||
config.h const.h cpufeature.h crtso.h \
|
||||
callnr.h chardriver.h clkconf.h com.h \
|
||||
config.h const.h cpufeature.h \
|
||||
debug.h devio.h devman.h dmap.h \
|
||||
driver.h drivers.h drvlib.h ds.h \
|
||||
endpoint.h fb.h fslib.h gpio.h gcov.h hash.h \
|
||||
|
|
|
@ -1,49 +0,0 @@
|
|||
/* Definitions for compiler-specific features. */
|
||||
|
||||
#ifndef _MINIX_COMPILER_H
|
||||
#define _MINIX_COMPILER_H
|
||||
|
||||
/*===========================================================================*
|
||||
* Compiler overrides *
|
||||
*===========================================================================*/
|
||||
/* ACK */
|
||||
#ifdef __ACK__
|
||||
#include <minix/compiler-ack.h>
|
||||
#endif
|
||||
|
||||
/*===========================================================================*
|
||||
* Default values *
|
||||
*===========================================================================*/
|
||||
/*
|
||||
* cdecl calling convention expects the callee to pop the hidden pointer on
|
||||
* struct return. For example, GCC and LLVM comply with this (tested on IA32).
|
||||
*/
|
||||
#ifndef BYTES_TO_POP_ON_STRUCT_RETURN
|
||||
#define BYTES_TO_POP_ON_STRUCT_RETURN $4
|
||||
#endif
|
||||
|
||||
/*
|
||||
* cdecl calling convention requires to push arguments on the stack in a
|
||||
* reverse order to easily support variadic arguments. Thus, instead of
|
||||
* using the proper stdarg.h macros (that nowadays are
|
||||
* compiler-dependant), it may be tempting to directly take the address of
|
||||
* the last argument and considering it as the start of an array. This is
|
||||
* a shortcut that avoid looping to get all the arguments as the CPU
|
||||
* already pushed them on the stack before the call to the function.
|
||||
*
|
||||
* Unfortunately, such an assumption is strictly compiler-dependant and
|
||||
* compilers are free to move the last argument on the stack, as a local
|
||||
* variable, and return the address of the location where the argument was
|
||||
* stored, if asked for. This will break things as the rest of the array's
|
||||
* argument are stored elsewhere (typically, a couple of words above the
|
||||
* location where the argument was stored).
|
||||
*
|
||||
* Conclusion: if unsure on what the compiler may do, do not make any
|
||||
* assumption and use the right (typically compiler-dependant) macros.
|
||||
*/
|
||||
|
||||
#ifndef FUNC_ARGS_ARRAY
|
||||
#define FUNC_ARGS_ARRAY 0
|
||||
#endif
|
||||
|
||||
#endif /* _MINIX_COMPILER_H */
|
|
@ -1,8 +0,0 @@
|
|||
/* Prototypes for crtso.s. */
|
||||
|
||||
#ifndef _MINIX_CRTSO_H
|
||||
#define _MINIX_CRTSO_H
|
||||
|
||||
void _minix_unmapzero(void);
|
||||
|
||||
#endif
|
|
@ -19,7 +19,6 @@
|
|||
#include <minix/minlib.h>
|
||||
#include <minix/type.h>
|
||||
#include <minix/vm.h>
|
||||
#include <minix/crtso.h>
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include <minix/syslib.h>
|
||||
#include <minix/const.h>
|
||||
#include <minix/bitmap.h>
|
||||
#include <minix/crtso.h>
|
||||
#include <minix/rs.h>
|
||||
|
||||
#include <libexec.h>
|
||||
|
|
Loading…
Reference in a new issue