X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/aa2843fdbdd9b5cc579d198fd1a9ec874642706e..b9f4a7b7475e62dbff22da6dd768222f03889c00:/lunaix-os/includes/hal/cpu.h diff --git a/lunaix-os/includes/hal/cpu.h b/lunaix-os/includes/hal/cpu.h deleted file mode 100644 index c68bb95..0000000 --- a/lunaix-os/includes/hal/cpu.h +++ /dev/null @@ -1,83 +0,0 @@ -#ifndef __LUNAIX_CPU_H -#define __LUNAIX_CPU_H - -#include - -/** - * @brief Get processor ID string - * - * @param id_out - */ -void -cpu_get_id(char* id_out); - -/** - * @brief Load current processor state - * - * @return u32_t - */ -u32_t -cpu_ldstate(); - -/** - * @brief Load current processor config - * - * @return u32_t - */ -u32_t -cpu_ldconfig(); - -/** - * @brief Change current processor state - * - * @return u32_t - */ -void -cpu_chconfig(u32_t val); - -/** - * @brief Load current virtual memory space - * - * @return u32_t - */ -u32_t -cpu_ldvmspace(); - -/** - * @brief Change current virtual memory space - * - * @return u32_t - */ -void -cpu_chvmspace(u32_t val); - -/** - * @brief Flush TLB - * - * @return u32_t - */ -void -cpu_flush_page(ptr_t va); - -void -cpu_flush_vmspace(); - -void -cpu_enable_interrupt(); - -void -cpu_disable_interrupt(); - -void -cpu_trap_sched(); - -void -cpu_trap_panic(char* message); - -void -cpu_wait(); - -ptr_t -cpu_ldeaddr(); - -#endif /* __LUNAIX_CPU_H */