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);
45 . = ALIGN(32768);
57 . = ALIGN(32768);
68 . = ALIGN(32768);
74 . = ALIGN(32768);
/DragonOS/kernel/src/arch/x86_64/
H A Dlink.lds22 . = ALIGN(4096);
26 . = ALIGN(32768);
43 . = ALIGN(32768);
54 . = ALIGN(32768);
67 . = ALIGN(32768);
73 . = ALIGN(32768);
/DragonOS/kernel/src/common/
H A Dglib.h49 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.rs1400 stack: Option<AlignedBox<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>>,
1407 pub const ALIGN: usize = 0x4000; constant
1412 AlignedBox::<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>::new_zeroed()?, in new()
1422 if base.is_null() || !base.check_aligned(Self::ALIGN) { in from_existed()
1428 AlignedBox::<[u8; KernelStack::SIZE], { KernelStack::ALIGN }>::new_unchecked( in from_existed()
/DragonOS/kernel/src/arch/riscv64/process/
H A Dmod.rs320 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()