projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9b16dc8
)
Update comments, put LOADER_PHYS_BASE back at 3 GB.
author
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 31 Aug 2004 02:55:48 +0000
(
02:55
+0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 31 Aug 2004 02:55:48 +0000
(
02:55
+0000)
src/threads/loader.h
patch
|
blob
|
history
diff --git
a/src/threads/loader.h
b/src/threads/loader.h
index 2aebb0f8f3a07965bd8690c7bfc7cb81b5f3656c..8bd603fdfd899cceb8ae4cbe22ddf06791993d24 100644
(file)
--- a/
src/threads/loader.h
+++ b/
src/threads/loader.h
@@
-8,11
+8,14
@@
/* Physical address of kernel base. */
#define LOADER_KERN_BASE 0x100000 /* 1 MB. */
/* Physical address of kernel base. */
#define LOADER_KERN_BASE 0x100000 /* 1 MB. */
-/* The loader maps 4 MB of the start of physical memory to this
- virtual base address. Later, the kernel adds the rest of
- physical memory to the mapping.
+/* Kernel virtual address at which all physical memory is mapped.
+
+ The loader maps the 4 MB at the bottom of physical memory to
+ this virtual base address. Later, paging_init() adds the rest
+ of physical memory to the mapping.
+
This must be aligned on a 4 MB boundary. */
This must be aligned on a 4 MB boundary. */
-#define LOADER_PHYS_BASE 0x
b
0000000 /* 3 GB. */
+#define LOADER_PHYS_BASE 0x
c
0000000 /* 3 GB. */
/* Offsets within the loader. */
#define LOADER_BIOS_SIG (LOADER_SIZE - 2) /* aa55 BIOS signature. */
/* Offsets within the loader. */
#define LOADER_BIOS_SIG (LOADER_SIZE - 2) /* aa55 BIOS signature. */