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:
François Revol
2008-10-12 21:34:31 +00:00
parent c87d34624e
commit 33fa38c894
2 changed files with 4 additions and 2 deletions
@@ -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))
+1 -1
View File
@@ -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