Changes between Version 1 and Version 2 of kernel_cp0


Ignore:
Timestamp:
Sep 30, 2015, 3:32:33 PM (9 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kernel_cp0

    v1 v2  
    66They are prefixed by ''_'' to remind that they can only be executed by a processor in kernel mode.
    77
    8  === unsigned int _get_sched( void ) ===
     8 === static_scheduler_t* '''_get_sched'''( void ) ===
    99Returns the virtual address of the scheduler, stored in the CP0_SCHED register, for the processor running the calling task.
    1010
    11  === unsigned int _get_epc( void ) ===
     11 === unsigned int '''_get_epc'''( void ) ===
    1212Returns the value stored in the CP0_EPC register, for the processor running the calling task. 
    1313
    14  === unsigned int _get_cr( void ) ===
     14 === unsigned int '''_get_cr'''( void ) ===
    1515Returns the value stored in the CP0_CR register, for the processor running the calling task.
    1616
    17  === unsigned int _get_sr( void ) ===
     17 === unsigned int '''_get_sr'''( void ) ===
    1818Returns the value stored in the CP0_SR register, for the processor running the calling task.
    1919
    20  === unsigned int _get_bvar( void ) ===
     20 === unsigned int '''_get_bvar'''( void ) ===
    2121Returns the value stored in the CP0_BVAR register, for the processor running the calling task.
    2222
    23  === unsigned int _get_procid( void ) ===
     23 === unsigned int '''_get_procid'''( void ) ===
    2424Returns the global processor identifier stored in the CP0_PROCID register for the processor running the calling task.
    2525
    26  === unsigned int _get_protime( void ) ===
     26 === unsigned int '''_get_protime'''( void ) ===
    2727Returns the cycle count stored in the CP0_TIME register for the processor running the calling task.
    2828
    29  === void _set_sched( unsigned int value ) ===
     29 === void _'''set_sched'''( unsigned int value ) ===
    3030Writes ''value'' in the CP0_SCHED register, for the processor running the calling task.
    3131
    32  === void _set_sr( unsigned int value ) ===
     32 === void '''_set_sr'''( unsigned int value ) ===
    3333Writes ''value'' in the CP0_SR register, for the processor running the calling task.
    3434
    35  === void _it_disable( unsigned int* save_sr_ptr ) ===
     35 === void '''_it_disable'''( unsigned int* save_sr_ptr ) ===
    3636Disables interrupts for the processor running the calling task and save the CP0_SR value at address ''save_sr_ptr''.
    3737
    38  === void _it_restore( unsigned int* save_sr_ptr ) ===
     38 === void '''_it_restore'''( unsigned int* save_sr_ptr ) ===
    3939Writes the value pointed by ''save_sr_ptr'' into the CP0_SR register, for the processor running the calling task.
    4040