[PATCH] Add support for Imagination Technologies Meta

James Hogan james.hogan at imgtec.com
Wed Mar 6 09:50:09 UTC 2013


On 05/03/13 11:56, Denys Vlasenko wrote:
> On 02/22/2013 03:44 PM, James Hogan wrote:
>> Add support for Imagination Technologies Meta architecture (the
>> architecture/ABI is usually referred to as metag in code). The Meta
>> Linux kernel port is in the process of being upstreamed for v3.9 so it
>> uses generic system call numbers.
>>
>> Signed-off-by: James Hogan <james.hogan at imgtec.com>
>> Cc: Christian Svensson <blue at cmd.nu>
>> ---
>> I've pulled the -C -C options on git format-patch so that the
>> differences against or1k can be seen in the system call table (but can
>> regenerate a clean patch if required):
>> * sys_lookup_dcookie writes a filename to buffer argument, so I've set
>>   TF flag
>> * nfsservctl appears to be set to sys_ni_syscall in asm-generic/unistd.h
>>   so I've left it blank
>> * truncate64/ftruncate64/pread64/pwrite64/readahead have unaligned 64bit
>>   args which are packed tightly on metag, so less arguments on metag
>> * fchdir/llseek takes a file descriptor so s/TF/TD/
>> * sync_file_range has 2 64bit args so uses 6 args, so s/4/6/
>> * timerfd_create/msgget/msgctl/msgrcv/semget/segtimedop/semop/shmget/
>>   shmctl/shmat/shmdt/recvmsg/migrate_pages have different number of args
>> * oldgetrlimit is just getrlimit for metag
>> * add TM flag to various memory syscalls
>> * metag doesn't directly use sys_mmap_pgoff for mmap2
>> * prlimit64/process_vm_readv/process_vm_writev take a pid so add TP flag
>> * fanotify_init doesn't appear to take a file descriptor so remove TD
>> * add kcmp syscall
>>
>>  configure.ac                       |   4 ++
>>  defs.h                             |   4 +-
>>  linux/{arm => metag}/ioctlent.h.in |   0
>>  linux/{or1k => metag}/syscallent.h | 103 +++++++++++++++++++------------------
>>  process.c                          |   2 +
>>  syscall.c                          |  32 ++++++++++++
>>  util.c                             |   3 ++
>>  7 files changed, 97 insertions(+), 51 deletions(-)
>>  copy linux/{arm => metag}/ioctlent.h.in (100%)
>>  copy linux/{or1k => metag}/syscallent.h (80%)
> 
> Applied, thanks!

Thanks Denys

Cheers
James





More information about the Strace-devel mailing list