/DragonOS-0.1.8/kernel/src/driver/disk/ |
D | ata.c | 5 struct apic_IO_APIC_RTE_entry entry; variable 55 entry.vector = 0x2e; in ata_init() 56 entry.deliver_mode = IO_APIC_FIXED; in ata_init() 57 entry.dest_mode = DEST_PHYSICAL; in ata_init() 58 entry.deliver_status = IDLE; in ata_init() 59 entry.polarity = POLARITY_HIGH; in ata_init() 60 entry.remote_IRR = IRR_RESET; in ata_init() 61 entry.trigger_mode = EDGE_TRIGGER; in ata_init() 62 entry.mask = MASKED; in ata_init() 63 entry.reserved = 0; in ata_init() [all …]
|
/DragonOS-0.1.8/kernel/src/common/ |
D | list.h | 27 static inline void list_add(struct List *entry, struct List *node) in list_add() argument 30 node->next = entry->next; in list_add() 32 node->prev = entry; in list_add() 36 entry->next = node; in list_add() 44 static inline void list_append(struct List *entry, struct List *node) in list_append() argument 47 struct List *tail = entry->prev; in list_append() 55 static inline void list_del(struct List *entry) in list_del() argument 58 entry->next->prev = entry->prev; in list_del() 59 entry->prev->next = entry->next; in list_del() 66 #define list_del_init(entry) \ argument [all …]
|
/DragonOS-0.1.8/kernel/src/driver/keyboard/ |
D | ps2_keyboard.c | 31 struct apic_IO_APIC_RTE_entry entry; variable 172 entry.vector = PS2_KEYBOARD_INTR_VECTOR; // 设置中断向量号 in ps2_keyboard_init() 173 entry.deliver_mode = IO_APIC_FIXED; // 投递模式:混合 in ps2_keyboard_init() 174 entry.dest_mode = DEST_PHYSICAL; // 物理模式投递中断 in ps2_keyboard_init() 175 entry.deliver_status = IDLE; in ps2_keyboard_init() 176 entry.trigger_mode = EDGE_TRIGGER; // 设置边沿触发 in ps2_keyboard_init() 177 entry.polarity = POLARITY_HIGH; // 高电平触发 in ps2_keyboard_init() 178 entry.remote_IRR = IRR_RESET; in ps2_keyboard_init() 179 entry.mask = MASKED; in ps2_keyboard_init() 180 entry.reserved = 0; in ps2_keyboard_init() [all …]
|
/DragonOS-0.1.8/kernel/src/exception/ |
D | Makefile | 5 all: entry.o irq.o trap.o 7 entry.o: entry.S 8 $(CC) -E entry.S > _entry.s 9 $(AS) $(ASFLAGS) -o entry.o _entry.s
|
/DragonOS-0.1.8/docs/kernel/core_api/ |
D | kernel_api.md | 19 ### `void list_add(struct List *entry, struct List *node)` 23   将node插入到entry的后方 27 **entry** 35 ### `void list_append(struct List *entry, struct List *node)` 39   将node插入到entry的前方 43 **entry** 51 ### `void list_del(struct List *entry)` 55   从链表中删除结点entry 59 **entry** 63 ### `list_del_init(struct List *entry)` [all …]
|
/DragonOS-0.1.8/kernel/src/driver/interrupt/apic/ |
D | apic.c | 550 struct apic_IO_APIC_RTE_entry *entry = (struct apic_IO_APIC_RTE_entry *)arg; in apic_ioapic_install() local 552 apic_ioapic_write_rte(0x10 + ((irq_num - 32) << 1), *(ul *)entry); in apic_ioapic_install() 641 void apic_make_rte_entry(struct apic_IO_APIC_RTE_entry *entry, uint8_t vector, uint8_t deliver_mode… in apic_make_rte_entry() argument 646 entry->vector = vector; in apic_make_rte_entry() 647 entry->deliver_mode = deliver_mode; in apic_make_rte_entry() 648 entry->dest_mode = dest_mode; in apic_make_rte_entry() 649 entry->deliver_status = deliver_status; in apic_make_rte_entry() 650 entry->polarity = polarity; in apic_make_rte_entry() 651 entry->remote_IRR = irr; in apic_make_rte_entry() 652 entry->trigger_mode = trigger; in apic_make_rte_entry() [all …]
|
D | apic.h | 329 void apic_make_rte_entry(struct apic_IO_APIC_RTE_entry *entry, uint8_t vector, uint8_t deliver_mode…
|
/DragonOS-0.1.8/kernel/src/debug/ |
D | kallsyms.c | 50 int read_symbol(FILE *filp, struct kernel_symbol_entry_t *entry) in read_symbol() argument 54 int retval = fscanf(filp, "%llx %c %510s\n", &entry->vaddr, &entry->type, str); in read_symbol() 68 entry->symbol = strdup(str); in read_symbol() 69 entry->symbol_length = strlen(str) + 1; // +1的原因是.asciz指令会在字符串末尾自动添加结束符\0 in read_symbol()
|
/DragonOS-0.1.8/kernel/src/driver/timers/HPET/ |
D | HPET.c | 123 struct apic_IO_APIC_RTE_entry entry; in HPET_measure_freq() local 126 …apic_make_rte_entry(&entry, 34, IO_APIC_FIXED, DEST_PHYSICAL, IDLE, POLARITY_HIGH, IRR_RESET, EDGE… in HPET_measure_freq() 148 irq_register(34, &entry, &HPET_measure_handler, 0, &HPET_intr_controller, "HPET0 measure"); in HPET_measure_freq() 185 struct apic_IO_APIC_RTE_entry entry; in HPET_enable() local 187 …apic_make_rte_entry(&entry, 34, IO_APIC_FIXED, DEST_PHYSICAL, IDLE, POLARITY_HIGH, IRR_RESET, EDGE… in HPET_enable() 211 irq_register(34, &entry, &HPET_handler, 0, &HPET_intr_controller, "HPET0"); in HPET_enable()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | page.rs | 103 pub unsafe fn entry(&self, i: usize) -> Option<PageEntry<Arch>> { in entry() method 109 pub unsafe fn set_entry(&self, i: usize, entry: PageEntry<Arch>) -> Option<()> { in set_entry() 111 Arch::write::<usize>(entry_virt, entry.data()); in set_entry() 160 self.entry(index)?.address().ok()?, in next_level_table() 577 let entry = PageEntry::new(phys.data() | flags.data()); in map_phys() localVariable 590 table.set_entry(i, entry); in map_phys() 657 let mut entry = p1.entry(i)?; in remap() localVariable 658 entry.set_flags(flags); in remap() 659 p1.set_entry(i, entry); in remap() 675 let entry: PageEntry<Arch> = self.visit(virt, |p1, i| unsafe { p1.entry(i) })??; in translate() localVariable [all …]
|
/DragonOS-0.1.8/kernel/src/filesystem/fat/ |
D | mod.rs | 2 pub mod entry; module
|
D | fs.rs | 29 entry::{FATDir, FATDirEntry, FATDirIter, FATEntry}, 128 if let Some(entry) = self.children.get(&name.to_uppercase()) { in find() 129 return Ok(entry.clone()); in find() 385 let mut entry = cursor.read_u16()?; in get_fat_entry() localVariable 388 entry >>= 4; in get_fat_entry() 390 entry &= 0x0fff; in get_fat_entry() 393 if entry == 0 { in get_fat_entry() 395 } else if entry == 0x0ff7 { in get_fat_entry() 397 } else if entry >= 0x0ff8 { in get_fat_entry() 401 cluster_num: entry as u64, in get_fat_entry() [all …]
|
D | entry.rs | 445 let entry: FATRawDirEntry = get_raw_dir_entry(&fs, e_offset)?; in find_free_entries() localVariable 447 match entry { in find_free_entries() 1609 for entry in &long_name_entries { in new() 1610 match entry { in new()
|
/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | buddy.rs | 311 let entry: PhysAddr = unsafe { in pop_front() localVariable 324 if entry.is_null() { in pop_front() 327 entry, in pop_front() 353 if !entry.check_aligned(1 << spec_order) { in pop_front() 354 …ry={:?} is not aligned, spec_order={spec_order}, page_list.entry_num={}", entry, tmp_current_entry… in pop_front() 356 return Some(entry); in pop_front() 467 let entry: PhysAddr = unsafe { A::read(entry_virt_addr) }; in buddy_free() localVariable 468 if entry == buddy_addr { in buddy_free() 575 let entry: PhysAddr = unsafe { in buddy_free() localVariable 583 A::write(buddy_entry_virt_addr, entry); in buddy_free()
|
/DragonOS-0.1.8/docs/community/ChangeLog/V0.1.x/ |
D | V0.1.2.md | 257 * 将entry.S中冗余的ret_from_syscall代码删除,改为jmp Restore_all 317 将entry.S中冗余的ret_from_syscall代码删除,改为jmp Restore_all (#98) 319 * 将entry.S中冗余的ret_from_syscall代码删除,改为jmp Restore_all
|
/DragonOS-0.1.8/kernel/src/ipc/ |
D | pipe.rs | 219 let entry = self.find(&name)?; in get_entry_name_and_metadata() localVariable 220 return Ok((name, entry.metadata()?)); in get_entry_name_and_metadata()
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | mod.rs | 298 let entry = self.find(&name)?; in get_entry_name_and_metadata() localVariable 299 return Ok((name, entry.metadata()?)); in get_entry_name_and_metadata()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/ |
D | mod.rs | 212 let entry: PageEntry<X86_64MMArch> = current_ktable in setup_new_usermapper() localVariable 214 .entry(pml4_entry_no) in setup_new_usermapper() 216 new_umapper.table().set_entry(pml4_entry_no, entry) in setup_new_usermapper()
|
/DragonOS-0.1.8/kernel/src/driver/pci/ |
D | pci_irq.rs | 28 entry: Volatile<u64>, field 988 let pending_entry = unsafe { volread!(pending_entry, entry) }; in msix_check_pending()
|