aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/arm/arm32/proc-v7.S
blob: 2c8cb9cdd774b2b00dbd5533804b5eb284911fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
 * xen/arch/arm/proc-v7.S
 *
 * rename from xen/arch/arm/proc-ca15.S
 * arm v7 specific initializations
 *
 * Copyright (c) 2011 Citrix Systems.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <asm/asm_defns.h>
#include <asm/arm32/processor.h>

v7_init:
        /* Set up the SMP bit in ACTLR */
        mrc   CP32(r0, ACTLR)
        orr   r0, r0, #(ACTLR_V7_SMP) /* enable SMP bit */
        mcr   CP32(r0, ACTLR)
        mov   pc, lr

        .section ".init.proc.info", #alloc, #execinstr
        .type __v7_ca15mp_proc_info, #object
__v7_ca15mp_proc_info:
        .long 0x410FC0F0             /* Cortex-A15 */
        .long 0xFF0FFFF0             /* Mask */
        .long v7_init
        .size __v7_ca15mp_proc_info, . - __v7_ca15mp_proc_info

        .section ".init.proc.info", #alloc, #execinstr
        .type __v7_ca7mp_proc_info, #object
__v7_ca7mp_proc_info:
        .long 0x410FC070             /* Cortex-A7 */
        .long 0xFF0FFFF0             /* Mask */
        .long v7_init
        .size __v7_ca7mp_proc_info, . - __v7_ca7mp_proc_info

        .section ".init.proc.info", #alloc, #execinstr
        .type __v7_brahma15mp_proc_info, #object
__v7_brahma15mp_proc_info:
        .long 0x420F00F2             /* Broadcom Brahma-B15 */
        .long 0xFF0FFFFF             /* Mask */
        .long v7_init
        .size __v7_brahma15mp_proc_info, . - __v7_brahma15mp_proc_info

/*
 * Local variables:
 * mode: ASM
 * indent-tabs-mode: nil
 * End:
 */