Bug 205597

Summary: [mips] __clear_cache causes calling process to abort
Product: Base System Reporter: David Chisnall <theraven>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People CC: Andrew, brooks, dnelson_1901
Priority: ---    
Version: CURRENT   
Hardware: mips   
OS: Any   

Description David Chisnall freebsd_committer freebsd_triage 2015-12-25 13:39:00 UTC
The __clear_cache function (from libgcc / libcompier-rt) ought to issue a system call that flushes instruction caches.  Instead, it aborts.  This makes it impossible to correctly implement self-modifying code on MIPS (where i-cache is not guaranteed to be coherent with d-cache).