diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-26 14:53:19 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-26 14:53:19 -0600 |
commit | 9cfae56f922ee209ab1147a95cdefbbc7abc43c2 (patch) | |
tree | 2372d74249b25a374f3a56749b460dbda5055289 /nuttx/arch/z80 | |
parent | 9d42a5757f9c020c358b54d5bdf359819a6c4f1d (diff) | |
download | px4-nuttx-9cfae56f922ee209ab1147a95cdefbbc7abc43c2.tar.gz px4-nuttx-9cfae56f922ee209ab1147a95cdefbbc7abc43c2.tar.bz2 px4-nuttx-9cfae56f922ee209ab1147a95cdefbbc7abc43c2.zip |
Add up_addrenv_coherent which will be called before address environment switches
Diffstat (limited to 'nuttx/arch/z80')
-rw-r--r-- | nuttx/arch/z80/src/z180/z180_mmu.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nuttx/arch/z80/src/z180/z180_mmu.c b/nuttx/arch/z80/src/z180/z180_mmu.c index 3aeb64468..e1373851d 100644 --- a/nuttx/arch/z80/src/z180/z180_mmu.c +++ b/nuttx/arch/z80/src/z180/z180_mmu.c @@ -458,6 +458,29 @@ int up_addrenv_restore(FAR const save_addrenv_t *oldenv) } /**************************************************************************** + * Name: up_addrenv_coherent + * + * Description: + * Flush D-Cache and invalidate I-Cache in preparation for a change in + * address environments. This should immediately precede a call to + * up_addrenv_select(); + * + * Input Parameters: + * addrenv - Describes the address environment to be made coherent. + * + * Returned Value: + * Zero (OK) on success; a negated errno value on failure. + * + ****************************************************************************/ + +int up_addrenv_coherent(FAR const group_addrenv_t *addrenv) +{ + /* There are no caches */ + + return OK; +} + +/**************************************************************************** * Name: up_addrenv_clone * * Description: |