arm64: move vector entry macro to assembler.h

This macro is also useful to other bits defining vectors (hypervisor
stub, KVM...).

Move it to a common location.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
Marc Zyngier 2012-10-19 17:37:35 +01:00 committed by Catalin Marinas
parent 9ec218b8f5
commit dc637f1fda
2 changed files with 8 additions and 4 deletions

View File

@ -107,3 +107,11 @@
* Register aliases. * Register aliases.
*/ */
lr .req x30 // link register lr .req x30 // link register
/*
* Vector entry
*/
.macro ventry label
.align 7
b \label
.endm

View File

@ -148,10 +148,6 @@ tsk .req x28 // current thread_info
/* /*
* Exception vectors. * Exception vectors.
*/ */
.macro ventry label
.align 7
b \label
.endm
.align 11 .align 11
ENTRY(vectors) ENTRY(vectors)