Skip to content

Commit

Permalink
MIPS: Set ELF AT_PLATFORM string for Loongson2 processors
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Millan <[email protected]>
Acked-by: David Daney <[email protected]>
Signed-off-by: Kevin Cernekee <[email protected]>
Cc: David Daney <[email protected]>
Cc: wu zhangjin <[email protected]>
Cc: Aurelien Jarno <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/2302/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
robertmillan authored and ralfbaechle committed May 19, 2011
1 parent 06785df commit 5aac1e8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/mips/kernel/cpu-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,16 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu)
case PRID_IMP_LOONGSON2:
c->cputype = CPU_LOONGSON2;
__cpu_name[cpu] = "ICT Loongson-2";

switch (c->processor_id & PRID_REV_MASK) {
case PRID_REV_LOONGSON2E:
set_elf_platform(cpu, "loongson2e");
break;
case PRID_REV_LOONGSON2F:
set_elf_platform(cpu, "loongson2f");
break;
}

c->isa_level = MIPS_CPU_ISA_III;
c->options = R4K_OPTS |
MIPS_CPU_FPU | MIPS_CPU_LLSC |
Expand Down

0 comments on commit 5aac1e8

Please sign in to comment.