[PATCH] sh: Fix __SH_SYSCALL_TRAP_BASE for SH2A architecture

Carmelo AMOROSO carmelo.amoroso at st.com
Fri Feb 20 14:12:34 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bernhard Reutner-Fischer wrote:
> On Fri, Feb 20, 2009 at 01:55:45PM +0100, Carmelo AMOROSO wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Peter Griffin wrote:
>>> >From c1f94ea2fbebc0ce321da7220c6a69bfb997c21a Mon Sep 17 00:00:00 2001
>>> From: Peter Griffin <pgriffin at mpc-data.co.uk>
>>> Date: Fri, 20 Feb 2009 05:42:03 +0000
>>> Subject: [PATCH] sh: Fix __SH_SYSCALL_TRAP_BASE for SH2A architecture
>>>
>>>
>>> Signed-off-by: Peter Griffin <pgriffin at mpc-data.co.uk>
>>> ---
>>>  libc/sysdeps/linux/sh/bits/syscalls.h |    2 +-
>>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/libc/sysdeps/linux/sh/bits/syscalls.h b/libc/sysdeps/linux/sh/bits/syscalls.h
>>> index bcd73eb..f0aeb47 100644
>>> --- a/libc/sysdeps/linux/sh/bits/syscalls.h
>>> +++ b/libc/sysdeps/linux/sh/bits/syscalls.h
>>> @@ -5,7 +5,7 @@
>>>  #endif
>>>  
>>>  /* The Linux kernel uses different trap numbers on sh-2.  */
>>> -#ifdef __CONFIG_SH2__
>>> +#ifdef __CONFIG_SH2__ | __CONFIG_SH2A__ 
>>>  # define __SH_SYSCALL_TRAP_BASE 0x20
>>>  #else
>>>  # define __SH_SYSCALL_TRAP_BASE 0x10
>> Applied, thanks.
> 
> err, how could that possibly be correct?
> 
It cannot. Sorry.. just applied. Luckily there are more eyes looking at
what we do.

Apologies,
Carmelo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkmeulEACgkQoRq/3BrK1s8l7ACg9JMd6okphasbToM+lW6sJA0I
zmAAoMjI11MSXEhPb25xB4N2eTs+nxqx
=togP
-----END PGP SIGNATURE-----


More information about the uClibc mailing list