Added some more CPU functions.
Added an alternative page_table_entry::SecondaryHash() signature. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4988 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -22,10 +22,16 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern uint32 get_sdr1(void);
|
extern uint32 get_sdr1(void);
|
||||||
extern uint32 set_sdr1(uint32 value);
|
extern void set_sdr1(uint32 value);
|
||||||
|
extern uint32 get_sr(void *virtualAddress);
|
||||||
|
extern void set_sr(void *virtualAddress, uint32 value);
|
||||||
|
extern uint32 get_msr(void);
|
||||||
|
extern uint32 set_msr(uint32 value);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define eieio() asm volatile("eieio")
|
||||||
|
|
||||||
#endif /* _KERNEL_ARCH_PPC_CPU_H */
|
#endif /* _KERNEL_ARCH_PPC_CPU_H */
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ struct page_table_entry {
|
|||||||
|
|
||||||
static uint32 PrimaryHash(uint32 virtualSegmentID, uint32 virtualAddress);
|
static uint32 PrimaryHash(uint32 virtualSegmentID, uint32 virtualAddress);
|
||||||
static uint32 SecondaryHash(uint32 virtualSegmentID, uint32 virtualAddress);
|
static uint32 SecondaryHash(uint32 virtualSegmentID, uint32 virtualAddress);
|
||||||
|
static uint32 SecondaryHash(uint32 primaryHash);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct page_table_entry_group {
|
struct page_table_entry_group {
|
||||||
|
|||||||
Reference in New Issue
Block a user