File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 40
40
#include < Kernel/Scheduler.h>
41
41
#include < Kernel/SpinLock.h>
42
42
#include < Kernel/StdLib.h>
43
- #include < Kernel/VM/MemoryManager.h>
44
43
45
44
#define SANITIZE_KMALLOC
46
45
@@ -49,15 +48,12 @@ struct AllocationHeader {
49
48
u8 data[0 ];
50
49
};
51
50
51
+ #define BASE_PHYSICAL (0xc0000000 + (4 * MiB))
52
52
#define CHUNK_SIZE 32
53
53
#define POOL_SIZE (3 * MiB)
54
- #define ETERNAL_RANGE_SIZE (2 * MiB)
55
54
56
- // We need to make sure to not stomp on global variables or other parts
57
- // of the kernel image!
58
- extern u32 end_of_kernel_bss;
59
- #define ETERNAL_BASE_PHYSICAL ((u8 *)PAGE_ROUND_UP(&end_of_kernel_bss))
60
- #define BASE_PHYSICAL (ETERNAL_BASE_PHYSICAL + ETERNAL_RANGE_SIZE)
55
+ #define ETERNAL_BASE_PHYSICAL (0xc0000000 + (2 * MiB))
56
+ #define ETERNAL_RANGE_SIZE (2 * MiB)
61
57
62
58
static u8 alloc_map[POOL_SIZE / CHUNK_SIZE / 8 ];
63
59
You can’t perform that action at this time.
0 commit comments