Closed Amjad50 closed 9 months ago
Improve the handling of memory addresses types in the kernel, usize and u64
usize
u64
Also added some improvements to align related functions, and MemSize
align
MemSize
Fixes #16
is_aligned
align_down
as _
Summary
Improve the handling of memory addresses types in the kernel,
usize
andu64
Also added some improvements to
align
related functions, andMemSize
Related issue
Fixes #16
Changes
MemSize
to use generic. Now can beu64
orusize
(or technically any number).usize
for virtual addresses andu64
for physical addresses and established documentation on this note.align
related functions (is_aligned
,align_down
...) to be implemented forusize
andu64
as _
casts in the code.Checklist