started MMU implementation in C
This commit is contained in:
@@ -138,7 +138,7 @@ _mmu_init:
|
||||
move.l d0,_video_tlb // set page as video page
|
||||
clr.l _video_sbt // clear time
|
||||
|
||||
#ifdef _NOT_USED_
|
||||
|
||||
//-------------------------------------------------------------------------------------
|
||||
// Make the TOS (in SDRAM) read-only
|
||||
move.l #__TOS+std_mmutr,d0
|
||||
@@ -147,7 +147,6 @@ _mmu_init:
|
||||
move.l d1,MCF_MMU_MMUDR
|
||||
move.l d2,MCF_MMU_MMUOR // setzen read only ?????? noch nicht
|
||||
move.l d3,MCF_MMU_MMUOR // setzen
|
||||
#endif /* _NOT_USED_ */
|
||||
|
||||
// 00f0'0000 locked
|
||||
move.l #0x00f00000|std_mmutr,d0
|
||||
|
||||
26
sources/mmu.c
Normal file
26
sources/mmu.c
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* mmu.c
|
||||
*
|
||||
* Created on: 01.08.2013
|
||||
* Author: froesm1
|
||||
*/
|
||||
|
||||
|
||||
#include <MCF5475.h>
|
||||
#include "mmu.h"
|
||||
|
||||
void mmu_init(void)
|
||||
{
|
||||
/*
|
||||
* set ASID and shadow register
|
||||
*/
|
||||
__asm__ __volatile__("clr.l d0\n\t"
|
||||
"movec d0,ASID\n\t"
|
||||
"move.l d0,_rt_asid\n\t");
|
||||
|
||||
}
|
||||
|
||||
|
||||
__attribute__((interrupt)) void mmutr_miss(void)
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user