History

Fix synchronization between data and instr caches

Thomas Preud'homme committed 13 years ago

Commit c68af2d1 parent 6ed6a361 file · +1 −1Browse files

Unified · Split

tccrun.c+1−1
@@ -225,7 +225,7 @@ static void set_pages_executable(void *ptr, unsigned long length) · 224 unmodified lines
225225 end = (addr_t)ptr + length;
226226 end = (end + PAGESIZE - 1) & ~(PAGESIZE - 1);
227227 mprotect((void *)start, end - start, PROT_READ | PROT_WRITE | PROT_EXEC);
228− __clear_cache(ptr, prog_main + length);
228+ __clear_cache(ptr, ptr + length);
229229 #endif
230230 }
231231

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t