aos/kernel/include/arch/aarch64/global.h
Daniel Schwyn 6d444bf552 Main handout
Signed-off-by: Daniel Schwyn <daniel.schwyn@inf.ethz.ch>
2022-03-03 14:57:51 +01:00

43 lines
957 B
C

/**
* \file
* \brief A struct for all shared data between the kernels
*/
/*
* Copyright (c) 2008, 2010 ETH Zurich
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
*/
#ifndef KERNEL_ARCH_AARCH64_GLOBAL_H
#define KERNEL_ARCH_AARCH64_GLOBAL_H
#include <barrelfish_kpi/spinlocks_arch.h>
#include <barrelfish_kpi/types.h>
/**
* \brief Struct passed to app_cores during boot.
* Contains information that the bsp_kernel wants to pass to the app_kernels.
*/
struct global {
/// Shared locks between the kernels
struct {
spinlock_t print; ///< Lock for printing
} locks;
uint32_t tickspersec;
genpaddr_t notify[MAX_COREID];
};
extern struct global *global;
// XXX: check this
#define GLOBAL_VBASE 0x21000
#endif