Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102388
b: refs/heads/master
c: edfd92f
h: refs/heads/master
v: v3
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed Jul 21, 2008
1 parent 06c81c5 commit db254a0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 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: 97d26e73d729c8d967bc5eb9086321956c444dd4
refs/heads/master: edfd92f67eec1bdd905dd7841416eaf945a5b92f
6 changes: 6 additions & 0 deletions trunk/arch/m68k/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <asm/bootinfo.h>
#include <asm/setup.h>
#include <asm/fpu.h>
#include <asm/irq.h>
#include <asm/io.h>
#include <asm/machdep.h>
Expand All @@ -40,6 +41,11 @@
#include <asm/dvma.h>
#endif

#if !FPSTATESIZE || !NR_IRQS
#warning No CPU/platform type selected, your kernel will not work!
#warning Are you building an allnoconfig kernel?
#endif

unsigned long m68k_machtype;
EXPORT_SYMBOL(m68k_machtype);
unsigned long m68k_cputype;
Expand Down
10 changes: 5 additions & 5 deletions trunk/include/asm-m68k/fpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
*/

#if defined(CONFIG_M68020) || defined(CONFIG_M68030)
#define FPSTATESIZE (216/sizeof(unsigned char))
#define FPSTATESIZE (216)
#elif defined(CONFIG_M68040)
#define FPSTATESIZE (96/sizeof(unsigned char))
#define FPSTATESIZE (96)
#elif defined(CONFIG_M68KFPU_EMU)
#define FPSTATESIZE (28/sizeof(unsigned char))
#define FPSTATESIZE (28)
#elif defined(CONFIG_M68060)
#define FPSTATESIZE (12/sizeof(unsigned char))
#define FPSTATESIZE (12)
#else
#define FPSTATESIZE error no_cpu_type_configured
#define FPSTATESIZE (0)
#endif

#endif /* __M68K_FPU_H */
2 changes: 1 addition & 1 deletion trunk/include/asm-m68k/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#elif defined(CONFIG_HP300)
#define NR_IRQS 8
#else
#error unknown nr of irqs
#define NR_IRQS 0
#endif

/*
Expand Down
8 changes: 4 additions & 4 deletions trunk/include/asm-m68k/tlbflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static inline void flush_tlb_kernel_page(void *addr)
".chip 68k"
: : "a" (addr));
set_fs(old_fs);
} else
} else if (CPU_IS_020_OR_030)
__asm__ __volatile__("pflush #4,#4,(%0)" : : "a" (addr));
}

Expand All @@ -29,7 +29,7 @@ static inline void __flush_tlb(void)
__asm__ __volatile__(".chip 68040\n\t"
"pflushan\n\t"
".chip 68k");
else
else if (CPU_IS_020_OR_030)
__asm__ __volatile__("pflush #0,#4");
}

Expand All @@ -45,7 +45,7 @@ static inline void __flush_tlb_one(unsigned long addr)
{
if (CPU_IS_040_OR_060)
__flush_tlb040_one(addr);
else
else if (CPU_IS_020_OR_030)
__asm__ __volatile__("pflush #0,#4,(%0)" : : "a" (addr));
}

Expand All @@ -60,7 +60,7 @@ static inline void flush_tlb_all(void)
__asm__ __volatile__(".chip 68040\n\t"
"pflusha\n\t"
".chip 68k");
else
else if (CPU_IS_020_OR_030)
__asm__ __volatile__("pflusha");
}

Expand Down

0 comments on commit db254a0

Please sign in to comment.