35 lines
851 B
C
35 lines
851 B
C
//hos_defines.h
|
|
//03/17/03 Josh Holtrop
|
|
//Modified: 03/02/04
|
|
|
|
#ifndef __HOS_HOS_DEFINES__
|
|
#define __HOS_HOS_DEFINES__ __HOS_HOS_DEFINES__
|
|
|
|
#define FREERAM_START 0x368000 // 0x368000 is first available byte (this is right after the initrd @ 2mb, 1440kb.
|
|
#define MAX_RAM 0x40000000 //1gb maximum RAM supported
|
|
|
|
#define PID_KERNEL 0x02 //kernel's PID
|
|
#define PID_VMM 0x03
|
|
#define PID_USER 0x10000 //user processes' start PID
|
|
|
|
|
|
//these defines are the memory locations of values saved by the stage 2 bootloader
|
|
#define BOOT_MEMMAP_ENTRIES 0xC009040A
|
|
#define BOOT_FIRST_MEMMAP 0xC0092000
|
|
#define BOOT_VIDEO_MODE 0xC0090002
|
|
#define BOOT_VIDEO_MODE_INFO_BLOCK 0xC0090306
|
|
|
|
|
|
typedef unsigned char byte;
|
|
typedef unsigned short word;
|
|
typedef unsigned int dword;
|
|
|
|
typedef struct {
|
|
dword lowdword;
|
|
dword highdword;
|
|
} __attribute__((packed)) qword;
|
|
|
|
|
|
#endif
|
|
|