Home
last modified time | relevance | path

Searched refs:ALIGN (Results 1 – 8 of 8) sorted by relevance

/DragonOS/kernel/src/libs/
H A Dalign.rs18 pub struct AlignedBox<T, const ALIGN: usize> {
22 impl<T, const ALIGN: usize> AlignedBox<T, ALIGN> {
33 max(ALIGN, core::mem::align_of::<T>()),
70 impl<T, const ALIGN: usize> Debug for AlignedBox<T, ALIGN> {
83 impl<T, const ALIGN: usize> Drop for AlignedBox<T, ALIGN> {
94 impl<T, const ALIGN: usize> core::ops::Deref for AlignedBox<T, ALIGN> {
102 impl<T, const ALIGN: usize> core::ops::DerefMut for AlignedBox<T, ALIGN> {
108 impl<T: Clone + SafeForZero, const ALIGN: usize> Clone for AlignedBox<T, ALIGN> {
110 let mut new: AlignedBox<T, ALIGN> = in clone()
/DragonOS/kernel/src/arch/riscv64/
H A Dlink.ld16 . = ALIGN(4096);
23 . = ALIGN(4096);
25 . = ALIGN(4096);
29 . = ALIGN(4096);
43 . = ALIGN(32768);
55 . = ALIGN(32768);
66 . = ALIGN(32768);
72 . = ALIGN(32768);
/DragonOS/kernel/src/arch/x86_64/
H A Dlink.lds20 . = ALIGN(4096);
25 . = ALIGN(32768);
39 . = ALIGN(32768);
50 . = ALIGN(32768);
61 . = ALIGN(32768);
67 . = ALIGN(32768);
/DragonOS/kernel/src/common/
H A Dglib.h54 static __always_inline ul ALIGN(const ul addr, const ul _align) in ALIGN() function
/DragonOS/kernel/src/process/
H A Didle.rs39 VirtAddr::new(Self::stack_ptr().data() & (!(KernelStack::ALIGN - 1))); in init_idle()
H A Dmod.rs1356 stack: Option<AlignedBox<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>>,
1363 pub const ALIGN: usize = 0x4000; constant
1368 AlignedBox::<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>::new_zeroed()?, in new()
1378 if base.is_null() || !base.check_aligned(Self::ALIGN) { in from_existed()
1384 AlignedBox::<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>::new_unchecked( in from_existed()
/DragonOS/kernel/src/arch/riscv64/process/
H A Dmod.rs324 let stack_base = VirtAddr::new(ptr.data() & (!(KernelStack::ALIGN - 1))); in arch_current_pcb()
/DragonOS/kernel/src/arch/x86_64/process/
H A Dmod.rs273 let stack_base = VirtAddr::new(ptr.data() & (!(KernelStack::ALIGN - 1))); in arch_current_pcb()