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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [include/] [l4/] [arch/] [arm/] [asm-macros.S.ARM] - Rev 6

Compare with Previous | Blame | View Log

/*
 * Copyright (C) 2010 B Labs Ltd.
 *
 * Common assembler macros
 *
 * Prem Mallappa, Bahadir Balban
 */
#ifndef __ASM_MACROS_S__
#define __ASM_MACROS_S__

        .macro get_cpuid cpuid
                mrc  p15, 0, \cpuid, c0, c0, 5  @ Read MPIDR
                and \cpuid, \cpuid, #0xF        @ Mask lower cpuid bits
        .endm

#endif /* __ASM_MACROS_S__ */

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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