Skip to content

snRuntime/src/cluster_interrupts.h

Functions

Name
void snrt_int_cluster_set(uint32_t mask)
Write mask to the cluster-local interrupt set register.
void snrt_int_cluster_clr(uint32_t mask)
Write mask to the cluster-local interrupt clear register.
void snrt_int_clr_mcip()
void snrt_int_set_mcip()

Functions Documentation

function snrt_int_cluster_set

inline void snrt_int_cluster_set(
    uint32_t mask
)

Write mask to the cluster-local interrupt set register.

Parameters:

  • mask set bit at X sets the interrupt of hart X

function snrt_int_cluster_clr

inline void snrt_int_cluster_clr(
    uint32_t mask
)

Write mask to the cluster-local interrupt clear register.

Parameters:

  • mask set bit at X clears the interrupt of hart X

function snrt_int_clr_mcip

inline void snrt_int_clr_mcip()

function snrt_int_set_mcip

inline void snrt_int_set_mcip()

Source code

// Copyright 2023 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0

inline void snrt_int_cluster_set(uint32_t mask) {
    *(snrt_cluster_clint_set_ptr()) = mask;
}

inline void snrt_int_cluster_clr(uint32_t mask) {
    *(snrt_cluster_clint_clr_ptr()) = mask;
}

inline void snrt_int_clr_mcip() {
    snrt_int_cluster_clr(1 << snrt_cluster_core_idx());
}

inline void snrt_int_set_mcip() {
    snrt_int_cluster_set(1 << snrt_cluster_core_idx());
}

Updated on 2023-06-19 at 09:43:56 +0000