mirror of
https://review.haiku-os.org/haiku
synced 2025-01-20 13:31:28 +01:00
ecc5968ab8
Added an alternative page_table_entry::SecondaryHash() signature. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4988 a95241bf-73f2-0310-859d-f6bbb57e9c96
38 lines
749 B
C
38 lines
749 B
C
/*
|
|
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
*/
|
|
#ifndef _KERNEL_ARCH_PPC_CPU_H
|
|
#define _KERNEL_ARCH_PPC_CPU_H
|
|
|
|
#include <arch/ppc/thread_struct.h>
|
|
|
|
#define PAGE_SIZE 4096
|
|
|
|
#define _BIG_ENDIAN 1
|
|
#define _LITTLE_ENDIAN 0
|
|
|
|
#define ATOMIC64_FUNCS_ARE_SYSCALLS 1
|
|
|
|
struct iframe {
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern uint32 get_sdr1(void);
|
|
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 */
|