armv7-m (heteropanda) builds.
[barrelfish] / include / arch / arm / barrelfish / cpu_arch.h
1 /**
2  * \file
3  * \brief Architecture specific CPU bits.
4  */
5
6 /*
7  * Copyright (c) 2010, 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, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
13  */
14
15 #ifndef ARM_BARRELFISH_CPU_H
16 #define ARM_BARRELFISH_CPU_H
17
18 // XXX: placeholder; there's definitely more than one arm in existence!
19 #ifdef __ARM_ARCH_7A__
20 #define CURRENT_CPU_TYPE CPU_ARM7
21 #elif __ARM_ARCH_7M__
22 #define CURRENT_CPU_TYPE CPU_ARM7
23 #elif __ARM_ARCH_5__
24 #define CURRENT_CPU_TYPE CPU_ARM5
25 #elif __ARM_ARCH_8A__
26 #define CURRENT_CPU_TYPE CPU_ARM8
27 #else
28 #error "must define CURRENT_CPU_TYPE"
29 #endif
30
31 #endif