Skip to content

Commit

Permalink
Fix types used in SMC code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-Velickovic committed Jul 10, 2023
1 parent b3c39a8 commit ffda2ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/arch/aarch64/smc.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ typedef enum {
SMC_CALL_RESERVED = 64,
} smc_call_id_t;

static smc_call_id_t smc_get_call(uintptr_t func_id)
static smc_call_id_t smc_get_call(size_t func_id)
{
uint64_t service = ((func_id >> SMC_SERVICE_CALL_SHIFT) & SMC_SERVICE_CALL_MASK);
assert(service >= 0 && service <= 0xFFFF);
Expand Down
5 changes: 3 additions & 2 deletions src/arch/aarch64/smc.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@

#pragma once

#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <sel4cp.h>

/* SMC vCPU fault handler */
bool handle_smc(uint64_t vcpu_id, uint32_t hsr);
bool handle_smc(size_t vcpu_id, uint32_t hsr);

/* Helper functions */
void smc_set_return_value(seL4_UserContext *u, uint64_t val);
Expand Down

0 comments on commit ffda2ed

Please sign in to comment.