Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367243
b: refs/heads/master
c: 0359b0e
h: refs/heads/master
i:
  367241: 73032a2
  367239: 7130d46
v: v3
  • Loading branch information
Javi Merino authored and Catalin Marinas committed Mar 20, 2013
1 parent f78c7c3 commit 463f607
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c7aa0021356ee91b96cea51b8b7fadebaba489e
refs/heads/master: 0359b0e2d0bbd28289c38ebe779b5f1c61f8ccc8
4 changes: 4 additions & 0 deletions trunk/arch/arm64/include/asm/cputype.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
#define ARM_CPU_PART_FOUNDATION 0xD000
#define ARM_CPU_PART_CORTEX_A57 0xD070

#ifndef __ASSEMBLY__

/*
* The CPU ID never changes at run time, so we might as well tell the
* compiler that it's constant. Use this function to read the CPU ID
Expand Down Expand Up @@ -72,4 +74,6 @@ static inline u32 __attribute_const__ read_cpuid_cachetype(void)
return read_cpuid(ID_CTR_EL0);
}

#endif /* __ASSEMBLY__ */

#endif
4 changes: 3 additions & 1 deletion trunk/arch/arm64/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <asm/assembler.h>
#include <asm/ptrace.h>
#include <asm/asm-offsets.h>
#include <asm/cputype.h>
#include <asm/memory.h>
#include <asm/thread_info.h>
#include <asm/pgtable-hwdef.h>
Expand Down Expand Up @@ -229,7 +230,8 @@ ENTRY(secondary_holding_pen)
bl __calc_phys_offset // x24=phys offset
bl el2_setup // Drop to EL1
mrs x0, mpidr_el1
and x0, x0, #15 // CPU number
ldr x1, =MPIDR_HWID_BITMASK
and x0, x0, x1
adr x1, 1b
ldp x2, x3, [x1]
sub x1, x1, x2
Expand Down

0 comments on commit 463f607

Please sign in to comment.