OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [include/] [l4/] [arch/] [arm/] [asm-macros.S.ARM] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*
2
 * Copyright (C) 2010 B Labs Ltd.
3
 *
4
 * Common assembler macros
5
 *
6
 * Prem Mallappa, Bahadir Balban
7
 */
8
#ifndef __ASM_MACROS_S__
9
#define __ASM_MACROS_S__
10
 
11
        .macro get_cpuid cpuid
12
                mrc  p15, 0, \cpuid, c0, c0, 5  @ Read MPIDR
13
                and \cpuid, \cpuid, #0xF        @ Mask lower cpuid bits
14
        .endm
15
 
16
#endif /* __ASM_MACROS_S__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.