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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [include/] [l4/] [arch/] [arm/] [asm-macros.S.ARM] - Diff between revs 2 and 6

Show entire file | Details | Blame | View Log

Rev 2 Rev 6
?rev1line?
?rev2line?
 
/*
 
 * 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__ */

powered by: WebSVN 2.1.0

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