Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

templates: fix mismatched type size in simple #140

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion camkes/templates/component.simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <camkes/error.h>
#include <camkes/tls.h>
#include <vka/kobject_t.h>
#include <utils/builtin.h>

#include <simple/simple.h>

Expand Down Expand Up @@ -482,7 +483,7 @@ void camkes_make_simple(simple_t *simple) {
/*# If there is no size specified in the configuration then we assume the cnode
will be as small as possible to hold all the capabilities that are currently
defined #*/
simple_data.cnodesizebits = CONFIG_WORD_SIZE - __builtin_clz(/*? holding_slot ?*/) + 1;
simple_data.cnodesizebits = CONFIG_WORD_SIZE - CLZL(/*? holding_slot ?*/) + 1;
/*- endif -*/
/*# Find untyped physical addresses. We only care if the untyped is at least a page size #*/
/*- for u in untyped_obj_list -*/
Expand Down