- some cpu and platform fixes.

- we'll just use decimal chip number (68030, ...) to identify cpu, fpu, and mmu for simplicity.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26041 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2008-06-20 02:11:45 +00:00
parent 7d5d19dfab
commit a3dc7ef06c
5 changed files with 75 additions and 51 deletions
+8 -3
View File
@@ -357,9 +357,9 @@ struct m68k_cpu_ops {
void (*flush_insn_pipeline)(void);
void (*flush_atc_all)(void);
void (*flush_atc_user)(void);
void (*flush_atc_addr)(void *addr);
void (*flush_dcache)(void *address, size_t len);
void (*flush_icache)(void *address, size_t len);
void (*flush_atc_addr)(addr_t addr);
void (*flush_dcache)(addr_t address, size_t len);
void (*flush_icache)(addr_t address, size_t len);
void (*idle)(void);
};
@@ -376,6 +376,10 @@ extern struct m68k_cpu_ops cpu_ops;
#define tlbie(addr) asm volatile("tlbie %0" :: "r" (addr))
#endif
#if 0
// XXX: not used: we just use decimal chip number, like 68030
// m68k processor version.
enum m68k_processor_version {
/* those two we don't support */
@@ -410,6 +414,7 @@ enum m68k_mmu_version {
MMU_68060 = 0x0600,
MMU_MASK = 0x0F00
};
#endif
extern int arch_cpu_type;
extern int arch_fpu_type;
@@ -15,9 +15,9 @@
// kernel args
typedef struct {
int cpu_type;
int fpu_type;
int mmu_type;
int cpu_type; // decimal: 68030, ...
int fpu_type; // decimal: 68030, ...
int mmu_type; // decimal: 68030, ...
int platform;
bool has_lpstop; //XXX: use bit flags
// architecture specific