2013-12-17 18:10:02 +01:00
|
|
|
/*
|
|
|
|
* \brief Macros that are used by multiple assembly files
|
|
|
|
* \author Martin Stein
|
|
|
|
* \date 2014-01-13
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Genode Labs GmbH
|
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
2014-07-09 12:03:17 +02:00
|
|
|
/* core includes */
|
|
|
|
.include "spec/arm/macros_support.s"
|
2013-12-17 18:10:02 +01:00
|
|
|
|
|
|
|
/**
|
2014-10-10 16:13:52 +02:00
|
|
|
* Load kernel name of the executing CPU into register 'r'
|
2013-12-17 18:10:02 +01:00
|
|
|
*/
|
2014-10-10 16:13:52 +02:00
|
|
|
.macro _get_cpu_id r
|
2013-12-17 18:10:02 +01:00
|
|
|
|
|
|
|
/* no multiprocessing supported for ARMv6 */
|
2014-10-10 16:13:52 +02:00
|
|
|
mov \r, #0
|
2013-12-17 18:10:02 +01:00
|
|
|
.endm
|