Changes between Version 1 and Version 2 of kernel_cp0
- Timestamp:
- Sep 30, 2015, 3:32:33 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kernel_cp0
v1 v2 6 6 They are prefixed by ''_'' to remind that they can only be executed by a processor in kernel mode. 7 7 8 === unsigned int _get_sched( void ) ===8 === static_scheduler_t* '''_get_sched'''( void ) === 9 9 Returns the virtual address of the scheduler, stored in the CP0_SCHED register, for the processor running the calling task. 10 10 11 === unsigned int _get_epc( void ) ===11 === unsigned int '''_get_epc'''( void ) === 12 12 Returns the value stored in the CP0_EPC register, for the processor running the calling task. 13 13 14 === unsigned int _get_cr( void ) ===14 === unsigned int '''_get_cr'''( void ) === 15 15 Returns the value stored in the CP0_CR register, for the processor running the calling task. 16 16 17 === unsigned int _get_sr( void ) ===17 === unsigned int '''_get_sr'''( void ) === 18 18 Returns the value stored in the CP0_SR register, for the processor running the calling task. 19 19 20 === unsigned int _get_bvar( void ) ===20 === unsigned int '''_get_bvar'''( void ) === 21 21 Returns the value stored in the CP0_BVAR register, for the processor running the calling task. 22 22 23 === unsigned int _get_procid( void ) ===23 === unsigned int '''_get_procid'''( void ) === 24 24 Returns the global processor identifier stored in the CP0_PROCID register for the processor running the calling task. 25 25 26 === unsigned int _get_protime( void ) ===26 === unsigned int '''_get_protime'''( void ) === 27 27 Returns the cycle count stored in the CP0_TIME register for the processor running the calling task. 28 28 29 === void _ set_sched( unsigned int value ) ===29 === void _'''set_sched'''( unsigned int value ) === 30 30 Writes ''value'' in the CP0_SCHED register, for the processor running the calling task. 31 31 32 === void _set_sr( unsigned int value ) ===32 === void '''_set_sr'''( unsigned int value ) === 33 33 Writes ''value'' in the CP0_SR register, for the processor running the calling task. 34 34 35 === void _it_disable( unsigned int* save_sr_ptr ) ===35 === void '''_it_disable'''( unsigned int* save_sr_ptr ) === 36 36 Disables interrupts for the processor running the calling task and save the CP0_SR value at address ''save_sr_ptr''. 37 37 38 === void _it_restore( unsigned int* save_sr_ptr ) ===38 === void '''_it_restore'''( unsigned int* save_sr_ptr ) === 39 39 Writes the value pointed by ''save_sr_ptr'' into the CP0_SR register, for the processor running the calling task. 40 40