Skip to content

Commit

Permalink
libmicrokit: style
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Velickovic <[email protected]>
  • Loading branch information
Ivan-Velickovic committed Apr 26, 2024
1 parent c2cfd9a commit 1937f20
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions libmicrokit/include/microkit.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,44 +45,37 @@ void microkit_dbg_putc(int c);
*/
void microkit_dbg_puts(const char *s);

static inline void
microkit_notify(microkit_channel ch)
static inline void microkit_notify(microkit_channel ch)
{
seL4_Signal(BASE_OUTPUT_NOTIFICATION_CAP + ch);
}

static inline void
microkit_irq_ack(microkit_channel ch)
static inline void microkit_irq_ack(microkit_channel ch)
{
seL4_IRQHandler_Ack(BASE_IRQ_CAP + ch);
}

static inline microkit_msginfo
microkit_ppcall(microkit_channel ch, microkit_msginfo msginfo)
static inline microkit_msginfo microkit_ppcall(microkit_channel ch, microkit_msginfo msginfo)
{
return seL4_Call(BASE_ENDPOINT_CAP + ch, msginfo);
}

static inline microkit_msginfo
microkit_msginfo_new(uint64_t label, uint16_t count)
static inline microkit_msginfo microkit_msginfo_new(uint64_t label, uint16_t count)
{
return seL4_MessageInfo_new(label, 0, 0, count);
}

static inline uint64_t
microkit_msginfo_get_label(microkit_msginfo msginfo)
static inline uint64_t microkit_msginfo_get_label(microkit_msginfo msginfo)
{
return seL4_MessageInfo_get_label(msginfo);
}

static void
microkit_mr_set(uint8_t mr, uint64_t value)
static void microkit_mr_set(uint8_t mr, uint64_t value)
{
seL4_SetMR(mr, value);
}

static uint64_t
microkit_mr_get(uint8_t mr)
static uint64_t microkit_mr_get(uint8_t mr)
{
return seL4_GetMR(mr);
}

0 comments on commit 1937f20

Please sign in to comment.