Rename rtc functions

This commit is contained in:
Imbus 2025-10-01 03:38:46 +02:00
parent 76037c1c18
commit e8b2c1ae56
3 changed files with 11 additions and 5 deletions

View file

@ -49,7 +49,7 @@ void start() {
memory_sweep(heap_start, heap_end);
buddy_init(heap_start, heap_end);
spinlock_init(&sl);
sbadrand(rtc_read_time() ^ swap64(rtc_read_time()));
sbadrand(rtc_time_read() ^ swap64(rtc_time_read()));
for (int i = 0; i < banner_len; i++) uart_putc(banner[i]);
__sync_synchronize();
hold = 0;
@ -83,8 +83,8 @@ void start() {
buddy_free(mem);
}
{
uint64_t time = rtc_read_time();
time = rtc_read_time();
uint64_t time = rtc_time_read();
time = rtc_time_read();
rtc_alarm_set(time + 3000000000);
uint64_t alrm = rtc_alarm_read();
assert(alrm > time);