added CXXFLAGS to disable rtti and exceptions; added C++ support to header files; moved mm.c to mm.cc to use C++ functionality

git-svn-id: svn://anubis/hos/trunk@32 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
josh committed 2009-07-01 19:52:18 +00:00
1 parent 2faa2cc8d6
commit db192f6d36
7 files changed
+49 -4

No files matched your search

+8
View File
@@ -2,6 +2,10 @@
#ifndef HOS_DEFINES_H
#define HOS_DEFINES_H
#ifdef __cplusplus
extern "C" {
#endif
#define HOS_KERNEL_OFFSET 0xE0000000
#define PAGE_LOG_SIZE 12
@@ -20,4 +24,8 @@ extern u8_t _end;
#define KERNEL_VIRTUAL_ADDRESS (&_code)
#define KERNEL_SIZE ((&_end) - (&_code))
#ifdef __cplusplus
}
#endif
#endif
+8
View File
@@ -2,6 +2,10 @@
#ifndef HOS_TYPES_H
#define HOS_TYPES_H
#ifdef __cplusplus
extern "C" {
#endif
typedef unsigned char u8_t;
typedef signed char s8_t;
typedef unsigned short u16_t;
@@ -11,4 +15,8 @@ typedef signed int s32_t;
typedef unsigned long long u64_t;
typedef signed long long s64_t;
#ifdef __cplusplus
}
#endif
#endif
+8
View File
@@ -4,6 +4,10 @@
#include "hos_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/* The magic number for the Multiboot header. */
#define MB_HEADER_MAGIC 0x1BADB002
@@ -142,4 +146,8 @@ typedef struct
u16_t dseg_len;
} mb_apm_t;
#ifdef __cplusplus
}
#endif
#endif