Home
last modified time | relevance | path

Searched refs:uint64_t (Results 1 – 21 of 21) sorted by relevance

/DragonOS/kernel/src/arch/x86_64/include/asm/
H A Dasm.h41 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 …]
H A Dcmpxchg.h63 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/kernel/src/debug/traceback/
H A Dtraceback.c6 int lookup_kallsyms(uint64_t addr, int level) in lookup_kallsyms()
13 uint64_t index = 0; in lookup_kallsyms()
30 uint64_t addr_from_symbol(const char *symbol) in addr_from_symbol()
33 for (uint64_t i = 0; i < kallsyms_num; ++i) in addr_from_symbol()
56 uint64_t *rbp = (uint64_t *)regs->rbp; in traceback()
63 uint64_t ret_addr = regs->rip; in traceback()
72 if ((uint64_t)(rbp) >= rs_current_pcb_thread_rbp() || ((uint64_t)rbp < regs->rsp)) in traceback()
80 rbp = (uint64_t *)(*rbp); in traceback()
H A Dtraceback.h7 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));
18 uint64_t addr_from_symbol(const char *symbol);
/DragonOS/kernel/src/mm/
H A Dmmio.h4 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);
/DragonOS/user/apps/test_kvm/
H A Dmain.c35 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/kernel/src/common/math/
H A Dlibm.h12 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;
H A Dround.c17 uint64_t i; in round()
/DragonOS/kernel/src/common/sys/
H A Dtypes.h22 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/kernel/src/debug/
H A Dkallsyms.c29 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/user/apps/test_eventfd/
H A Dmain.c13 uint64_t u; in main()
31 s = write(efd, &u, sizeof(uint64_t)); in main()
32 if (s != sizeof(uint64_t)) in main()
43 s = read(efd, &u, sizeof(uint64_t)); in main()
44 if (s != sizeof(uint64_t)) in main()
/DragonOS/kernel/src/arch/x86_64/asm/
H A Dcmpxchg.c3 bool __try_cmpxchg_q(uint64_t *ptr, uint64_t *old_ptr, uint64_t *new_ptr) in __try_cmpxchg_q()
H A Dspinlock.c46 uint64_t tmp_val = 0; in __arch_spin_trylock()
/DragonOS/kernel/src/common/
H A Derr.h6 #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()
H A Dcompiler_attributes.h23 typedef uint64_t __attribute__((__may_alias__)) __u64_alias_t;
/DragonOS/kernel/src/arch/riscv64/include/asm/
H A Dasm.h60 bool verify_area(uint64_t addr_start, uint64_t length) { in verify_area()
/DragonOS/kernel/src/process/
H A Dprocess.h34 extern uint64_t rs_current_pcb_thread_rbp();
/DragonOS/kernel/src/arch/riscv64/asm/
H A Dspinlock.c28 uint64_t tmp_val = 0; in __arch_spin_trylock()
/DragonOS/kernel/src/libs/
H A Dprintk.c531 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/kernel/src/include/DragonOS/
H A Dstdint.h63 typedef __uint64_t uint64_t; typedef
/DragonOS/docs/kernel/core_api/
H A Dkernel_api.md657 #### `void *memcpy(void *dst, const void *src, uint64_t size)`
677 #### `void *memmove(void *dst, const void *src, uint64_t size)`