Skip to content

Commit 9b3c312

Browse files
committed
Remove guard for __uvisor_ctx
Now that mbed OS has been updated, we do not need the backwards compatible guard any more.
1 parent 64fef54 commit 9b3c312

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

source/client_a.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ UVISOR_BOX_HEAPSIZE(3072);
3737
UVISOR_BOX_MAIN(client_a_main, osPriorityNormal, 768);
3838
UVISOR_BOX_CONFIG(secure_number_client_a, acl, 512, box_context);
3939

40-
/* FIXME: The guard is needed for backwards-compatibility reasons. Remove it
41-
* when mbed OS is updated. */
42-
#ifdef __uvisor_ctx
4340
#define uvisor_ctx ((box_context *) __uvisor_ctx)
44-
#endif
4541

4642
static uint32_t get_a_number()
4743
{

source/client_b.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ UVISOR_BOX_HEAPSIZE(3072);
3838
UVISOR_BOX_MAIN(client_b_main, osPriorityNormal, 1024);
3939
UVISOR_BOX_CONFIG(secure_number_client_b, acl, 512, box_context);
4040

41-
/* FIXME: The guard is needed for backwards-compatibility reasons. Remove it
42-
* when mbed OS is updated. */
43-
#ifdef __uvisor_ctx
4441
#define uvisor_ctx ((box_context *) __uvisor_ctx)
45-
#endif
4642

4743
static uint32_t get_a_number()
4844
{

source/secure_number.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ UVISOR_BOX_HEAPSIZE(3072);
3939
UVISOR_BOX_MAIN(number_store_main, osPriorityNormal, UVISOR_BOX_STACK_SIZE);
4040
UVISOR_BOX_CONFIG(box_number_store, acl, UVISOR_BOX_STACK_SIZE, box_context);
4141

42-
/* FIXME: The guard is needed for backwards-compatibility reasons. Remove it
43-
* when mbed OS is updated. */
44-
#ifdef __uvisor_ctx
4542
#define uvisor_ctx ((box_context *) __uvisor_ctx)
46-
#endif
4743

4844
/* Gateways */
4945
UVISOR_BOX_RPC_GATEWAY_SYNC (box_number_store, secure_number_get_number, get_number, uint32_t, void);

0 commit comments

Comments
 (0)