arm64: uti: Add arch-dependent helper for context switch

arm64 performs context-switch in kernel space instead of user space as in
x86_64.

Change-Id: Ib119b9ff014effb970183ee86cfac67fab773cba
Futjitsu: POSTK_DEBUG_ARCH_DEP_99
This commit is contained in:
Shiratori, Takehiro
2019-03-12 14:19:18 +09:00
committed by Masamichi Takagi
parent 63d500515a
commit 8356ef6c96
9 changed files with 91 additions and 47 deletions

View File

@@ -124,12 +124,6 @@ enum mcctrl_os_cpu_operation {
MCCTRL_OS_CPU_MAX_OP
};
/* Used to wake-up a Linux thread futex_wait()-ing */
struct uti_futex_resp {
int done;
wait_queue_head_t wq;
};
struct ikc_scd_packet {
struct ihk_ikc_packet_header header;
int msg;
@@ -570,4 +564,24 @@ struct mcctrl_ioctl_getrusage_desc {
size_t size_rusage;
};
/* uti */
long mcctrl_switch_ctx(ihk_os_t os, struct uti_save_fs_desc __user *desc,
struct file *file);
long arch_switch_ctx(struct uti_save_fs_desc *desc);
struct host_thread {
struct list_head list;
struct mcos_handler_info *handler;
int pid;
int tid;
unsigned long usp;
unsigned long lfs;
unsigned long rfs;
};
/* Used to wake-up a Linux thread futex_wait()-ing */
struct uti_futex_resp {
int done;
wait_queue_head_t wq;
};
#endif