From: Lawrence S. <ljs...@us...> - 2014-05-01 01:47:55
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via 89487109972dec695af7b43c863a4373ab127948 (commit) from e69f473ee66b91d8f06589967b5e0ad3c11c520e (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 89487109972dec695af7b43c863a4373ab127948 Author: Lawrence Sebald <ljs...@us...> Date: Wed Apr 30 21:47:29 2014 -0400 Invalidate the operand cache on dma reads in g1ata. ----------------------------------------------------------------------- Summary of changes: kernel/arch/dreamcast/hardware/g1ata.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/kernel/arch/dreamcast/hardware/g1ata.c b/kernel/arch/dreamcast/hardware/g1ata.c index 487a03d..5874bab 100644 --- a/kernel/arch/dreamcast/hardware/g1ata.c +++ b/kernel/arch/dreamcast/hardware/g1ata.c @@ -603,6 +603,9 @@ int g1_ata_read_lba_dma(uint64_t sector, size_t count, uint16_t *buf, return -1; } + /* Invalidate the dcache over the range of the data. */ + dcache_inval_range((uint32)buf, count * 512); + /* Lock the mutex. It will be unlocked later in the IRQ handler. */ if(g1_ata_mutex_lock()) return -1; hooks/post-receive -- A pseudo Operating System for the Dreamcast. |