aboutsummaryrefslogtreecommitdiff
path: root/projects/hsm
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-09-23 01:00:25 -0400
committerRob Austein <sra@hactrn.net>2016-09-23 01:00:25 -0400
commit2dc81c98924db865be038476ecc8ce92c186efa7 (patch)
tree9e168d7e54fc30c18bd7b98e646446f4460b0f6c /projects/hsm
parentfb931dbd29d899a7e9523ee1ea6e11d263b9ad7e (diff)
Use subsectors instead of sectors in keystore.
Diffstat (limited to 'projects/hsm')
-rw-r--r--projects/hsm/hsm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/projects/hsm/hsm.c b/projects/hsm/hsm.c
index 862e718..ac0f23a 100644
--- a/projects/hsm/hsm.c
+++ b/projects/hsm/hsm.c
@@ -217,6 +217,14 @@ static uint8_t *sdram_malloc(size_t size)
return p;
}
+/* Implement static memory allocation for libhal over sdram_malloc().
+ * Once again, there's only alloc, not free. */
+
+void *hal_allocate_static_memory(const size_t size)
+{
+ return sdram_malloc(size);
+}
+
#if NUM_RPC_TASK > 1
/* Critical section start/end, currently used just for hal_core_alloc/_free.
*/
5044a5e5fd7bac3c41'>92ce4da
fe94d97
5af4a91
92ce4da

5af4a91
92ce4da




5af4a91
92ce4da
5af4a91

92ce4da






5af4a91
92ce4da

5af4a91

92ce4da
5af4a91
92ce4da

5af4a91
92ce4da

5af4a91

92ce4da



5af4a91
92ce4da





5af4a91

92ce4da





5af4a91
92ce4da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137