riscv: fix typo frequrency -> frequency
Change-Id: I7a2ed220ad96a9b18bff3ac5c115592c8ba87d89 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4334 Reviewed-by: Axel Dörfler <[email protected]>
This commit is contained in:
committed by
Axel Dörfler
parent
950f68e3b2
commit
5855a8e350
@@ -53,7 +53,7 @@ typedef struct {
|
||||
uint32 machine_platform;
|
||||
|
||||
uint bootHart;
|
||||
uint64 timerFrequrency; // in Hz
|
||||
uint64 timerFrequency; // in Hz
|
||||
|
||||
// All following address are virtual
|
||||
FixedWidthPointer<void> acpi_root;
|
||||
|
||||
@@ -33,7 +33,7 @@ static void* sDtbTable = NULL;
|
||||
static uint32 sDtbSize = 0;
|
||||
|
||||
static uint32 sBootHart = 0;
|
||||
static uint64 sTimerFrequrency = 10000000;
|
||||
static uint64 sTimerFrequency = 10000000;
|
||||
|
||||
static addr_range sPlic = {0};
|
||||
static addr_range sClint = {0};
|
||||
@@ -320,7 +320,7 @@ HandleFdt(const void* fdt, int node, uint32 addressCells, uint32 sizeCells,
|
||||
sBootHart = fdt32_to_cpu(*prop);
|
||||
} else if (strcmp(name, "cpus") == 0) {
|
||||
if (uint32* prop = (uint32*)fdt_getprop(fdt, node, "timebase-frequency", NULL))
|
||||
sTimerFrequrency = fdt32_to_cpu(*prop);
|
||||
sTimerFrequency = fdt32_to_cpu(*prop);
|
||||
}
|
||||
|
||||
const char* deviceType = (const char*)fdt_getprop(fdt, node,
|
||||
@@ -441,8 +441,8 @@ dtb_set_kernel_args()
|
||||
#ifdef __riscv
|
||||
dprintf("bootHart: %" B_PRIu32 "\n", sBootHart);
|
||||
gKernelArgs.arch_args.bootHart = sBootHart;
|
||||
dprintf("timerFrequrency: %" B_PRIu64 "\n", sTimerFrequrency);
|
||||
gKernelArgs.arch_args.timerFrequrency = sTimerFrequrency;
|
||||
dprintf("timerFrequency: %" B_PRIu64 "\n", sTimerFrequency);
|
||||
gKernelArgs.arch_args.timerFrequency = sTimerFrequency;
|
||||
|
||||
// gKernelArgs.arch_args.htif = {.start = 0x40008000, .size = 0x10};
|
||||
gKernelArgs.arch_args.htif = {.start = 0, .size = 0};
|
||||
|
||||
@@ -40,7 +40,7 @@ arch_cpu_init(kernel_args *args)
|
||||
{
|
||||
/*
|
||||
uint64 conversionFactor
|
||||
= (1LL << 32) * 1000000LL / args->arch_args.timerFrequrency;
|
||||
= (1LL << 32) * 1000000LL / args->arch_args.timerFrequency;
|
||||
|
||||
__riscv64_setup_system_time(conversionFactor);
|
||||
*/
|
||||
|
||||
@@ -17,10 +17,10 @@ arch_rtc_init(kernel_args *args, struct real_time_data *data)
|
||||
{
|
||||
/*
|
||||
data->arch_data.system_time_conversion_factor
|
||||
= (1LL << 32) * 1000000LL / args->arch_args.timerFrequrency;
|
||||
= (1LL << 32) * 1000000LL / args->arch_args.timerFrequency;
|
||||
|
||||
dprintf("timerFrequrency: %" B_PRIu64 "\n",
|
||||
args->arch_args.timerFrequrency);
|
||||
dprintf("timerFrequency: %" B_PRIu64 "\n",
|
||||
args->arch_args.timerFrequency);
|
||||
dprintf("system_time_conversion_factor: %" B_PRIu64 "\n",
|
||||
data->arch_data.system_time_conversion_factor);
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user