]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/crtn/include/l4/cpucheck.h
update
[l4.git] / l4 / pkg / crtn / include / l4 / cpucheck.h
1 /*
2  * (c) 2008-2009 Alexander Warg <warg@os.inf.tu-dresden.de>
3  *     economic rights: Technische Universität Dresden (Germany)
4  * This file is part of TUD:OS and distributed under the terms of the
5  * GNU Lesser General Public License 2.1.
6  * Please see the COPYING-LGPL-2.1 file for details.
7  */
8 #ifndef __CRTX_CPUCHECK_H
9 #define __CRTX_CPUCHECK_H
10
11 #ifndef __ASSEMBLER__
12 #define CPU_MODEL(model)        ".section\t.cpucheck,\"a\",@nobits\n\t" \
13                                 /*"__cpu_model_" #model ":\n\t" */      \
14                                 ".comm __cpu_model_" #model ", 4\n\t"   \
15                                 ".text\n\t"
16
17 #if CPU==486
18
19   asm(CPU_MODEL(4));
20
21 #elif CPU==586
22
23   asm(CPU_MODEL(5));
24
25 #elif CPU==686
26   
27   asm(CPU_MODEL(6));
28
29 #endif
30
31 #undef CPU_SECTION
32
33 #endif /* __ASSEMBLER__ */
34
35 #endif /* __CRTX_CPUCHECK_H */
36