Skip to content

Commit

Permalink
Merge pull request #97 from 0152la/CI_fixes
Browse files Browse the repository at this point in the history
Fix some failing tests
  • Loading branch information
ltratt authored Jan 16, 2025
2 parents 1190908 + b515be7 commit 15d937f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions general_bounds.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ int main(int argc, char *argv[])

printf("Explicitly setting the bounds outside the range causes the following exception: ");
fflush(stdout);
int32_t custom_bounds_array = cheri_setbounds(array, bounds);
int32_t *custom_bounds_array = cheri_setbounds(array, bounds);
#else
#error Platform not currently supported.
#endif
}
}
4 changes: 2 additions & 2 deletions hybrid/compartment_examples/inter_comp_call/base/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ void executive_switch(struct comp c)
void *__capability comps_addr = (void *__capability) &comps;
comps_addr = cheri_bounds_set(comps_addr, COMP_COUNT * COMP_SIZE);

asm("mov c19, %w0\n\t"
"mov c20, %w1\n\t"
asm("mov c19, %C0\n\t"
"mov c20, %C1\n\t"
"mov x0, #0\n\t"
"msr CID_EL0, c0"
:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void init_comps()

switcher_call = (void *__capability) switcher_caps;
// Seal this capability to be only used via a `lpb` type call
asm("seal %w0, %w0, lpb" : "+r"(switcher_call) :);
asm("seal %C0, %C0, lpb" : "+r"(switcher_call) :);
}

void add_comp(uint8_t *_start_addr, void (*_comp_fn)(), void *_comp_fn_end)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void init_comps()

switcher_call = (void *__capability) switcher_caps;
// Seal this capability to be only used via a `lpb` type call
asm("seal %w0, %w0, lpb" : "+r"(switcher_call) :);
asm("seal %C0, %C0, lpb" : "+r"(switcher_call) :);
}

void add_comp(uint8_t *_start_addr, void (*_comp_fn)(), void *_comp_fn_end)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void init_comps()

switcher_call = (void *__capability) switcher_caps;
// Seal this capability to be only used via a `lpb` type call
asm("seal %w0, %w0, lpb" : "+r"(switcher_call) :);
asm("seal %C0, %C0, lpb" : "+r"(switcher_call) :);
}

void add_comp(uint8_t *_start_addr, void (*_comp_fn)(), void *_comp_fn_end)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void init_comps()

switcher_call = (void *__capability) switcher_caps;
// Seal this capability to be only used via a `lpb` type call
asm("seal %w0, %w0, lpb" : "+r"(switcher_call) :);
asm("seal %C0, %C0, lpb" : "+r"(switcher_call) :);
}

void add_comp(uint8_t *_start_addr, void (*_comp_fn)(), void *_comp_fn_end)
Expand Down

0 comments on commit 15d937f

Please sign in to comment.