From 99931179e10fc4d81115baa2d40cf5f0339b7884 Mon Sep 17 00:00:00 2001 From: YOSHIDA Masanori Date: Wed, 25 Jun 2014 17:29:02 +0900 Subject: [PATCH] add get_cpu_id syscall with No.700 for testing --- arch/x86/kernel/include/syscall_list.h | 1 + kernel/syscall.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/arch/x86/kernel/include/syscall_list.h b/arch/x86/kernel/include/syscall_list.h index 23209802..af7fb177 100644 --- a/arch/x86/kernel/include/syscall_list.h +++ b/arch/x86/kernel/include/syscall_list.h @@ -89,5 +89,6 @@ SYSCALL_HANDLED(601, pmc_init) SYSCALL_HANDLED(602, pmc_start) SYSCALL_HANDLED(603, pmc_stop) SYSCALL_HANDLED(604, pmc_reset) +SYSCALL_HANDLED(700, get_cpu_id) /**** End of File ****/ diff --git a/kernel/syscall.c b/kernel/syscall.c index fd2764b6..90b34d32 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -2014,6 +2014,11 @@ SYSCALL_DECLARE(sched_getaffinity) return len; } +SYSCALL_DECLARE(get_cpu_id) +{ + return ihk_mc_get_processor_id(); +} + SYSCALL_DECLARE(sched_yield) { return -ENOSYS;