Home
last modified time | relevance | path

Searched refs:uintptr_t (Results 1 – 25 of 78) sorted by relevance

1234

/lk-master/kernel/include/kernel/
A Ddebug.h27 void kernel_evlog_add(uintptr_t id, uintptr_t arg0, uintptr_t arg1);
34 static inline void kernel_evlog_add(uintptr_t id, uintptr_t arg0, uintptr_t arg1) {}
49 …READ_SWITCH(from, to) kernel_evlog_add(KERNEL_EVLOG_CONTEXT_SWITCH, (uintptr_t)from, (uintptr_t)to)
50 #define KEVLOG_THREAD_PREEMPT(thread) kernel_evlog_add(KERNEL_EVLOG_PREEMPT, (uintptr_t)thread, 0)
52 …VLOG_TIMER_CALL(ptr, arg) kernel_evlog_add(KERNEL_EVLOG_TIMER_CALL, (uintptr_t)ptr, (uintptr_t)arg)
53 #define KEVLOG_IRQ_ENTER(irqn) kernel_evlog_add(KERNEL_EVLOG_IRQ_ENTER, (uintptr_t)irqn, 0)
54 #define KEVLOG_IRQ_EXIT(irqn) kernel_evlog_add(KERNEL_EVLOG_IRQ_EXIT, (uintptr_t)irqn, 0)
A Dthread.h110 uintptr_t tls[MAX_TLS_ENTRY];
201 static inline __ALWAYS_INLINE uintptr_t tls_get(uint entry) { in tls_get()
205 static inline __ALWAYS_INLINE uintptr_t __tls_set(uint entry, uintptr_t val) { in __tls_set()
206 uintptr_t oldval = get_current_thread()->tls[entry]; in __tls_set()
A Dnovm.h33 void novm_add_arena(const char *name, uintptr_t arena_start, uintptr_t arena_size);
/lk-master/platform/zynq/
A Dclocks.c119 return (uintptr_t)&SLCR->USB0_CLK_CTRL; in periph_clk_ctrl_reg()
121 return (uintptr_t)&SLCR->USB1_CLK_CTRL; in periph_clk_ctrl_reg()
123 return (uintptr_t)&SLCR->GEM0_CLK_CTRL; in periph_clk_ctrl_reg()
125 return (uintptr_t)&SLCR->GEM1_CLK_CTRL; in periph_clk_ctrl_reg()
127 return (uintptr_t)&SLCR->SMC_CLK_CTRL; in periph_clk_ctrl_reg()
131 return (uintptr_t)&SLCR->SDIO_CLK_CTRL; in periph_clk_ctrl_reg()
139 return (uintptr_t)&SLCR->SPI_CLK_CTRL; in periph_clk_ctrl_reg()
141 return (uintptr_t)&SLCR->SPI_CLK_CTRL; in periph_clk_ctrl_reg()
143 return (uintptr_t)&SLCR->CAN_CLK_CTRL; in periph_clk_ctrl_reg()
145 return (uintptr_t)&SLCR->CAN_CLK_CTRL; in periph_clk_ctrl_reg()
[all …]
A Duart.c23 static inline uintptr_t uart_to_ptr(unsigned int n) { return (n == 0) ? UART0_BASE : UART1_BASE; } in uart_to_ptr()
31 uintptr_t base = uart_to_ptr(port); in uart_irq()
55 uintptr_t base = uart_to_ptr(i); in uart_init()
78 uintptr_t base = uart_to_ptr(i); in uart_init_early()
105 uintptr_t base = uart_to_ptr(port); in uart_putc()
/lk-master/kernel/vm/
A Dbootalloc.c24 uintptr_t boot_alloc_start = (uintptr_t) &_end;
25 uintptr_t boot_alloc_end = (uintptr_t) &_end;
28 uintptr_t ptr; in boot_alloc_mem()
A Dvm_priv.h16 extern uintptr_t boot_alloc_start;
17 extern uintptr_t boot_alloc_end;
/lk-master/external/platform/cc13xx/cc13xxware/driverlib/
A Drf_mailbox.h278 #define HW_REG_OVERRIDE(addr, val) ((((uintptr_t) (addr)) & 0xFFFC) | ((uint32_t)(val) << 16))
306 #define HW32_ARRAY_OVERRIDE(addr, length) (1 | (((uintptr_t) (addr)) & 0xFFFC) | \
315 #define NEW_OVERRIDE_SEGMENT(address) (((((uintptr_t)(address)) & 0x03FFFFFC) << 6) | 0x000F | \
316 (((((uintptr_t)(address) >> 24) == 0x20) ? 0x01 : \
317 (((uintptr_t)(address) >> 24) == 0x21) ? 0x02 : \
318 (((uintptr_t)(address) >> 24) == 0xA0) ? 0x03 : \
319 (((uintptr_t)(address) >> 24) == 0x00) ? 0x04 : \
320 (((uintptr_t)(address) >> 24) == 0x10) ? 0x05 : \
321 (((uintptr_t)(address) >> 24) == 0x11) ? 0x06 : \
322 (((uintptr_t)(address) >> 24) == 0x40) ? 0x07 : \
[all …]
/lk-master/lib/heap/miniheap/
A Dminiheap.c356 uintptr_t start = (uintptr_t)chunk; in miniheap_trim()
357 uintptr_t end = start + chunk->len; in miniheap_trim()
361 uintptr_t start_page = ROUNDUP(start, PAGE_SIZE); in miniheap_trim()
362 uintptr_t end_page = ROUNDDOWN(end, PAGE_SIZE); in miniheap_trim()
473 if ((uintptr_t)ptr < (uintptr_t)theheap.base || theheap.base == 0) in heap_grow()
476 uintptr_t endptr = (uintptr_t)ptr + size; in heap_grow()
477 if (endptr > (uintptr_t)theheap.base + theheap.len) { in heap_grow()
478 theheap.len = (uintptr_t)endptr - (uintptr_t)theheap.base; in heap_grow()
494 if (((uintptr_t)ptr % sizeof(uintptr_t)) > 0) { in miniheap_init()
495 uintptr_t aligned_ptr = ROUNDUP((uintptr_t)ptr, sizeof(uintptr_t)); in miniheap_init()
[all …]
/lk-master/platform/qemu-virt-arm/
A Duart.c42 static inline uintptr_t uart_to_ptr(unsigned int n) { in uart_to_ptr()
52 uint port = (uintptr_t)arg; in uart_irq()
53 uintptr_t base = uart_to_ptr(port); in uart_irq()
89 uintptr_t base = uart_to_ptr(i); in uart_init()
121 uintptr_t base = uart_to_ptr(port); in uart_putc()
145 uintptr_t base = uart_to_ptr(port); in uart_pputc()
156 uintptr_t base = uart_to_ptr(port); in uart_pgetc()
/lk-master/top/include/lk/
A Dreg.h13 #define REG64(addr) ((volatile uint64_t *)(uintptr_t)(addr))
14 #define REG32(addr) ((volatile uint32_t *)(uintptr_t)(addr))
15 #define REG16(addr) ((volatile uint16_t *)(uintptr_t)(addr))
16 #define REG8(addr) ((volatile uint8_t *)(uintptr_t)(addr))
/lk-master/lib/evlog/include/lib/
A Devlog.h17 uintptr_t *items;
20 status_t evlog_init_etc(evlog_t *e, uint len, uint unitsize, uintptr_t *items);
24 typedef void (*evlog_dump_cb)(const uintptr_t *);
/lk-master/external/platform/pico/rp2_common/pico_double/
A Ddouble_init_rom.c35 sd_table[i] = (uintptr_t)double_table_shim_on_use_helper; in __aeabi_double_init()
42 sd_table[i] = (uintptr_t)missing_double_func_shim; in __aeabi_double_init()
64 sd_table[SF_TABLE_V3_FSINCOS / 4] = (uintptr_t) double_table_shim_on_use_helper; in __aeabi_double_init()
/lk-master/arch/x86/
A Ddescriptor.c49 _gdt[index].seg_desc_legacy.base_15_0 = ((uintptr_t) base) & 0x0000ffff; in set_global_desc()
50 _gdt[index].seg_desc_legacy.base_23_16 = (((uintptr_t) base) & 0x00ff0000) >> 16; in set_global_desc()
51 _gdt[index].seg_desc_legacy.base_31_24 = ((uintptr_t) base) >> 24; in set_global_desc()
62 _gdt[index + 1].seg_desc_64.base_63_32 = (uint32_t)((uintptr_t) base >> 32); in set_global_desc()
/lk-master/external/platform/pico/rp2_common/pico_float/
A Dfloat_init_rom.c51 sf_table[i] = (uintptr_t)float_table_shim_on_use_helper; in __aeabi_float_init()
54 …sf_table[SF_TABLE_FLOAT2INT/4] = sf_table[SF_TABLE_FLOAT2FIX/4] = (uintptr_t)float_table_shim_on_u… in __aeabi_float_init()
61 if (!sf_table[i]) sf_table[i] = (uintptr_t)missing_float_func_shim; in __aeabi_float_init()
/lk-master/lib/libc/include/sys/
A Dtypes.h27 typedef uintptr_t addr_t;
28 typedef uintptr_t vaddr_t;
29 typedef uintptr_t paddr_t;
/lk-master/external/platform/pico/rp2_common/pico_multicore/
A Dmulticore.c122 stack_ptr[0] = (uintptr_t) entry; in multicore_launch_core1_with_stack()
123 stack_ptr[1] = (uintptr_t) stack_bottom; in multicore_launch_core1_with_stack()
124 stack_ptr[2] = (uintptr_t) core1_wrapper; in multicore_launch_core1_with_stack()
137 … uint32_t cmd_sequence[] = {0, 0, 1, (uintptr_t) vector_table, (uintptr_t) sp, (uintptr_t) entry}; in multicore_launch_core1_raw()
/lk-master/platform/bcm28xx/
A Dplatform.c177 uintptr_t sec_entry = (uintptr_t)(&arm_reset - KERNEL_ASPACE_BASE); in platform_early_init()
188 uintptr_t sec_entry = (uintptr_t)&arm_reset; in platform_early_init()
A Duart.c42 static inline uintptr_t uart_to_ptr(unsigned int n) { in uart_to_ptr()
53 uintptr_t base = uart_to_ptr(port); in uart_irq()
106 uintptr_t base = uart_to_ptr(port); in uart_putc()
/lk-master/external/platform/pico/rp2_common/hardware_base/include/hardware/
A Daddress_mapped.h68 #define hw_set_alias_untyped(addr) ((void *)(REG_ALIAS_SET_BITS | (uintptr_t)(addr)))
69 #define hw_clear_alias_untyped(addr) ((void *)(REG_ALIAS_CLR_BITS | (uintptr_t)(addr)))
70 #define hw_xor_alias_untyped(addr) ((void *)(REG_ALIAS_XOR_BITS | (uintptr_t)(addr)))
/lk-master/platform/pc/
A Dplatform.c154 uintptr_t mem_base = (uintptr_t)MEMBASE; in mem_arena_init()
155 uintptr_t mem_size = mem_top; in mem_arena_init()
166 _multiboot_info = (void *)((uintptr_t)_multiboot_info + KERNEL_BASE); in platform_init_multiboot_info()
175 memory_map_t *mmap = (memory_map_t *)(uintptr_t)_multiboot_info->mmap_addr; in platform_init_multiboot_info()
176 mmap = (void *)((uintptr_t)mmap + KERNEL_BASE); in platform_init_multiboot_info()
/lk-master/lib/evlog/
A Devlog.c18 status_t evlog_init_etc(evlog_t *e, uint len, uint unitsize, uintptr_t *items) { in evlog_init_etc()
38 uintptr_t *items = calloc(1, len * sizeof(uintptr_t)); in evlog_init()
/lk-master/arch/riscv/
A Darch.c52 riscv_csr_write(RISCV_CSR_XTVEC, (uintptr_t)&riscv_exception_entry); in riscv_early_init_percpu()
129 vaddr_t kernel_stack_top = (uintptr_t)ct->stack + ct->stack_size; in arch_enter_uspace()
152 ((uintptr_t *)kernel_stack_top)[-1] = (uintptr_t)riscv_get_percpu(); in arch_enter_uspace()
/lk-master/kernel/
A Ddebug.c174 void kernel_evlog_add(uintptr_t id, uintptr_t arg0, uintptr_t arg1) { in kernel_evlog_add()
178 kernel_evlog.items[index] = (uintptr_t)current_time_hires(); in kernel_evlog_add()
185 static void kevdump_cb(const uintptr_t *i) { in kevdump_cb()
/lk-master/kernel/novm/
A Dnovm.c43 #define END_OF_KERNEL ((uintptr_t)&_end)
92 uintptr_t arena_start, uintptr_t arena_size, in novm_init_helper()
94 uintptr_t start = ROUNDUP(arena_start, PAGE_SIZE); in novm_init_helper()
95 uintptr_t size = ROUNDDOWN(arena_start + arena_size, PAGE_SIZE) - start; in novm_init_helper()
128 void novm_add_arena(const char *name, uintptr_t arena_start, uintptr_t arena_size) { in novm_add_arena()

Completed in 32 milliseconds

1234