27 lines
537 B
C
27 lines
537 B
C
/* types.h - Defines to use the familiar explicitly-sized types in this
|
|
* OS (uint32_t, int8_t, etc.). This is necessary because we don't want
|
|
* to include <stdint.h> when building this OS
|
|
* vim:ts=4 noexpandtab
|
|
*/
|
|
|
|
#ifndef _TYPES_H
|
|
#define _TYPES_H
|
|
|
|
#define NULL 0
|
|
|
|
#ifndef ASM
|
|
|
|
/* Types defined here just like in <stdint.h> */
|
|
typedef int int32_t;
|
|
typedef unsigned int uint32_t;
|
|
|
|
typedef short int16_t;
|
|
typedef unsigned short uint16_t;
|
|
|
|
typedef char int8_t;
|
|
typedef unsigned char uint8_t;
|
|
|
|
#endif /* ASM */
|
|
|
|
#endif /* _TYPES_H */
|