refactor(kernel): minor refactor. Changed naming convention

This commit is contained in:
karina
2026-04-23 22:17:56 +04:00
parent 93bce5a46d
commit f469da7e0b
5 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1,13 +1,13 @@
#pragma once
#include <types.h>
static inline void IOAddressWrite32(UInt64 address, UInt32 value) {
static inline void IOAddressWrite32(Address address, UInt32 value) {
__asm__ volatile ("dsb sy" ::: "memory"); // wait till all previous writes are finished physically
*(volatile UInt32*)address = value;
__asm__ volatile ("dsb sy" ::: "memory"); // wait till my write is finished physically
}
static inline UInt32 IOAddressRead32(UInt64 address) {
static inline UInt32 IOAddressRead32(Address address) {
UInt32 value = *(volatile UInt32*)address;
__asm__ volatile ("dsb ld" ::: "memory"); // wait till my read is finished physically
return value;