diff options
Diffstat (limited to 'src/drivers/pc80/rtc')
-rw-r--r-- | src/drivers/pc80/rtc/mc146818rtc_romcc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/pc80/rtc/mc146818rtc_romcc.c b/src/drivers/pc80/rtc/mc146818rtc_romcc.c index cdce66a6b9..4405443501 100644 --- a/src/drivers/pc80/rtc/mc146818rtc_romcc.c +++ b/src/drivers/pc80/rtc/mc146818rtc_romcc.c @@ -74,10 +74,10 @@ static inline __attribute__((unused)) int do_normal_boot(void) return boot_use_normal(byte); } -unsigned read_option_lowlevel(unsigned start, unsigned size, unsigned def) +unsigned int read_option_lowlevel(unsigned int start, unsigned int size, unsigned int def) { #if CONFIG(USE_OPTION_TABLE) - unsigned byte; + unsigned int byte; byte = cmos_read(start/8); return (byte >> (start & 7U)) & ((1U << size) - 1U); |