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:
1 parent
fb807847bf
commit
90e03d4f95
8 files changed
+53
-12
No files matched your search
@@ -9,16 +9,13 @@
|
||||
|
||||
%define VIRTUAL_OFFSET 0xE0000000 ; kernel virtual addr
|
||||
|
||||
%define TEMPORARY_STACK_PHYSICAL 0x01000000-4 ; top of first 16MB
|
||||
%define TEMPORARY_STACK_VIRTUAL TEMPORARY_STACK_PHYSICAL + VIRTUAL_OFFSET
|
||||
|
||||
%define PAGE_SIZE 0x1000 ; 4KB pages
|
||||
|
||||
; Symbols from the linker
|
||||
extern _end, _bss
|
||||
|
||||
; Symbols from C
|
||||
extern k_mbsave
|
||||
extern k_mbsave, page_directory
|
||||
|
||||
;-------------------------------------------------------
|
||||
[section .text]
|
||||
@@ -66,7 +63,7 @@ segmented_start:
|
||||
mov es, cx
|
||||
mov gs, cx
|
||||
mov fs, cx
|
||||
mov esp, TEMPORARY_STACK_VIRTUAL-4 ; set up temporary stack space
|
||||
mov esp, page_directory+PAGE_SIZE-4 ; set up temporary stack space
|
||||
|
||||
mov ax, 0x0700 + 'b'
|
||||
mov [VIRTUAL_OFFSET+0xB8000+160*8+1*2], ax
|
||||
|
||||
Reference in new issue
Block a user