Changes between Version 2 and Version 3 of common_utils


Ignore:
Timestamp:
Aug 12, 2014, 12:27:08 PM (11 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • common_utils

    v2 v3  
    77 * They are also used by the kernel in the ''dynamic'' phase, to handle events such as interrupts, exceptions and syscalls.
    88
    9  === CP0 and CP2 registers access functions ===
     9[[PageOutline]]
     10
     11 == __1) CP0 registers access functions__ ==
     12
     13 === unsigned int _get_sched( void ) ===
     14Returns the virtual address of the scheduler stored in the SCHED register for the processor running the calling task.
     15
     16 === unsigned int _get_epc( void ) ===
     17Returns the value stored in the EPC register for the processor running the calling task. 
     18
     19 === unsigned int _get_cr( void ) ===
     20Returns the value stored in the CR register for the processor running the calling task.
     21
     22 === unsigned int _get_sr( void ) ===
     23Returns the value stored in the SR register for the processor running the calling task.
     24
     25 === unsigned int _get_bvar( void ) ===
     26Returns the value stored in the BVAR register, for the processor running the calling task.
     27
     28 === unsigned int _get_procid( void ) ===
     29Returns the global processor identifier stored in the EBASE register for the processor running the calling task.
     30
     31 === void _set_sched( unsigned int value ) ===
     32Writes ''value'' in the SCHED register, for the processor running the calling task.
     33
     34 === void _set_sr( unsigned int value ) ===
     35Writes ''value'' in the SR register, for the processor running the calling task.
     36
     37 === void _it_disable( unsigned int* save_sr_ptr ) ===
     38Disables interrupts for the processor running the calling task and save the SR value at address ''save_sr_ptr''.
     39
     40 === void _it_restore( unsigned int* save_sr_ptr ) ===
     41Writes the value pointed by ''save_sr_ptr'' into the SR register, for the processor running the calling task.
     42
     43
    1044
    1145 These functions can be used to access the MIPS32 protected registers
    1246
    13  === Physical addressing functions ===
     47 == __2) Physical addressing functions__ ==
    1448
    15 
     49 ===
    1650
    1751 === Miscelaneous functions ===