From: Jan Kiszka <jan.kiszka@siemens.com>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] [Xenomai-git] Jan Kiszka : cobalt/kernel: Remove unused mode parameter from COBALT_SYSCALL
Date: Thu, 16 Jul 2015 14:34:42 +0200 [thread overview]
Message-ID: <55A7A4E2.4060309@siemens.com> (raw)
In-Reply-To: <20150703105149.GZ13256@hermes.click-hack.org>
On 2015-07-03 12:51, Gilles Chanteperdrix wrote:
> On Thu, Jul 02, 2015 at 10:26:24PM +0200, Jan Kiszka wrote:
>> Just FYI - still requires testing and more review - find a first
>> generator version below.
>>
>> Jan
>>
>>
>> cobalt/posix/syscall: Generate cobalt_syscalls and cobalt_sysmodes
>>
>> ---
>> .../arch/x86/include/asm/xenomai/syscall32.h | 12 +-
>> kernel/cobalt/posix/Makefile | 12 ++
>> kernel/cobalt/posix/gen-syscall-entries.sh | 24 +++
>> kernel/cobalt/posix/syscall.c | 208 ++-------------------
>> scripts/prepare-kernel.sh | 4 +-
>> 5 files changed, 57 insertions(+), 203 deletions(-)
>> create mode 100755 kernel/cobalt/posix/gen-syscall-entries.sh
>>
>> diff --git a/kernel/cobalt/arch/x86/include/asm/xenomai/syscall32.h b/kernel/cobalt/arch/x86/include/asm/xenomai/syscall32.h
>> index 8bd40d4..58b7336 100644
>> --- a/kernel/cobalt/arch/x86/include/asm/xenomai/syscall32.h
>> +++ b/kernel/cobalt/arch/x86/include/asm/xenomai/syscall32.h
>> @@ -45,14 +45,14 @@
>> #define __syshand32x__(__name) ((cobalt_syshand)(cobalt32x_ ## __name))
>>
>> #define __COBALT_CALL32x_INITHAND(__handler) \
>> - , [__COBALT_X32_BASE ... __COBALT_X32_BASE + __NR_COBALT_SYSCALLS-1] = __handler
>> + [__COBALT_X32_BASE ... __COBALT_X32_BASE + __NR_COBALT_SYSCALLS-1] = __handler,
>>
>> #define __COBALT_CALL32x_INITMODE(__mode) \
>> - , [__COBALT_X32_BASE ... __COBALT_X32_BASE + __NR_COBALT_SYSCALLS-1] = __mode
>> + [__COBALT_X32_BASE ... __COBALT_X32_BASE + __NR_COBALT_SYSCALLS-1] = __mode,
>>
>> /* x32 default entry (no thunk) */
>> #define __COBALT_CALL32x_ENTRY(__name, __handler) \
>> - , [sc_cobalt_ ## __name + __COBALT_X32_BASE] = __handler
>> + [sc_cobalt_ ## __name + __COBALT_X32_BASE] = __handler,
>>
>> /* x32 thunk installation */
>> #define __COBALT_CALL32x_pure_THUNK(__name) \
>> @@ -113,14 +113,14 @@
>> #define __syshand32emu__(__name) ((cobalt_syshand)(cobalt32emu_ ## __name))
>>
>> #define __COBALT_CALL32emu_INITHAND(__handler) \
>> - , [__COBALT_IA32_BASE ... __COBALT_IA32_BASE + __NR_COBALT_SYSCALLS-1] = __handler
>> + [__COBALT_IA32_BASE ... __COBALT_IA32_BASE + __NR_COBALT_SYSCALLS-1] = __handler,
>>
>> #define __COBALT_CALL32emu_INITMODE(__mode) \
>> - , [__COBALT_IA32_BASE ... __COBALT_IA32_BASE + __NR_COBALT_SYSCALLS-1] = __mode
>> + [__COBALT_IA32_BASE ... __COBALT_IA32_BASE + __NR_COBALT_SYSCALLS-1] = __mode,
>>
>> /* ia32 default entry (no thunk) */
>> #define __COBALT_CALL32emu_ENTRY(__name, __handler) \
>> - , [sc_cobalt_ ## __name + __COBALT_IA32_BASE] = __handler
>> + [sc_cobalt_ ## __name + __COBALT_IA32_BASE] = __handler,
>>
>> /* ia32 thunk installation */
>> #define __COBALT_CALL32emu_THUNK(__name) \
>
> Whether this is needed is debatable. From my point of view, it is
> not needed. But in any case, this has nothing to do with what this
> patch does.
It's a precondition for generating a regular list of table entries. But
I'll split this up into a separate patch.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux
prev parent reply other threads:[~2015-07-16 12:34 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1ZAgI1-0000jO-Kb@sd-51317.xenomai.org>
2015-07-02 15:24 ` [Xenomai] [Xenomai-git] Jan Kiszka : cobalt/kernel: Remove unused mode parameter from COBALT_SYSCALL Philippe Gerum
2015-07-02 15:39 ` Jan Kiszka
2015-07-02 16:30 ` Philippe Gerum
2015-07-02 16:44 ` Jan Kiszka
2015-07-02 16:49 ` Gilles Chanteperdrix
2015-07-02 16:56 ` Philippe Gerum
2015-07-02 17:03 ` Gilles Chanteperdrix
2015-07-02 17:09 ` Philippe Gerum
2015-07-02 16:56 ` Gilles Chanteperdrix
2015-07-02 17:31 ` Jan Kiszka
2015-07-02 17:35 ` Gilles Chanteperdrix
2015-07-02 17:55 ` Gilles Chanteperdrix
2015-07-02 17:57 ` Jan Kiszka
2015-07-02 18:00 ` Gilles Chanteperdrix
2015-07-02 18:42 ` Gilles Chanteperdrix
2015-07-02 18:49 ` Jan Kiszka
2015-07-02 18:55 ` Gilles Chanteperdrix
2015-07-02 19:32 ` Jan Kiszka
2015-07-02 20:26 ` Jan Kiszka
2015-07-03 10:51 ` Gilles Chanteperdrix
2015-07-03 12:31 ` Gilles Chanteperdrix
2015-07-03 12:38 ` Gilles Chanteperdrix
2015-07-16 12:35 ` Jan Kiszka
2015-07-16 18:42 ` Jan Kiszka
2015-07-16 22:34 ` Gilles Chanteperdrix
2015-07-17 6:06 ` Jan Kiszka
2015-07-17 7:23 ` Gilles Chanteperdrix
2015-07-16 12:34 ` Jan Kiszka [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55A7A4E2.4060309@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.