File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ static void led1_main(const void *)
31
31
SecureAllocator alloc = secure_allocator_create_with_pages (4 * kB , 1 * kB );
32
32
33
33
while (1 ) {
34
- static const size_t size = 500 ;
34
+ static const size_t size = 50 ;
35
35
uint16_t seed = (size << 8 ) | (uvisor_ctx->heartbeat & 0xFF );
36
36
37
37
led1 = !led1;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ static void led2_main(const void *);
18
18
* We do not need large stacks in either the main nor the interrupt thread, as
19
19
* we do not do anything special in them. */
20
20
UVISOR_BOX_NAMESPACE (NULL );
21
- UVISOR_BOX_HEAPSIZE (8 * 1024 );
21
+ UVISOR_BOX_HEAPSIZE (3 * 1024 );
22
22
UVISOR_BOX_MAIN (led2_main, osPriorityNormal, 512 );
23
23
UVISOR_BOX_CONFIG (box_led2, acl, 512 , box_context);
24
24
@@ -47,7 +47,7 @@ static void led2_main(const void *)
47
47
secure_allocator_destroy (alloc2);
48
48
49
49
while (1 ) {
50
- static const size_t size = 300 ;
50
+ static const size_t size = 30 ;
51
51
uint16_t seed = (size << 8 ) | (uvisor_ctx->heartbeat & 0xFF );
52
52
53
53
led2 = !led2;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ static void led3_main(const void *);
18
18
* We need at least 1kB in the main thread as we use printf in it. The interrupt
19
19
* stack size can be smaller as we do not do anything special in them. */
20
20
UVISOR_BOX_NAMESPACE (NULL );
21
- UVISOR_BOX_HEAPSIZE (8 * 1024 );
21
+ UVISOR_BOX_HEAPSIZE (3 * 1024 );
22
22
UVISOR_BOX_MAIN (led3_main, osPriorityNormal, 1024 );
23
23
UVISOR_BOX_CONFIG (box_led3, acl, 512 , box_context);
24
24
@@ -59,7 +59,7 @@ static void led3_main(const void *)
59
59
SecureAllocator alloc = secure_allocator_create_with_pages (4 * kB , 1 * kB );
60
60
/* Prepare the thread definition structure. */
61
61
osThreadDef_t thread_def;
62
- thread_def.stacksize = DEFAULT_STACK_SIZE ;
62
+ thread_def.stacksize = 512 ;
63
63
/* Allocate the stack inside the page allocator! */
64
64
thread_def.stack_pointer = (uint32_t *) secure_malloc (alloc, DEFAULT_STACK_SIZE);
65
65
thread_def.tpriority = osPriorityNormal;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ static void main_alloc(void)
34
34
SecureAllocator alloc = secure_allocator_create_with_pages (4 * kB , 1 * kB );
35
35
36
36
while (1 ) {
37
- alloc_fill_wait_verify_free (500 , seed, 577 );
37
+ alloc_fill_wait_verify_free (50 , seed, 577 );
38
38
specific_alloc_fill_wait_verify_free (alloc, 5 * kB , seed, 97 );
39
39
seed++;
40
40
}
You can’t perform that action at this time.
0 commit comments