Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231810
b: refs/heads/master
c: 733f31b
h: refs/heads/master
v: v3
  • Loading branch information
Greg Ungerer committed Jan 5, 2011
1 parent 0f2cba6 commit c928a19
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 22 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: 7fc82b655a169039d8a58fde609b5e778573d5ab
refs/heads/master: 733f31b764061d976a60c5ee454632d9562900ea
3 changes: 2 additions & 1 deletion trunk/arch/m68k/include/asm/m5206sim.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#define m5206sim_h
/****************************************************************************/

#define CPU_NAME "COLDFIRE(m5206)"
#define CPU_NAME "COLDFIRE(m5206)"
#define CPU_INSTR_PER_JIFFY 3

/*
* Define the 5206 SIM register set addresses.
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/m68k/include/asm/m520xsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#define m520xsim_h
/****************************************************************************/

#define CPU_NAME "COLDFIRE(m520x)"
#define CPU_NAME "COLDFIRE(m520x)"
#define CPU_INSTR_PER_JIFFY 3

/*
* Define the 520x SIM register set addresses.
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/m68k/include/asm/m523xsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#define m523xsim_h
/****************************************************************************/

#define CPU_NAME "COLDFIRE(m523x)"
#define CPU_NAME "COLDFIRE(m523x)"
#define CPU_INSTR_PER_JIFFY 3

/*
* Define the 523x SIM register set addresses.
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/m68k/include/asm/m5249sim.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#define m5249sim_h
/****************************************************************************/

#define CPU_NAME "COLDFIRE(m5249)"
#define CPU_NAME "COLDFIRE(m5249)"
#define CPU_INSTR_PER_JIFFY 3

/*
* Define the 5249 SIM register set addresses.
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/m68k/include/asm/m5272sim.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#define m5272sim_h
/****************************************************************************/

#define CPU_NAME "COLDFIRE(m5272)"
#define CPU_NAME "COLDFIRE(m5272)"
#define CPU_INSTR_PER_JIFFY 3

/*
* Define the 5272 SIM register set addresses.
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/m68k/include/asm/m527xsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#define m527xsim_h
/****************************************************************************/

#define CPU_NAME "COLDFIRE(m527x)"
#define CPU_NAME "COLDFIRE(m527x)"
#define CPU_INSTR_PER_JIFFY 3


/*
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/m68k/include/asm/m528xsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#define m528xsim_h
/****************************************************************************/

#define CPU_NAME "COLDFIRE(m528x)"
#define CPU_NAME "COLDFIRE(m528x)"
#define CPU_INSTR_PER_JIFFY 3

/*
* Define the 5280/5282 SIM register set addresses.
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/m68k/include/asm/m5307sim.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
#define m5307sim_h
/****************************************************************************/

#define CPU_NAME "COLDFIRE(m5307)"
#define CPU_NAME "COLDFIRE(m5307)"
#define CPU_INSTR_PER_JIFFY 3

/*
* Define the 5307 SIM register set addresses.
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/m68k/include/asm/m532xsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#define m532xsim_h
/****************************************************************************/

#define CPU_NAME "COLDFIRE(m532x)"
#define CPU_NAME "COLDFIRE(m532x)"
#define CPU_INSTR_PER_JIFFY 3

#define MCF_REG32(x) (*(volatile unsigned long *)(x))
#define MCF_REG16(x) (*(volatile unsigned short *)(x))
Expand Down
3 changes: 2 additions & 1 deletion trunk/arch/m68k/include/asm/m5407sim.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
#define m5407sim_h
/****************************************************************************/

#define CPU_NAME "COLDFIRE(m5407)"
#define CPU_NAME "COLDFIRE(m5407)"
#define CPU_INSTR_PER_JIFFY 3

/*
* Define the 5407 SIM register set addresses.
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/m68k/include/asm/m54xxsim.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
#ifndef m54xxsim_h
#define m54xxsim_h

#define CPU_NAME "COLDFIRE(m54xx)"
#define CPU_NAME "COLDFIRE(m54xx)"
#define CPU_INSTR_PER_JIFFY 2

#define MCFINT_VECBASE 64
#define MCFINT_VECBASE 64

/*
* Interrupt Controller Registers
Expand Down
20 changes: 11 additions & 9 deletions trunk/arch/m68knommu/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,20 @@ void (*mach_power_off)(void);
#ifdef CONFIG_M68360
#define CPU_NAME "MC68360"
#endif
/*
* The ColdFire CPU names are defined in their headers.
*/
#ifndef CPU_NAME
#define CPU_NAME "UNKNOWN"
#endif

/*
* Different cores have different instruction execution timings.
* The old/traditional 68000 cores are basically all the same, at 16.
* The ColdFire cores vary a little, their values are defined in their
* headers. We default to the standard 68000 value here.
*/
#ifndef CPU_INSTR_PER_JIFFY
#define CPU_INSTR_PER_JIFFY 16
#endif

extern int _stext, _etext, _sdata, _edata, _sbss, _ebss, _end;
extern int _ramstart, _ramend;

Expand Down Expand Up @@ -273,12 +280,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
cpu = CPU_NAME;
mmu = "none";
fpu = "none";

#ifdef CONFIG_COLDFIRE
clockfreq = (loops_per_jiffy * HZ) * 3;
#else
clockfreq = (loops_per_jiffy * HZ) * 16;
#endif
clockfreq = (loops_per_jiffy * HZ) * CPU_INSTR_PER_JIFFY;

seq_printf(m, "CPU:\t\t%s\n"
"MMU:\t\t%s\n"
Expand Down

0 comments on commit c928a19

Please sign in to comment.