40 lines
900 B
C
40 lines
900 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_ARM_GLOBAL_H
|
|
#define KERNEL_ARCH_ARM_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;
|
|
|
|
#endif
|