Bug 205597 - [mips] __clear_cache causes calling process to abort
Summary: [mips] __clear_cache causes calling process to abort
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: mips Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-25 13:39 UTC by David Chisnall
Modified: 2020-08-02 02:24 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).