Changeset View
Changeset View
Standalone View
Standalone View
sys/riscv/riscv/identcpu.c
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
#ifdef FDT | #ifdef FDT | ||||
#include <dev/fdt/fdt_common.h> | #include <dev/fdt/fdt_common.h> | ||||
#include <dev/ofw/openfirm.h> | #include <dev/ofw/openfirm.h> | ||||
#include <dev/ofw/ofw_bus_subr.h> | #include <dev/ofw/ofw_bus_subr.h> | ||||
#endif | #endif | ||||
char machine[] = "riscv"; | char machine[] = "riscv"; | ||||
SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD, machine, 0, | SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD | CTLFLAG_CAPRD, machine, 0, | ||||
"Machine class"); | "Machine class"); | ||||
/* Hardware implementation info. These values may be empty. */ | /* Hardware implementation info. These values may be empty. */ | ||||
register_t mvendorid; /* The CPU's JEDEC vendor ID */ | register_t mvendorid; /* The CPU's JEDEC vendor ID */ | ||||
register_t marchid; /* The architecture ID */ | register_t marchid; /* The architecture ID */ | ||||
register_t mimpid; /* The implementation ID */ | register_t mimpid; /* The implementation ID */ | ||||
struct cpu_desc { | struct cpu_desc { | ||||
▲ Show 20 Lines • Show All 299 Lines • Show Last 20 Lines |