Added include folder with hos_types.h and hos_defines.h

Added mm build subdir with mm.c
Updated subdir.mak to build $(subdir)_all.o instead of $(subdir).o
Updated main Makefile to pass SUBDIR in to subdirectory builds, add $(HOS_TOPLEVEL)/include to compiler include path, and made the linker write a map file
Updated boot.asm to use the page_directory symbol from the .bss section defined in mm.o as its temporary stack area

git-svn-id: svn://anubis/hos/trunk@22 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
josh committed 2009-06-29 19:55:50 +00:00
1 parent fb807847bf
commit 90e03d4f95
8 files changed
+53 -12

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
include $(HOS_TOPLEVEL)/subdir.mak
+4
View File
@@ -0,0 +1,4 @@
#include "mm.h"
pagedirectory_t page_directory __attribute__ ((aligned (4096)));
+16
View File
@@ -0,0 +1,16 @@
#ifndef MM_H
#define MM_H MM_H
#include "hos_types.h"
#include "hos_defines.h"
typedef u32_t pagedirectory_entry_t;
typedef pagedirectory_entry_t
pagedirectory_t[PAGE_SIZE / sizeof(pagedirectory_entry_t)];
extern pagedirectory_t page_directory;
#endif