Searched refs:hart_id (Results 1 – 7 of 7) sorted by relevance
| /hal_microchip-latest/mpfs/mpfs_hal/common/ |
| D | mss_pmp.c | 130 uint8_t pmp_configure(uint8_t hart_id) /* set-up with settings from Libero */ in pmp_configure() argument 139 write_csr(pmpaddr0, pmp_values[hart_id][2]); in pmp_configure() 140 write_csr(pmpaddr1, pmp_values[hart_id][3]); in pmp_configure() 141 write_csr(pmpaddr2, pmp_values[hart_id][4]); in pmp_configure() 142 write_csr(pmpaddr3, pmp_values[hart_id][5]); in pmp_configure() 143 write_csr(pmpaddr4, pmp_values[hart_id][6]); in pmp_configure() 144 write_csr(pmpaddr5, pmp_values[hart_id][7]); in pmp_configure() 145 write_csr(pmpaddr6, pmp_values[hart_id][8]); in pmp_configure() 146 write_csr(pmpaddr7, pmp_values[hart_id][9]); in pmp_configure() 147 write_csr(pmpaddr8, pmp_values[hart_id][10]); in pmp_configure() [all …]
|
| D | mss_clint.c | 95 volatile uint64_t hart_id = read_csr(mhartid); in handle_m_timer_interrupt() local 99 switch(hart_id) in handle_m_timer_interrupt() 117 while (hart_id != 0U) in handle_m_timer_interrupt() 124 CLINT->MTIMECMP[read_csr(mhartid)] = CLINT->MTIME + g_systick_increment[hart_id]; in handle_m_timer_interrupt() 136 volatile uint64_t hart_id = read_csr(mhartid); in handle_m_soft_interrupt() local 139 switch(hart_id) in handle_m_soft_interrupt() 157 while (hart_id != 0U) in handle_m_soft_interrupt()
|
| D | mss_clint.h | 52 static inline void raise_soft_interrupt(unsigned long hart_id) in raise_soft_interrupt() argument 56 CLINT->MSIP[hart_id] = 0x01U; /*raise soft interrupt for hart(x) where x== hart ID*/ in raise_soft_interrupt() 67 uint64_t hart_id = read_csr(mhartid); in clear_soft_interrupt() local 68 CLINT->MSIP[hart_id] = 0x00U; /*clear soft interrupt for hart0*/ in clear_soft_interrupt() 69 …reg = CLINT->MSIP[hart_id]; /* we read back to make sure it has been written before moving on … in clear_soft_interrupt()
|
| D | mss_plic.h | 719 uint64_t hart_id = read_csr(mhartid); in PLIC_init() local 722 switch(hart_id) in PLIC_init() 800 uint64_t hart_id = read_csr(mhartid); in PLIC_EnableIRQ() local 802 switch(hart_id) in PLIC_EnableIRQ() 850 uint64_t hart_id = read_csr(mhartid); in PLIC_DisableIRQ() local 852 switch(hart_id) in PLIC_DisableIRQ() 923 uint64_t hart_id = read_csr(mhartid); in PLIC_ClaimIRQ() local 925 return (PLIC->TARGET[plic_hart_lookup[hart_id]].CLAIM_COMPLETE); in PLIC_ClaimIRQ() 934 uint64_t hart_id = read_csr(mhartid); in PLIC_CompleteIRQ() local 938 PLIC->TARGET[plic_hart_lookup[hart_id]].CLAIM_COMPLETE = source; in PLIC_CompleteIRQ() [all …]
|
| D | mss_pmp.h | 82 uint8_t pmp_configure(uint8_t hart_id); 83 void pmp_master_configs(uint8_t hart_id, uint64_t * pmp0cfg);
|
| /hal_microchip-latest/mpfs/mpfs_hal/startup_gcc/ |
| D | system_startup.c | 55 uint8_t hart_id; in main_first_hart() local 103 hart_id = MPFS_HAL_FIRST_HART + 1U; in main_first_hart() 104 while( hart_id <= MPFS_HAL_LAST_HART) in main_first_hart() 113 switch (hart_id) in main_first_hart() 142 hls->my_hart_id = hart_id; /* record hartid locally */ in main_first_hart() 143 raise_soft_interrupt(hart_id); in main_first_hart() 152 hart_id++; in main_first_hart() 162 hls->my_hart_id = hart_id; /* record hartid locally */ in main_first_hart() 163 raise_soft_interrupt(hart_id); in main_first_hart() 527 uint8_t hart_id; in init_bus_error_unit() local [all …]
|
| D | system_startup.h | 127 uint8_t init_pmp(uint8_t hart_id);
|