// hos_defines.h // Author: Josh Holtrop // Date: 08/15/04 // Modified: 08/16/04 #ifndef __HOS_DEFINES_H__ #define __HOS_DEFINES_H__ __HOS_DEFINES_H__ #define PARALLEL_DEBUG #define HOS_TIMER_FREQ 1000 #define KERNEL_MSG_CONSOLE 11 #define VIRT_OFFSET 0xC0000000 #define PHYS_LOAD 0x00108000 #define PDBR 0x00104000 #define VIRT_STACK_TOP 0xD0000000 #define HEAP_START 0xD0000000 #define HEAP_LENGTH 0x20000000 #define CONSOLE_MEMORY 0xC00B8000 #define BIOS_CHAR_MAP 0xC00FFA6E #define LFB_MEMORY 0xF0000000 #define SEG_KERNEL_CODE 8 #define SEG_KERNEL_DATA 16 #define SEG_USER_CODE 24 #define SEG_USER_DATA 32 #define SEG_TSS0 40 #define MAX_MODULES 16 #define MAX_MMAP 16 #define NULL 0 #define New(x) kcalloc(1, sizeof(x)) typedef unsigned long long u64_t; typedef unsigned int u32_t; typedef unsigned short u16_t; typedef unsigned char u8_t; typedef unsigned char byte; extern u32_t _end; extern u32_t _bss; extern u32_t start; #endif