started MMU implementation in C

This commit is contained in:
Markus Fröschle
2013-08-01 16:01:35 +00:00
parent 8dda70209a
commit 313c480904
4 changed files with 50 additions and 3 deletions

26
BaS_gcc/sources/mmu.c Normal file
View 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)
{
}