|
@@ -32,7 +32,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
static int __init init_mapping_32m(void);
|
|
static int __init init_mapping_32m(void);
|
|
|
-static __archptr_t freeptr;
|
|
|
|
|
|
|
+__archptr_t freeptr;
|
|
|
|
|
|
|
|
|
|
|
|
|
/* the most important work is: get total size of ram,
|
|
/* the most important work is: get total size of ram,
|
|
@@ -53,7 +53,6 @@ int arch_mm_init(void) {
|
|
|
z = (struct zone *) &_end;
|
|
z = (struct zone *) &_end;
|
|
|
p = (struct page *) (z + 2);
|
|
p = (struct page *) (z + 2);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
memset(z, 0, sizeof(struct zone) * 2);
|
|
memset(z, 0, sizeof(struct zone) * 2);
|
|
|
|
|
|
|
|
z[0].type = ZONETYPE_RAM;
|
|
z[0].type = ZONETYPE_RAM;
|
|
@@ -125,7 +124,9 @@ static int __init init_mapping_32m(void) {
|
|
|
lvl2[j] = addr;
|
|
lvl2[j] = addr;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- freeptr = (__archptr_t) lvl2 + j;
|
|
|
|
|
|
|
+ /* 16 kib, oh dear, my dear 16 kib :-( */
|
|
|
|
|
+
|
|
|
|
|
+ freeptr = 0x7000;
|
|
|
|
|
|
|
|
/* no need to invalidate() */
|
|
/* no need to invalidate() */
|
|
|
|
|
|