1/** 2 * \file 3 * \brief A struct for all shared data between the kernels 4 */ 5 6/* 7 * Copyright (c) 2008,2010,2016 ETH Zurich 8 * All rights reserved. 9 * 10 * This file is distributed under the terms in the attached LICENSE file. 11 * If you do not find this file, copies can be found by writing to: 12 * ETH Zurich D-INFK, Universitaetstr 6, CH-8092 Zurich. Attn: Systems Group. 13 */ 14 15 16#ifndef KERNEL_ARCH_ARM_GLOBAL_H 17#define KERNEL_ARCH_ARM_GLOBAL_H 18 19#include <barrelfish_kpi/spinlocks_arch.h> 20 21/** 22 * \brief State shared between CPU drivers 23 * By design, this should be empty. A spinlock for kernel debug printing is 24 * our only concession to shared state. 25 */ 26struct global { 27 /// Shared locks between the kernels 28 struct { 29 spinlock_t print; ///< Lock for printing 30 } locks; 31}; 32 33extern struct global *global; 34 35#endif 36