Skip to content

Commit

Permalink
Remove unneeded address
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Lascu committed Jan 17, 2022
1 parent d129562 commit 420bddc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ struct comp comps[COMP_COUNT];
void init_comps()
{
void *__capability switch_cap = (void *__capability) switch_compartment;
size_t switcher_size = (uintptr_t) &switch_compartment_end - (uintptr_t) switch_compartment;
size_t switcher_size = (uintptr_t) switch_compartment_end - (uintptr_t) switch_compartment;
switch_cap = cheri_bounds_set(switch_cap, switcher_size);
switcher_caps[1] = switch_cap;

Expand Down
2 changes: 1 addition & 1 deletion hybrid/compartment_examples/inter_comp_call/secure/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ struct comp comps[COMP_COUNT];
void init_comps()
{
void *__capability switch_cap = (void *__capability) switch_compartment;
size_t switcher_size = (uintptr_t) &switch_compartment_end - (uintptr_t) switch_compartment;
size_t switcher_size = (uintptr_t) switch_compartment_end - (uintptr_t) switch_compartment;
switch_cap = cheri_bounds_set(switch_cap, switcher_size);
switcher_caps[1] = switch_cap;

Expand Down

0 comments on commit 420bddc

Please sign in to comment.