• 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/0002-microblaze.patch
Thomas PetazzoniThomas Petazzoni committed 9a521546ed506 Apr 2017
Raw file
Source viewDiff to previous
 
1
Add Microblaze support
2
​
3
[Gustavo: update for nspr 4.10.9]
4
Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
5
​
6
Index: b/nspr/pr/include/md/_linux.cfg
7
===================================================================
8
--- a/nspr/pr/include/md/_linux.cfg
9
+++ b/nspr/pr/include/md/_linux.cfg
10
@@ -1062,6 +1062,56 @@
11
 #define PR_BYTES_PER_WORD_LOG2   2
12
 #define PR_BYTES_PER_DWORD_LOG2  3
13
 
14
+#elif defined(__microblaze__)
15
+
16
+#if defined(__BIG_ENDIAN__)
17
+#define IS_BIG_ENDIAN 1
18
+#undef  IS_LITTLE_ENDIAN
19
+#else
20
+#define IS_LITTLE_ENDIAN 1
21
+#undef  IS_BIG_ENDIAN
22
+#endif
23
+
24
+#define PR_BYTES_PER_BYTE   1
25
+#define PR_BYTES_PER_SHORT  2
26
+#define PR_BYTES_PER_INT    4
27
+#define PR_BYTES_PER_INT64  8
28
+#define PR_BYTES_PER_LONG   4
29
+#define PR_BYTES_PER_FLOAT  4
30
+#define PR_BYTES_PER_DOUBLE 8
31
+#define PR_BYTES_PER_WORD   4
32
+#define PR_BYTES_PER_DWORD  8
33
+
34
+#define PR_BITS_PER_BYTE    8
35
+#define PR_BITS_PER_SHORT   16
36
+#define PR_BITS_PER_INT     32
37
+#define PR_BITS_PER_INT64   64
38
+#define PR_BITS_PER_LONG    32
39
+#define PR_BITS_PER_FLOAT   32
40
+#define PR_BITS_PER_DOUBLE  64
41
+#define PR_BITS_PER_WORD    32
42
+
43
+#define PR_BITS_PER_BYTE_LOG2   3
44
+#define PR_BITS_PER_SHORT_LOG2  4
45
+#define PR_BITS_PER_INT_LOG2    5
46
+#define PR_BITS_PER_INT64_LOG2  6
47
+#define PR_BITS_PER_LONG_LOG2   5
48
+#define PR_BITS_PER_FLOAT_LOG2  5
49
+#define PR_BITS_PER_DOUBLE_LOG2 6
50
+#define PR_BITS_PER_WORD_LOG2   5
51
+
52
+#define PR_ALIGN_OF_SHORT   2
53
+#define PR_ALIGN_OF_INT     4
54
+#define PR_ALIGN_OF_LONG    4
55
+#define PR_ALIGN_OF_INT64   4
56
+#define PR_ALIGN_OF_FLOAT   4
57
+#define PR_ALIGN_OF_DOUBLE  4
58
+#define PR_ALIGN_OF_POINTER 4
59
+#define PR_ALIGN_OF_WORD    4
60
+
61
+#define PR_BYTES_PER_WORD_LOG2   2
62
+#define PR_BYTES_PER_DWORD_LOG2  3
63
+
  • 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.