• 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/0001-nios2.patch
Gustavo ZacariasGustavo Zacarias committed 16ab3e9f32703 Oct 2015
Raw file
Source viewDiff to previous
 
1
Add Nios-II support
2
​
3
[Gustavo: update for nspr 4.10.9]
4
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
5
​
6
diff -Nura nspr-4.10.9.orig/nspr/pr/include/md/_linux.cfg nspr-4.10.9/nspr/pr/include/md/_linux.cfg
7
--- nspr-4.10.9.orig/nspr/pr/include/md/_linux.cfg  2015-10-03 08:11:43.229387215 -0300
8
+++ nspr-4.10.9/nspr/pr/include/md/_linux.cfg   2015-10-03 08:11:55.277798841 -0300
9
@@ -1017,6 +1017,51 @@
10
 #define PR_BYTES_PER_WORD_LOG2   2
11
 #define PR_BYTES_PER_DWORD_LOG2  3
12
 
13
+#elif defined(nios2)
14
+
15
+#define IS_LITTLE_ENDIAN 1
16
+#undef  IS_BIG_ENDIAN
17
+
18
+#define PR_BYTES_PER_BYTE   1
19
+#define PR_BYTES_PER_SHORT  2
20
+#define PR_BYTES_PER_INT    4
21
+#define PR_BYTES_PER_INT64  8
22
+#define PR_BYTES_PER_LONG   4
23
+#define PR_BYTES_PER_FLOAT  4
24
+#define PR_BYTES_PER_DOUBLE 8
25
+#define PR_BYTES_PER_WORD   4
26
+#define PR_BYTES_PER_DWORD  8
27
+
28
+#define PR_BITS_PER_BYTE    8
29
+#define PR_BITS_PER_SHORT   16
30
+#define PR_BITS_PER_INT     32
31
+#define PR_BITS_PER_INT64   64
32
+#define PR_BITS_PER_LONG    32
33
+#define PR_BITS_PER_FLOAT   32
34
+#define PR_BITS_PER_DOUBLE  64
35
+#define PR_BITS_PER_WORD    32
36
+
37
+#define PR_BITS_PER_BYTE_LOG2   3
38
+#define PR_BITS_PER_SHORT_LOG2  4
39
+#define PR_BITS_PER_INT_LOG2    5
40
+#define PR_BITS_PER_INT64_LOG2  6
41
+#define PR_BITS_PER_LONG_LOG2   5
42
+#define PR_BITS_PER_FLOAT_LOG2  5
43
+#define PR_BITS_PER_DOUBLE_LOG2 6
44
+#define PR_BITS_PER_WORD_LOG2   5
45
+
46
+#define PR_ALIGN_OF_SHORT   2
47
+#define PR_ALIGN_OF_INT     4
48
+#define PR_ALIGN_OF_LONG    4
49
+#define PR_ALIGN_OF_INT64   4
50
+#define PR_ALIGN_OF_FLOAT   4
51
+#define PR_ALIGN_OF_DOUBLE  4
52
+#define PR_ALIGN_OF_POINTER 4
53
+#define PR_ALIGN_OF_WORD    4
54
+
55
+#define PR_BYTES_PER_WORD_LOG2   2
56
+#define PR_BYTES_PER_DWORD_LOG2  3
57
+
58
 #else
59
 
60
 #error "Unknown CPU architecture"
61
diff -Nura nspr-4.10.9.orig/nspr/pr/include/md/_linux.h nspr-4.10.9/nspr/pr/include/md/_linux.h
62
--- nspr-4.10.9.orig/nspr/pr/include/md/_linux.h    2015-10-03 08:11:43.229387215 -0300
63
+++ nspr-4.10.9/nspr/pr/include/md/_linux.h 2015-10-03 08:12:22.474728003 -0300
  • 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.