added function to flush only a portion of the caches

This commit is contained in:
Markus Fröschle
2014-09-24 16:02:20 +00:00
parent 37037b1e4c
commit 8949a8456e
3 changed files with 61 additions and 2 deletions

View File

@@ -347,7 +347,10 @@ void mmu_init(void)
* video RAM: read write execute normal write true
*/
flags.cache_mode = CACHE_WRITETHROUGH;
flags.protection = SV_USER;
flags.page_id = SCA_PAGE_ID;
flags.access = ACCESS_READ | ACCESS_WRITE | ACCESS_EXECUTE;
flags.locked = true;
mmu_map_page(0x00d00000, 0x60d00000, MMU_PAGE_SIZE_1M, &flags);
video_tlb = 0x2000; /* set page as video page */