Searched refs:trusty_thread (Results 1 – 4 of 4) sorted by relevance
/trusty/kernel/lib/trusty/include/lib/trusty/ |
D | trusty_app.h | 137 struct trusty_thread { struct 163 struct trusty_thread* thread; argument 254 static inline struct trusty_thread* trusty_thread_get(thread_t* t) { in trusty_thread_get() 255 return (struct trusty_thread*)thread_tls_get(t, TLS_ENTRY_TRUSTY); in trusty_thread_get() 258 static inline struct trusty_thread* current_trusty_thread(void) { in current_trusty_thread() 259 return (struct trusty_thread*)tls_get(TLS_ENTRY_TRUSTY); in current_trusty_thread() 263 struct trusty_thread* trusty_thread = current_trusty_thread(); in current_trusty_app() local 264 if (!trusty_thread) { in current_trusty_app() 267 return trusty_thread->app; in current_trusty_app()
|
/trusty/kernel/lib/backtrace/ |
D | backtrace.c | 96 struct trusty_thread* trusty_thread = trusty_thread_get(thread); in print_stack_address() local 98 trusty_thread->stack_start - trusty_thread->stack_size; in print_stack_address() 180 struct trusty_thread* trusty_thread = trusty_thread_get(thread); in dump_function() local 181 dump_user_function(thread, trusty_thread ? trusty_thread->app : NULL, in dump_function() 193 struct trusty_thread* thread = trusty_thread_get(_thread); in is_on_user_stack()
|
/trusty/kernel/lib/trusty/ |
D | trusty_app.c | 404 static user_addr_t user_stack_alloc(struct trusty_thread* trusty_thread, in user_stack_alloc() argument 409 if (ptr < trusty_thread->stack_start - trusty_thread->stack_size) { in user_stack_alloc() 431 static user_addr_t add_to_user_stack(struct trusty_thread* trusty_thread, in add_to_user_stack() argument 437 user_stack_alloc(trusty_thread, data_len, align, stack_ptr); in add_to_user_stack() 455 trusty_thread_write_elf_tables(struct trusty_thread* trusty_thread, in trusty_thread_write_elf_tables() argument 466 trusty_thread, rand_bytes, sizeof(rand_bytes), 1, stack_ptr); in trusty_thread_write_elf_tables() 468 const char* app_name = trusty_thread->app->props.app_name; in trusty_thread_write_elf_tables() 470 add_to_user_stack(trusty_thread, app_name, strlen(app_name) + 1, in trusty_thread_write_elf_tables() 479 add_to_user_stack(trusty_thread, auxv, sizeof(auxv), sizeof(user_addr_t), in trusty_thread_write_elf_tables() 486 add_to_user_stack(trusty_thread, envp, sizeof(envp), sizeof(user_addr_t), in trusty_thread_write_elf_tables() [all …]
|
/trusty/kernel/app/userscstest/ |
D | userscstest.c | 133 struct trusty_thread* tt = ta->thread; in trusty_app_callback()
|