/DragonOS/kernel/src/filesystem/ |
H A D | mbr.rs | 87 let mut table: MbrDiskPartionTable = Default::default(); in from_disk() localVariable 100 table.dpte[i].flags = cursor.read_u8()?; in from_disk() 101 table.dpte[i].starting_head = cursor.read_u8()?; in from_disk() 102 table.dpte[i].starting_sector_cylinder = cursor.read_u16()?; in from_disk() 103 table.dpte[i].part_type = cursor.read_u8()?; in from_disk() 104 table.dpte[i].ending_head = cursor.read_u8()?; in from_disk() 105 table.dpte[i].ending_sector_cylinder = cursor.read_u16()?; in from_disk() 106 table.dpte[i].starting_lba = cursor.read_u32()?; in from_disk() 107 table.dpte[i].total_sectors = cursor.read_u32()?; in from_disk() 109 debug!("dpte[{i}] = {:?}", table.dpte[i]); in from_disk() [all …]
|
/DragonOS/kernel/crates/crc/src/tables/ |
H A D | crc64.rs | 5 pub table: [u64; 256], field 10 pub const fn new(poly: u64, table: [u64; 256]) -> Self { in new() 11 Self { poly, table } 19 &self.table in deref()
|
/DragonOS/kernel/src/mm/ |
H A D | page.rs | 496 Arch::table(table_kind), in top_level_table() 663 let table = next_table.clone(allocator, copy_on_write)?; in clone() localVariable 665 let entry = PageEntry::new(table.phys(), old_entry.flags()); in clone() 1139 let table_paddr = Arch::table(table_kind); in current() 1146 return unsafe { self.table().phys() == Arch::table(self.table_kind) }; in is_current() 1157 pub fn table(&self) -> PageTable<Arch> { in table() method 1223 let mut table = self.table(); in map_phys() localVariable 1225 let i = table.index_of(virt)?; in map_phys() 1228 if table.level() == 0 { in map_phys() 1231 table.set_entry(i, entry); in map_phys() [all …]
|
H A D | fault.rs | 450 let table = mapper.get_table(address, 0).unwrap(); in do_wp_page() localVariable 451 let i = table.index_of(address).unwrap(); in do_wp_page() 453 table.set_entry(i, entry); in do_wp_page() 461 let table = mapper.get_table(address, 0).unwrap(); in do_wp_page() localVariable 462 let i = table.index_of(address).unwrap(); in do_wp_page() 464 table.set_entry(i, entry); in do_wp_page()
|
H A D | no_init.rs | 172 MMArch::table(PageTableKind::Kernel), in pseudo_map_phys_with_flags() 200 MMArch::table(PageTableKind::Kernel), in pseudo_unmap_phys()
|
H A D | mod.rs | 576 unsafe fn table(table_kind: PageTableKind) -> PhysAddr; in table() method 579 unsafe fn set_table(table_kind: PageTableKind, table: PhysAddr); in set_table()
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | tables.rs | 6 use uefi_raw::table::{ 48 header: &uefi_raw::table::Header, in report_systable_header() 83 for table in tables { in parse_config_tables() 86 if let Some(r) = parser.match_table(table) { in parse_config_tables() 91 parser.table.name() in parse_config_tables() 100 warn!("Cannot find parser for guid: {:?}", table.vendor_guid); in parse_config_tables() 384 table: &'static dyn MatchTable, field 388 const fn new(table: &'static dyn MatchTable) -> Self { in new() 389 Self { table } in new() 394 fn match_table(&self, table: &ConfigurationTable) -> Option<Result<(), SystemError>> { in match_table() [all …]
|
H A D | mod.rs | 41 pub runtime_service_version: Option<uefi_raw::table::Revision>, 90 header: &uefi_raw::table::Header, in check_system_table_header() 93 if header.signature != uefi_raw::table::system::SystemTable::SIGNATURE { in check_system_table_header()
|
H A D | init.rs | 5 use uefi_raw::table::boot::{MemoryAttribute, MemoryType}; 144 let st_size = size_of::<uefi_raw::table::system::SystemTable>(); in uefi_init() 168 let st_ptr = st_vaddr.data() as *const uefi_raw::table::system::SystemTable; in uefi_init() 191 * size_of::<uefi_raw::table::configuration::ConfigurationTable>(); in uefi_init() 205 as *const uefi_raw::table::configuration::ConfigurationTable, in uefi_init()
|
/DragonOS/kernel/src/arch/riscv64/mm/ |
H A D | init.rs | 76 let _old_page_table = MMArch::table(PageTableKind::Kernel); in riscv_mm_init() 89 new_page_table = mapper.table().phys(); in riscv_mm_init() 94 let table = mapper.table(); in riscv_mm_init() localVariable 97 table in riscv_mm_init()
|
H A D | mod.rs | 170 unsafe fn table(_table_kind: PageTableKind) -> PhysAddr { in table() method 179 unsafe fn set_table(_table_kind: PageTableKind, table: PhysAddr) { in set_table() 180 let ppn = PhysPageFrame::new(table).ppn(); in set_table() 202 .table() in setup_new_usermapper() 205 new_umapper.table().set_entry(pml4_entry_no, entry) in setup_new_usermapper()
|
/DragonOS/kernel/src/exception/ |
H A D | softirq.rs | 103 table: RwLock<[Option<Arc<dyn SoftirqVec>>; MAX_SOFTIRQ_NUM as usize]>, field 127 table: RwLock::new(data), in new() 150 let mut table_guard = self.table.write_irqsave(); in register_softirq() 173 let mut table_guard = self.table.write_irqsave(); in unregister_softirq() 211 let table_guard = self.table.read_irqsave(); in do_softirq()
|
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | mod.rs | 189 Self::set_table(PageTableKind::User, Self::table(PageTableKind::User)); in invalidate_all() 194 unsafe fn table(table_kind: PageTableKind) -> PhysAddr { in table() method 211 unsafe fn set_table(_table_kind: PageTableKind, table: PhysAddr) { in set_table() 213 asm!("mov cr3, {}", in(reg) table.data(), options(nostack, preserves_flags)); in set_table() 243 .table() in setup_new_usermapper() 246 new_umapper.table().set_entry(pml4_entry_no, entry) in setup_new_usermapper() 472 let _old_page_table = MMArch::table(PageTableKind::Kernel); in allocator_init() 484 new_page_table = mapper.table().phys(); in allocator_init() 489 let table = mapper.table(); in allocator_init() localVariable 492 table in allocator_init()
|
H A D | fault.rs | 81 } else if mapper.table().phys().data() & MMArch::ENTRY_FLAG_USER != 0 in show_fault_oops()
|
/DragonOS/kernel/src/driver/acpi/ |
H A D | sysfs.rs | 252 ($table:expr) => { in read() 255 $table.virtual_start().as_ptr() as *const u8, in read() 256 $table.region_length(), in read() 292 let table = $tables.find_entire_table::<$name>().map_err(|e| { in read() localVariable 300 copy_data!(table); in read()
|
/DragonOS/kernel/src/arch/x86_64/process/ |
H A D | kthread.rs | 7 process::table::{KERNEL_CS, KERNEL_DS},
|
H A D | mod.rs | 16 arch::process::table::TSSManager, 30 table::{switch_fs_and_gs, KERNEL_DS, USER_DS}, 38 pub mod table; module
|
H A D | syscall.rs | 7 process::table::{USER_CS, USER_DS},
|
/DragonOS/kernel/src/arch/x86_64/smp/ |
H A D | mod.rs | 11 arch::{mm::LowAddressRemapping, process::table::TSSManager, MMArch}, 268 .table() in arch_init()
|
/DragonOS/docs/kernel/filesystem/ |
H A D | sysfs.md | 94 /// @brief: 总线注册,将总线加入全局总线管理器中,并根据id table在sys/bus和sys/devices下生成文件夹
|
/DragonOS/kernel/src/arch/x86_64/init/ |
H A D | mod.rs | 11 arch::{interrupt::trap::arch_trap_init, process::table::TSSManager},
|
/DragonOS/docs/community/ChangeLog/V0.1.x/ |
H A D | V0.1.7.md | 49 - pci: 修复ecam无法获取MCFG table的问题 (#241) 245 修复ecam无法获取MCFG table的问题 (#241)
|
H A D | V0.1.8.md | 443 * 修复ecam无法获取MCFG table的问题
|
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/ |
H A D | vcpu.rs | 401 let ept_root_hpa = mapper.table().phys(); in kvm_mmu_load() 467 let table = segment_selector & 0x0004; // get table indicator in selector in get_segment_base() localVariable 469 if table == 0 && index == 0 { in get_segment_base()
|
/DragonOS/kernel/src/driver/disk/ahci/ |
H A D | ahcidisk.rs | 394 let table: MbrDiskPartionTable = result.read_mbr_table()?; in new() localVariable 397 let partitions = table.partitions(Arc::downgrade(&result) as Weak<dyn BlockDevice>); in new()
|