Avoid using the first physical page. The first 2kB are supposedly protected by the hardware (though it should be accessible by supervisor...) This fixes an segfault.
Now the kernel panics in M68KAtari::InitTimer()... "WRITEME" :) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28008 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
#define ATARI_MEMORY_MAP_H
|
||||
|
||||
/* the DMA-accessible RAM */
|
||||
#define ATARI_CHIPRAM_BASE 0x00000000
|
||||
/*#define ATARI_CHIPRAM_BASE 0x00000000*/
|
||||
/* actually, the first 2kB aren't usable */
|
||||
#define ATARI_CHIPRAM_BASE 0x00001000
|
||||
#define ATARI_CHIPRAM_MAX 0x00e00000
|
||||
#define ATARI_CHIPRAM_LAST \
|
||||
(ATARI_CHIPRAM_BASE + (ATARI_CHIPRAM_MAX - 1))
|
||||
|
||||
@@ -625,7 +625,7 @@ mmu_init(void)
|
||||
|
||||
// st ram as 1st range
|
||||
gKernelArgs.physical_memory_range[0].start = ATARI_CHIPRAM_BASE;
|
||||
gKernelArgs.physical_memory_range[0].size = *TOSVARphystop;
|
||||
gKernelArgs.physical_memory_range[0].size = *TOSVARphystop - ATARI_CHIPRAM_BASE;
|
||||
gKernelArgs.num_physical_memory_ranges = 1;
|
||||
|
||||
// fast ram as 2nd range
|
||||
|
||||
Reference in New Issue
Block a user