Changes between Initial Version and Version 1 of kernel_cp2


Ignore:
Timestamp:
Oct 9, 2014, 10:36:37 AM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kernel_cp2

    v1 v1  
     1= GIET-VM / CP2 registers access functions =
     2
     3[[PageOutline]]
     4
     5The [source:soft/giet_vm/giet_common/utils.c utils.c] and [source:soft/giet_vm/giet_common/utils.h util.h] files define the functions used to access the CP2 registers (Memory Management Unit registers).
     6
     7They are prefixed by  "_"  to remind that they can only be executed by a processor in kernel mode.
     8
     9 === unsigned int _get_mmu_ptpr( void ) ===
     10Returns the value stored in the CP2_PTPR register, for the processor running the calling task.
     11
     12 === unsigned int _get_mmu_mode( void ) ===
     13Returns the value stored in the CP2_MODE register, for the processor running the calling task.
     14
     15 === void _set_mmu_ptpr( unsigned int value ) ===
     16Writes ''value'' in the CP2_PTPR register, for the processor running the calling task.
     17
     18 === void _set_mmu_mode( unsigned int value ) ===
     19Writes ''value'' in the CP2_MODE register, for the processor running the calling task.