Changeset 587 for trunk/hal/generic
- Timestamp:
- Nov 1, 2018, 12:39:27 PM (6 years ago)
- Location:
- trunk/hal/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_atomic.h
r505 r587 60 60 ***************************************************************************************** 61 61 * @ ptr : pointer on the shared variable (signed or unsigned) 62 * @ val : signedvalue to add62 * @ val : value to add 63 63 * @ return shared variable value before add 64 64 ****************************************************************************************/ -
trunk/hal/generic/hal_exception.h
r480 r587 35 35 // => The hal_do_exception() function call the generic vmm_handle_page_fault(), 36 36 // or the fpu_handle_exception() function, and the calling thread resumes execution 37 // when the exception has beenhandled.37 // when the exception can be sucessfully handled. 38 38 // 39 39 // - USER_ERROR : exceptions such a "illegal vaddr" or "illegal write access" are fatal. … … 51 51 52 52 /***************************************************************************************** 53 * This enum defines the global exception types after analysis by the exception handler. 54 ****************************************************************************************/ 55 56 typedef enum 57 { 58 EXCP_NON_FATAL, 59 EXCP_USER_ERROR, 60 EXCP_KERNEL_PANIC, 61 } 62 exception_handling_type_t; 63 64 65 /***************************************************************************************** 53 66 * This function is called by the hal_kentry() function when an exception is detected by 54 67 * the hardware for a given thread running on a given core. -
trunk/hal/generic/hal_gpt.h
r457 r587 126 126 127 127 /**************************************************************************************** 128 * This function map a local GPT entry identified by its VPN, from values defined129 * by the ppn and attr arguments. It allocates physical memory for the local generic130 * page table itselfif required.128 * This function map a - local or remote - GPT entry identified by its VPN, from values 129 * defined by the <ppn> and <attr> arguments. It allocates physical memory in remote 130 * cluster for the GPT PT2, using a RPC_PMEM_GET_PAGES, if required. 131 131 **************************************************************************************** 132 132 * @ gpt : [in] pointer on the page table … … 136 136 * @ returns 0 if success / returns ENOMEM if error 137 137 ***************************************************************************************/ 138 error_t hal_gpt_set_pte( gpt_t * gpt,138 error_t hal_gpt_set_pte( xptr_t gpt_xp, 139 139 vpn_t vpn, 140 140 uint32_t attr, … … 143 143 /**************************************************************************************** 144 144 * This function unmaps a page table entry identified by the <vpn> argument in the 145 * local page tableidentified by the <gpt> argument.145 * local GPT identified by the <gpt> argument. 146 146 * It does NOT release the physical memory allocated for the unmapped page. 147 147 **************************************************************************************** … … 153 153 154 154 /**************************************************************************************** 155 * This function returns in the <attr> and <ppn> arguments the current values 156 * stored in aGPT entry, identified by the <gpt> and <vpn> arguments.157 **************************************************************************************** 158 * @ gpt_xp : [in] pointer on the page table155 * This function returns in the <attr> and <ppn> arguments the current values stored 156 * in a -local or remote - GPT entry, identified by the <gpt> and <vpn> arguments. 157 **************************************************************************************** 158 * @ gpt_xp : [in] extended pointer on the page table 159 159 * @ vpn : [in] virtual page number 160 160 * @ attr : [out] generic attributes 161 161 * @ ppn : [out] physical page number 162 162 ***************************************************************************************/ 163 void hal_gpt_get_pte( gpt_t * gpt,163 void hal_gpt_get_pte( xptr_t gpt_xp, 164 164 vpn_t vpn, 165 165 uint32_t * attr,
Note: See TracChangeset
for help on using the changeset viewer.