other benchmarks
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
void* tiny_malloc(size_t);
|
||||
void tiny_free(void*);
|
||||
|
||||
#define ALIGN 16
|
||||
|
||||
// #define HEAP_SIZE 65536 // 64 KB heap
|
||||
|
||||
// #define PHYS_BASE 0x80000000
|
||||
@@ -57,7 +59,11 @@ void * __capability malloc(size_t size) {
|
||||
|
||||
cap = cheri_bounds_set(cap, size);
|
||||
|
||||
cap = add_delta(cap, 12);
|
||||
int delta = 12;
|
||||
|
||||
delta = (delta + ALIGN - 1) & ~(ALIGN - 1);
|
||||
|
||||
cap = add_delta(cap, delta);
|
||||
|
||||
// // Align to 8 bytes (important for capability safety)
|
||||
// size = (size + 7) & ~7;
|
||||
|
||||
Reference in New Issue
Block a user