Skip to content

CLOCK_FREQ is error? #1

@liulog

Description

@liulog

For qemu-system-riscv64, the timebase-frequency is described in dts.

/ {
    cpus {
        ......
		timebase-frequency = <0x989680>;
        ......
    }
}

0x989680 = 10_000_000 = 10Mhz

/// clock frequency
pub const CLOCK_FREQ: usize = 12500000;

But in config.rs, CLOCK_FREQ is defined as 12_500_000 = 12.5Mhz.

Is it an error or designed for something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions