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
This commit is contained in:
Axel Dörfler 2004-09-11 11:04:23 +00:00
parent fc69f2f4f9
commit e03f6fcfe2
2 changed files with 18 additions and 9 deletions

View File

@ -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 */

View File

@ -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 <arch/ppc/thread_struct.h>
#include <kernel.h>
#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;