From e03f6fcfe2d7bfa90fdd36afb8ac39cbb259a671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 11 Sep 2004 11:04:23 +0000 Subject: [PATCH] Added the arch_config.h file for PPC, moved some stuff out of arch_cpu.h. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8913 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/arch/ppc/arch_config.h | 15 +++++++++++++++ headers/private/kernel/arch/ppc/arch_cpu.h | 12 +++--------- 2 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 headers/private/kernel/arch/ppc/arch_config.h diff --git a/headers/private/kernel/arch/ppc/arch_config.h b/headers/private/kernel/arch/ppc/arch_config.h new file mode 100644 index 0000000000..7ae6e97c43 --- /dev/null +++ b/headers/private/kernel/arch/ppc/arch_config.h @@ -0,0 +1,15 @@ +/* +** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the Haiku License. +*/ +#ifndef _KERNEL_ARCH_PPC_CONFIG_H +#define _KERNEL_ARCH_PPC_CONFIG_H + + +#define FUNCTION_CALL_PARAMETER_ALIGNMENT_TYPE uint32 + +//#define ATOMIC_FUNCS_ARE_SYSCALLS +#define ATOMIC64_FUNCS_ARE_SYSCALLS + + +#endif /* _KERNEL_ARCH_PPC_CONFIG_H */ diff --git a/headers/private/kernel/arch/ppc/arch_cpu.h b/headers/private/kernel/arch/ppc/arch_cpu.h index d8ec8f5ee5..e2c15ff345 100644 --- a/headers/private/kernel/arch/ppc/arch_cpu.h +++ b/headers/private/kernel/arch/ppc/arch_cpu.h @@ -1,6 +1,6 @@ /* -** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the OpenBeOS License. +** Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the Haiku License. */ #ifndef _KERNEL_ARCH_PPC_CPU_H #define _KERNEL_ARCH_PPC_CPU_H @@ -9,15 +9,9 @@ #include #include + #define PAGE_SIZE 4096 -#define _BIG_ENDIAN 1 -#define _LITTLE_ENDIAN 0 - -#define FUNCTION_CALL_PARAMETER_ALIGNMENT_TYPE uint64 - -#define ATOMIC64_FUNCS_ARE_SYSCALLS 1 - struct iframe { uint32 srr0; uint32 srr1;