Skip to content

Commit

Permalink
Don't put kernel at 3G; there's no need.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlq committed Mar 29, 2012
1 parent c2ec2a1 commit 064fc8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kernel.ld
Expand Up @@ -8,7 +8,7 @@ _phys_base = 0x00100000 ;
/* Virtual base address of kernel.
This is the address the kernel will run at,
after paging is enabled in start.S. */
_virt_base = 0xC0100000 ;
_virt_base = 0x00100000 ;

PHDRS {
physical PT_LOAD FLAGS(7) ;
Expand Down
4 changes: 1 addition & 3 deletions start.S
Expand Up @@ -53,8 +53,7 @@ _start:
pushl %edx /* magic */

/* Create initial page tables.
0x00000000 .. 0x003FFFFF is mapped to 0x00000000
0xC0000000 .. 0xC03FFFFF is mapped to 0x00000000 */
0x00000000 .. 0x003FFFFF is mapped to 0x00000000 */
movl $boot_page_table,%edi
movl $0x00000003,%eax
movl $1024,%ecx
Expand All @@ -67,7 +66,6 @@ _start:
movl $boot_page_table,%eax
orl $0x00000003,%eax
movl %eax,(boot_page_directory + 0x000)
movl %eax,(boot_page_directory + 0xC00)

/* Load page directory. */
movl $boot_page_directory,%eax
Expand Down

0 comments on commit 064fc8c

Please sign in to comment.