/DragonOS-0.1.9/kernel/src/arch/x86_64/include/asm/ |
D | asm.h | 41 uint64_t tmp1 = 0, tmp2 = 0; \ 54 uint64_t *tmp; in get_rsp() 69 bool verify_area(uint64_t addr_start, uint64_t length) in verify_area() 84 uint64_t *tmp; in get_rbp() 98 uint64_t *tmp; in get_ds() 112 uint64_t *tmp; in get_rax() 125 uint64_t *tmp; in get_rbx() 132 uint64_t get_rflags() in get_rflags() 274 static inline uint64_t copy_from_user(void *dst, void *src, uint64_t size) in copy_from_user() 276 uint64_t tmp0, tmp1; in copy_from_user() [all …]
|
D | cmpxchg.h | 63 volatile uint64_t *__ptr = (volatile uint64_t *)(_ptr); \ 83 bool __try_cmpxchg_q(uint64_t *ptr, uint64_t *old_ptr, uint64_t *new_ptr);
|
/DragonOS-0.1.9/kernel/src/mm/ |
D | mmio.h | 4 extern int rs_mmio_create(uint32_t size, uint64_t vm_flags, uint64_t* res_vaddr, uint64_t* res_leng… 5 extern int rs_mmio_release(uint64_t vaddr, uint64_t length);
|
D | mm.h | 6 extern void rs_pseudo_map_phys(uint64_t virt_addr, uint64_t phys_addr, uint64_t size); 7 extern void rs_map_phys(uint64_t virt_addr, uint64_t phys_addr, uint64_t size, uint64_t flags); 8 extern uint64_t rs_unmap_at_low_addr();
|
/DragonOS-0.1.9/kernel/src/debug/traceback/ |
D | traceback.c | 5 int lookup_kallsyms(uint64_t addr, int level) in lookup_kallsyms() 12 uint64_t index = 0; in lookup_kallsyms() 43 uint64_t *rbp = (uint64_t *)regs->rbp; in traceback() 50 uint64_t ret_addr = regs->rip; in traceback() 59 if ((uint64_t)(rbp) >= rs_current_pcb_thread_rbp() || ((uint64_t)rbp < regs->rsp)) in traceback() 67 rbp = (uint64_t *)(*rbp); in traceback()
|
D | traceback.h | 7 extern const uint64_t kallsyms_address[] __attribute__((weak)); 8 extern const uint64_t kallsyms_num __attribute__((weak)); 9 extern const uint64_t kallsyms_names_index[] __attribute__((weak));
|
/DragonOS-0.1.9/user/apps/test_kvm/ |
D | main.c | 35 uint64_t guest_phys_addr; // 虚机内存区间起始物理地址 36 uint64_t memory_size; // 虚机内存区间大小 37 uint64_t userspace_addr; // 虚机内存区间对应的主机虚拟地址 42 uint64_t rax, rbx, rcx, rdx; 43 uint64_t rsi, rdi, rsp, rbp; 44 uint64_t r8, r9, r10, r11; 45 uint64_t r12, r13, r14, r15; 46 uint64_t rip, rflags;
|
/DragonOS-0.1.9/kernel/src/common/math/ |
D | libm.h | 12 uint64_t m; 22 uint64_t lo; 29 uint64_t lo; 30 uint64_t hi; 42 uint64_t lo; 46 uint64_t hi; 47 uint64_t lo;
|
/DragonOS-0.1.9/kernel/src/common/sys/ |
D | types.h | 22 typedef uint64_t ino_t; 36 typedef uint64_t fsblkcnt_t; 37 typedef uint64_t fsfilcnt_t; 39 typedef uint64_t sector_t; 78 typedef uint64_t pthread_rwlock_t; 89 typedef uint64_t gfp_t; 93 #define __aligned_u64 uint64_t __attribute__((aligned(8)))
|
/DragonOS-0.1.9/kernel/src/debug/ |
D | kallsyms.c | 29 uint64_t vaddr; 37 uint64_t table_size = 0; 39 uint64_t entry_count = 0; 41 uint64_t text_vaddr, etext_vaddr; 116 for (uint64_t i = 0; i < entry_count; ++i) in read_map() 139 uint64_t last_vaddr = 0; in generate_result() 140 uint64_t total_syms_to_write = 0; // 真正输出的符号的数量 in generate_result() 143 for (uint64_t i = 0; i < entry_count; ++i) in generate_result() 173 uint64_t position = 0; in generate_result() 175 for (uint64_t i = 0; i < entry_count; ++i) in generate_result() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/acpi/ |
D | acpi.c | 5 extern void rs_acpi_init(uint64_t rsdp_paddr1, uint64_t rsdp_paddr2); 31 rs_acpi_init((uint64_t)rsdpv1, (uint64_t)rsdpv2); in acpi_init()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/asm/ |
D | cmpxchg.c | 3 bool __try_cmpxchg_q(uint64_t *ptr, uint64_t *old_ptr, uint64_t *new_ptr) in __try_cmpxchg_q()
|
/DragonOS-0.1.9/kernel/src/common/ |
D | err.h | 6 #define IS_ERR_VALUE(x) unlikely((x) >= (uint64_t)-MAX_ERRNO) 17 return IS_ERR_VALUE((uint64_t)ptr); in IS_ERR() 29 return !ptr || IS_ERR_VALUE((uint64_t)ptr); in IS_ERR_OR_NULL()
|
D | cpu.h | 33 extern uint64_t Cpu_tsc_freq; 57 uint64_t stack_start; // 栈基地址 58 uint64_t ist_stack_start; // IST栈基地址
|
D | compiler_attributes.h | 23 typedef uint64_t __attribute__((__may_alias__)) __u64_alias_t;
|
/DragonOS-0.1.9/kernel/src/smp/ |
D | smp.c | 27 extern uint64_t rs_get_idle_stack_top(uint32_t cpu_id); 34 extern uint64_t __APU_START_CR3; 43 extern uint64_t rs_smp_get_cpus(struct X86CpuInfo *res); 55 __APU_START_CR3 = (uint64_t)get_CR3(); in smp_init() 101 …cpu_core_info[current_starting_cpu].stack_start = (uint64_t)rs_get_idle_stack_top(current_starting… in smp_init()
|
D | smp.h | 22 extern void set_current_core_tss(uint64_t stack_start, uint64_t ist0);
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/include/asm/ |
D | asm.h | 60 bool verify_area(uint64_t addr_start, uint64_t length) { in verify_area()
|
/DragonOS-0.1.9/kernel/src/driver/multiboot2/ |
D | multiboot2.h | 201 uint64_t addr; 202 uint64_t len; 278 uint64_t framebuffer_addr; 345 uint64_t pointer; 394 uint64_t pointer; 416 bool multiboot2_init(uint64_t mb2_info_paddr, uint32_t mb2_magic);
|
D | multiboot2.c | 12 bool multiboot2_init(uint64_t mb2_info_paddr, uint32_t mb2_magic) in multiboot2_init() 14 uint64_t vaddr = (uint64_t)phys_2_virt(mb2_info_paddr); in multiboot2_init()
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | string.c | 66 if (!verify_area((uint64_t)src, size)) in strncpy_from_user() 84 if (!verify_area((uint64_t)src, size)) in strnlen_user()
|
D | glib.c | 13 void *memmove(void *dst, const void *src, uint64_t size) in memmove()
|
D | printk.c | 531 uint64_t num_z = (uint64_t)(num); // 获取整数部分 in write_float_point_num() 532 uint64_t num_decimal = (uint64_t)(round(1.0 * (num - num_z) * pow(10, precision))); // 获取小数部分 in write_float_point_num() 596 uint64_t rflags; in printk_color()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/init/ |
D | main.c | 8 void __init_set_cpu_stack_start(uint32_t cpu, uint64_t stack_start) in __init_set_cpu_stack_start()
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/asm/ |
D | spinlock.c | 28 uint64_t tmp_val = 0; in __arch_spin_trylock()
|