#ifndef CRASHPOWEROS_CPOS_H #define CRASHPOWEROS_CPOS_H struct sysinfo{ char* osname; char* kenlname; char* cpu_vendor; char* cpu_name; unsigned int phy_mem_size; unsigned int pci_device; unsigned int frame_width; unsigned int frame_height; }; #include "syscall.h" #include "stdlib.h" static inline struct sysinfo* get_sysinfo(){ return syscall_sysinfo(); } static inline void free_info(struct sysinfo *info){ free(info->kenlname); free(info->osname); free(info->cpu_name); free(info->cpu_vendor); free(info); } #endif