• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libnspr/libnspr-0001-nios2.patch
Spenser GillilandSpenser Gilliland committed 443af537d2927 Jan 2014
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
Add Nios-II support
2
​
3
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
4
​
5
diff -Naur libnspr-4.9.6-ori/mozilla/nsprpub/pr/include/md/_linux.cfg libnspr-4.9.6/mozilla/nsprpub/pr/include/md/_linux.cfg
6
--- libnspr-4.9.6-ori/mozilla/nsprpub/pr/include/md/_linux.cfg  2013-11-10 21:15:04.556139100 -0300
7
+++ libnspr-4.9.6/mozilla/nsprpub/pr/include/md/_linux.cfg  2013-11-10 21:15:29.332138283 -0300
8
@@ -914,6 +914,51 @@
9
 #define PR_BYTES_PER_WORD_LOG2   2
10
 #define PR_BYTES_PER_DWORD_LOG2  3
11
 
12
+#elif defined(nios2)
13
+
14
+#define IS_LITTLE_ENDIAN 1
15
+#undef  IS_BIG_ENDIAN
16
+
17
+#define PR_BYTES_PER_BYTE   1
18
+#define PR_BYTES_PER_SHORT  2
19
+#define PR_BYTES_PER_INT    4
20
+#define PR_BYTES_PER_INT64  8
21
+#define PR_BYTES_PER_LONG   4
22
+#define PR_BYTES_PER_FLOAT  4
23
+#define PR_BYTES_PER_DOUBLE 8
24
+#define PR_BYTES_PER_WORD   4
25
+#define PR_BYTES_PER_DWORD  8
26
+
27
+#define PR_BITS_PER_BYTE    8
28
+#define PR_BITS_PER_SHORT   16
29
+#define PR_BITS_PER_INT     32
30
+#define PR_BITS_PER_INT64   64
31
+#define PR_BITS_PER_LONG    32
32
+#define PR_BITS_PER_FLOAT   32
33
+#define PR_BITS_PER_DOUBLE  64
34
+#define PR_BITS_PER_WORD    32
35
+
36
+#define PR_BITS_PER_BYTE_LOG2   3
37
+#define PR_BITS_PER_SHORT_LOG2  4
38
+#define PR_BITS_PER_INT_LOG2    5
39
+#define PR_BITS_PER_INT64_LOG2  6
40
+#define PR_BITS_PER_LONG_LOG2   5
41
+#define PR_BITS_PER_FLOAT_LOG2  5
42
+#define PR_BITS_PER_DOUBLE_LOG2 6
43
+#define PR_BITS_PER_WORD_LOG2   5
44
+
45
+#define PR_ALIGN_OF_SHORT   2
46
+#define PR_ALIGN_OF_INT     4
47
+#define PR_ALIGN_OF_LONG    4
48
+#define PR_ALIGN_OF_INT64   4
49
+#define PR_ALIGN_OF_FLOAT   4
50
+#define PR_ALIGN_OF_DOUBLE  4
51
+#define PR_ALIGN_OF_POINTER 4
52
+#define PR_ALIGN_OF_WORD    4
53
+
54
+#define PR_BYTES_PER_WORD_LOG2   2
55
+#define PR_BYTES_PER_DWORD_LOG2  3
56
+
57
 #else
58
 
59
 #error "Unknown CPU architecture"
60
diff -Naur libnspr-4.9.6-ori/mozilla/nsprpub/pr/include/md/_linux.h libnspr-4.9.6/mozilla/nsprpub/pr/include/md/_linux.h
61
--- libnspr-4.9.6-ori/mozilla/nsprpub/pr/include/md/_linux.h    2013-11-10 21:15:04.556139100 -0300
62
+++ libnspr-4.9.6/mozilla/nsprpub/pr/include/md/_linux.h    2013-11-10 21:15:33.245138154 -0300
63
@@ -55,6 +55,8 @@
64
 #define _PR_SI_ARCHITECTURE "avr32"
65
 #elif defined(__m32r__)
66
 #define _PR_SI_ARCHITECTURE "m32r"
67
+#elif defined(nios2)
68
+#define _PR_SI_ARCHITECTURE "nios2"
69
 #else
70
 #error "Unknown CPU architecture"
71
 #endif
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.