We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8176ccf commit 2bba6f8Copy full SHA for 2bba6f8
tests/memory_maps/main.c
@@ -8,6 +8,13 @@ INIT_RUNTIME(4);
8
#define IA2_COMPARTMENT 1
9
#include <ia2_compartment_init.inc>
10
11
+void ia2_main(void) {
12
+ ia2_register_compartment("main", 1, NULL);
13
+ ia2_register_compartment("lib2.so", 2, NULL);
14
+ ia2_register_compartment("lib3.so", 3, NULL);
15
+ ia2_register_compartment("lib4.so", 4, NULL);
16
+}
17
+
18
Test(memory_maps, alloc) {
19
// Alloc and free so that partition-alloc allocates its compartment heaps.
20
free(malloc(1024));
0 commit comments