forked from KolibriOS/kolibrios
a03882245a
git-svn-id: svn://kolibrios.org@8327 a494cfbc-eb01-0410-851d-a64ba20cac60
28 lines
540 B
C
Executable File
28 lines
540 B
C
Executable File
#ifndef _CP15_H_
|
|
#define _CP15_H_
|
|
|
|
|
|
#include "types.h"
|
|
#include "CPU.h"
|
|
#include "MMU.h"
|
|
|
|
typedef struct{
|
|
|
|
ArmCpu* cpu;
|
|
ArmMmu* mmu;
|
|
|
|
UInt32 control;
|
|
UInt32 ttb;
|
|
UInt32 FSR; //fault sttaus register
|
|
UInt32 FAR; //fault address register
|
|
UInt32 CPAR; //coprocessor access register
|
|
UInt32 ACP; //auxilary control reg for xscale
|
|
}ArmCP15;
|
|
|
|
void cp15Init(ArmCP15* cp15, ArmCpu* cpu, ArmMmu* mmu);
|
|
void cp15Deinit(ArmCP15* cp15);
|
|
void cp15SetFaultStatus(ArmCP15* cp15, UInt32 addr, UInt8 faultStatus);
|
|
|
|
#endif
|
|
|