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:
Axel Dörfler 2003-10-11 18:57:35 +00:00
parent 16ce773582
commit ecc5968ab8
2 changed files with 8 additions and 1 deletions

View File

@ -22,10 +22,16 @@ extern "C" {
#endif
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
}
#endif
#define eieio() asm volatile("eieio")
#endif /* _KERNEL_ARCH_PPC_CPU_H */

View File

@ -79,6 +79,7 @@ struct page_table_entry {
static uint32 PrimaryHash(uint32 virtualSegmentID, uint32 virtualAddress);
static uint32 SecondaryHash(uint32 virtualSegmentID, uint32 virtualAddress);
static uint32 SecondaryHash(uint32 primaryHash);
};
struct page_table_entry_group {