Removed redundant x86 sources/headers.
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
/*
|
||||
** Copyright 2002, Michael Noisternig. All rights reserved.
|
||||
** Distributed under the terms of the NewOS License.
|
||||
*/
|
||||
#ifndef _KERNEL_ARCH_x86_SELECTOR_H
|
||||
#define _KERNEL_ARCH_x86_SELECTOR_H
|
||||
|
||||
typedef uint32 selector_id;
|
||||
typedef uint64 selector_type;
|
||||
|
||||
// DATA segments are read-only
|
||||
// CODE segments are execute-only
|
||||
// both can be modified by using the suffixed enum versions
|
||||
// legend: w = writable
|
||||
// d = expand down
|
||||
// r = readable
|
||||
// c = conforming
|
||||
enum segment_type {
|
||||
DATA = 0x8, DATA_w, DATA_d, DATA_wd, CODE, CODE_r, CODE_c, CODE_rc
|
||||
};
|
||||
|
||||
#define SELECTOR(base,limit,type,mode32) \
|
||||
(((uint64)(((((uint32)base)>>16)&0xff) | (((uint32)base)&0xff000000) | ((type)<<9) | ((mode32)<<22) | (1<<15))<<32) \
|
||||
| ( (limit) >= (1<<20) ? (((limit)>>12)&0xffff) | ((uint64)(((limit)>>12)&0xf0000)<<32) | ((uint64)1<<(23+32)) : ((limit)&0xffff) | ((uint64)((limit)&0xf0000)<<32) ) \
|
||||
| ((((uint32)base)&0xffff)<<16))
|
||||
|
||||
void i386_selector_init( void *gdt );
|
||||
selector_id i386_selector_add( selector_type selector );
|
||||
void i386_selector_remove( selector_id id );
|
||||
selector_type i386_selector_get( selector_id id );
|
||||
|
||||
#endif
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
** Copyright 2001, Travis Geiselbrecht. All rights reserved.
|
||||
** Distributed under the terms of the NewOS License.
|
||||
*/
|
||||
#ifndef _ARCH_x86_TYPES_H
|
||||
#define _ARCH_x86_TYPES_H
|
||||
|
||||
#ifndef WIN32
|
||||
typedef unsigned long long uint64;
|
||||
typedef long long int64;
|
||||
#else /* WIN32 */
|
||||
typedef unsigned __int64 uint64;
|
||||
typedef __int64 int64;
|
||||
#endif
|
||||
|
||||
typedef unsigned long uint32;
|
||||
typedef long int32;
|
||||
typedef unsigned short uint16;
|
||||
typedef short int16;
|
||||
typedef unsigned char uint8;
|
||||
typedef char int8;
|
||||
typedef unsigned long addr;
|
||||
|
||||
#define _OBOS_TIME_T_ int /* basic time_t type */
|
||||
|
||||
/* define this as not all platforms have it set, but we'll make sure as
|
||||
* some conditional checks need it
|
||||
*/
|
||||
#define __INTEL__ 1
|
||||
|
||||
#endif /* _ARCH_x86_TYPES_H */
|
||||
Reference in New Issue
Block a user