Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 298146 Details for
Bug 437624
Add super-H(sh3,4) architecture support.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
nspr-4.6.1-sh-linux.patch
nspr-4.6.1-sh-linux.patch (text/plain), 2.75 KB, created by
CHIKAMA Masaki
on 2008-03-15 11:39:37 UTC
(
hide
)
Description:
nspr-4.6.1-sh-linux.patch
Filename:
MIME Type:
Creator:
CHIKAMA Masaki
Created:
2008-03-15 11:39:37 UTC
Size:
2.75 KB
patch
obsolete
>diff -ru nspr-4.6.1.orig/mozilla/nsprpub/pr/include/md/_linux.cfg nspr-4.6.1/mozilla/nsprpub/pr/include/md/_linux.cfg >--- nspr-4.6.1.orig/mozilla/nsprpub/pr/include/md/_linux.cfg 2005-08-10 07:41:37.000000000 +0900 >+++ nspr-4.6.1/mozilla/nsprpub/pr/include/md/_linux.cfg 2006-03-21 21:51:19.000000000 +0900 >@@ -645,6 +645,51 @@ > #define PR_BYTES_PER_WORD_LOG2 2 > #define PR_BYTES_PER_DWORD_LOG2 3 > >+#elif defined(__sh__) >+ >+#define IS_LITTLE_ENDIAN 1 >+#undef IS_BIG_ENDIAN >+ >+#define PR_BYTES_PER_BYTE 1 >+#define PR_BYTES_PER_SHORT 2 >+#define PR_BYTES_PER_INT 4 >+#define PR_BYTES_PER_INT64 8 >+#define PR_BYTES_PER_LONG 4 >+#define PR_BYTES_PER_FLOAT 4 >+#define PR_BYTES_PER_DOUBLE 8 >+#define PR_BYTES_PER_WORD 4 >+#define PR_BYTES_PER_DWORD 8 >+ >+#define PR_BITS_PER_BYTE 8 >+#define PR_BITS_PER_SHORT 16 >+#define PR_BITS_PER_INT 32 >+#define PR_BITS_PER_INT64 64 >+#define PR_BITS_PER_LONG 32 >+#define PR_BITS_PER_FLOAT 32 >+#define PR_BITS_PER_DOUBLE 64 >+#define PR_BITS_PER_WORD 32 >+ >+#define PR_BITS_PER_BYTE_LOG2 3 >+#define PR_BITS_PER_SHORT_LOG2 4 >+#define PR_BITS_PER_INT_LOG2 5 >+#define PR_BITS_PER_INT64_LOG2 6 >+#define PR_BITS_PER_LONG_LOG2 5 >+#define PR_BITS_PER_FLOAT_LOG2 5 >+#define PR_BITS_PER_DOUBLE_LOG2 6 >+#define PR_BITS_PER_WORD_LOG2 5 >+ >+#define PR_ALIGN_OF_SHORT 2 >+#define PR_ALIGN_OF_INT 4 >+#define PR_ALIGN_OF_LONG 4 >+#define PR_ALIGN_OF_INT64 4 >+#define PR_ALIGN_OF_FLOAT 4 >+#define PR_ALIGN_OF_DOUBLE 4 >+#define PR_ALIGN_OF_POINTER 4 >+#define PR_ALIGN_OF_WORD 4 >+ >+#define PR_BYTES_PER_WORD_LOG2 2 >+#define PR_BYTES_PER_DWORD_LOG2 3 >+ > #else > > #error "Unknown CPU architecture" >diff -ru nspr-4.6.1.orig/mozilla/nsprpub/pr/include/md/_linux.h nspr-4.6.1/mozilla/nsprpub/pr/include/md/_linux.h >--- nspr-4.6.1.orig/mozilla/nsprpub/pr/include/md/_linux.h 2005-08-10 07:41:37.000000000 +0900 >+++ nspr-4.6.1/mozilla/nsprpub/pr/include/md/_linux.h 2006-03-21 21:51:23.000000000 +0900 >@@ -72,6 +72,8 @@ > #define _PR_SI_ARCHITECTURE "s390x" > #elif defined(__s390__) > #define _PR_SI_ARCHITECTURE "s390" >+#elif defined(__sh__) >+#define _PR_SI_ARCHITECTURE "sh" > #else > #error "Unknown CPU architecture" > #endif >@@ -358,6 +360,18 @@ > #error "ARM/Linux pre-glibc2 not supported yet" > #endif /* defined(__GLIBC__) && __GLIBC__ >= 2 */ > >+#elif defined(__sh__) >+/* SH/Linux */ >+#if defined(__GLIBC__) && __GLIBC__ >= 2 >+#define _MD_GET_SP(_t) (_t)->md.context[0].__jmpbuf[7] >+#define _MD_SET_FP(_t, val) ((_t)->md.context[0].__jmpbuf[6] = (val)) >+#define _MD_GET_SP_PTR(_t) &(_MD_GET_SP(_t)) >+#define _MD_GET_FP_PTR(_t) (&(_t)->md.context[0].__jmpbuf[6]) >+#define _MD_SP_TYPE __ptr_t >+#else >+#error "SH/Linux pre-glibc2 not supported yet" >+#endif /* defined(__GLIBC__) && __GLIBC__ >= 2 */ >+ > #else > > #error "Unknown CPU architecture"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 437624
: 298146