Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/arch/mips/include



On Jul 22, 2014, at 12:54 PM, Alexander Nasonov <alnsn%netbsd.org@localhost> 
wrote:

> Module Name:  src
> Committed By: alnsn
> Date:         Tue Jul 22 19:54:55 UTC 2014
> 
> Modified Files:
>       src/sys/arch/mips/include: sljitarch.h
> 
> Log Message:
> Define SLJIT_CACHE_FLUSH() for mips.

Actually, this isn't enough.  You need to allocate a page of mapped
memory as RWX and then when you are done use pmap_protect to change
it to RX followed by pmap_update() and the pmap will automagically
sync the page for you.

Indeed, you must make sure the page containing the code had
execute protect which the kmem_* routines won't give you.


Home | Main Index | Thread Index | Old Index