pub trait MtimeOptions {
;
;
;
;
;
;
;
}
Expand description

The options for use_mtime!.

Required Associated Constants§

source

The memory address of the mtime register.

source

The memory address of the mtimecmp register.

source

The numerator of the effective timer clock rate of the dual timer.

Provided Associated Constants§

source

When set to true, the driver clears the lower 32 bits of the mtime register on boot.

Disabling this might increase the runtime overhead of the driver. Nevertheless, the need to disable this might arise for numerous reasons including:

  • Updating the mtime register is not supported by QEMU at this time.

  • The mtime register might be shared with other harts and clearing it could confuse the code running in the other harts.

source

The denominator of the effective timer clock rate of the dual timer. Defaults to 1.

source

The maximum permissible timer interrupt latency, measured in hardware timer cycles.

Defaults to min(FREQUENCY * 60 / FREQUENCY_DENOMINATOR, 0x40000000).

source

The timer’s interrupt number. Defaults to INTERRUPT_TIMER.

Implementors§