16#ifndef ZEPHYR_INCLUDE_ARCH_X86_IA32_SYSCALL_H_
17#define ZEPHYR_INCLUDE_ARCH_X86_IA32_SYSCALL_H_
19#define USER_CODE_SEG 0x2b
20#define USER_DATA_SEG 0x33
22#ifdef CONFIG_USERSPACE
46 __asm__
volatile(
"push %%ebp\n\t"
47 "mov %[arg6], %%ebp\n\t"
51 :
"S" (call_id),
"a" (arg1),
"d" (arg2),
52 "c" (arg3),
"b" (arg4),
"D" (arg5),
66 __asm__
volatile(
"int $0x80"
68 :
"S" (call_id),
"a" (arg1),
"d" (arg2),
69 "c" (arg3),
"b" (arg4),
"D" (arg5)
81 __asm__
volatile(
"int $0x80"
83 :
"S" (call_id),
"a" (arg1),
"d" (arg2),
"c" (arg3),
96 __asm__
volatile(
"int $0x80"
98 :
"S" (call_id),
"a" (arg1),
"d" (arg2),
"c" (arg3)
109 __asm__
volatile(
"int $0x80"
111 :
"S" (call_id),
"a" (arg1),
"d" (arg2)
123 __asm__
volatile(
"int $0x80"
125 :
"S" (call_id),
"a" (arg1)
136 __asm__
volatile(
"int $0x80"
150 __asm__
volatile (
"mov %%cs, %[cs_val]" : [cs_val]
"=r" (cs));
static __pinned_func uintptr_t arch_syscall_invoke0(uintptr_t call_id)
Definition: syscall.h:132
static __pinned_func uintptr_t arch_syscall_invoke1(uintptr_t arg1, uintptr_t call_id)
Definition: syscall.h:118
static __pinned_func bool arch_is_user_context(void)
Definition: syscall.h:145
#define USER_CODE_SEG
Definition: syscall.h:19
static __pinned_func uintptr_t arch_syscall_invoke3(uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t call_id)
Definition: syscall.h:90
static __pinned_func uintptr_t arch_syscall_invoke5(uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4, uintptr_t arg5, uintptr_t call_id)
Definition: syscall.h:59
static __pinned_func uintptr_t arch_syscall_invoke6(uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4, uintptr_t arg5, uintptr_t arg6, uintptr_t call_id)
Definition: syscall.h:39
static __pinned_func uintptr_t arch_syscall_invoke2(uintptr_t arg1, uintptr_t arg2, uintptr_t call_id)
Definition: syscall.h:104
static __pinned_func uintptr_t arch_syscall_invoke4(uintptr_t arg1, uintptr_t arg2, uintptr_t arg3, uintptr_t arg4, uintptr_t call_id)
Definition: syscall.h:75
static ZTEST_BMEM volatile int ret
Definition: k_float_disable.c:28
Definitions of various linker Sections.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
__UINTPTR_TYPE__ uintptr_t
Definition: stdint.h:75