Replaced arch/thread_struct.h with arch/thread_types.h, and renamed

arch/*/thread_struct.h to arch_thread_types.h, so that it can directly
be included without having to specify the architecure.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15616 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-12-20 16:07:27 +00:00
parent 04928d2c97
commit 35cf51550c
5 changed files with 17 additions and 37 deletions

View File

@ -2,8 +2,8 @@
** Copyright 2001, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#ifndef KERNEL_ARCH_PPC_THREAD_STRUCT_H
#define KERNEL_ARCH_PPC_THREAD_STRUCT_H
#ifndef KERNEL_ARCH_PPC_THREAD_TYPES_H
#define KERNEL_ARCH_PPC_THREAD_TYPES_H
// architecture specific thread info
struct arch_thread {
@ -18,4 +18,4 @@ struct arch_fork_arg {
// nothing here yet
};
#endif /* KERNEL_ARCH_PPC_THREAD_STRUCT_H */
#endif /* KERNEL_ARCH_PPC_THREAD_TYPES_H */

View File

@ -1,30 +0,0 @@
/*
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#ifndef KERNEL_ARCH_THREAD_STRUCT_H
#define KERNEL_ARCH_THREAD_STRUCT_H
#ifdef ARCH_x86
#include <arch/x86/thread_struct.h>
#endif
#ifdef ARCH_sh4
#include <arch/sh4/thread_struct.h>
#endif
#ifdef ARCH_alpha
#include <arch/alpha/thread_struct.h>
#endif
#ifdef ARCH_sparc64
#include <arch/sparc64/thread_struct.h>
#endif
#ifdef ARCH_mips
#include <arch/mips/thread_struct.h>
#endif
#ifdef ARCH_ppc
#include <arch/ppc/thread_struct.h>
#endif
#ifdef ARCH_m68k
#include <arch/m68k/thread_struct.h>
#endif
#endif /* KERNEL_ARCH_THREAD_STRUCT_H */

View File

@ -0,0 +1,10 @@
/*
* Copyright 2005, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef KERNEL_ARCH_THREAD_TYPES_H
#define KERNEL_ARCH_THREAD_TYPES_H
#include <arch_thread_types.h>
#endif /* KERNEL_ARCH_THREAD_TYPES_H */

View File

@ -5,8 +5,8 @@
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
* Distributed under the terms of the NewOS License.
*/
#ifndef _KERNEL_ARCH_x86_THREAD_STRUCT_H
#define _KERNEL_ARCH_x86_THREAD_STRUCT_H
#ifndef _KERNEL_ARCH_x86_THREAD_TYPES_H
#define _KERNEL_ARCH_x86_THREAD_TYPES_H
#include <arch_cpu.h>
@ -47,4 +47,4 @@ struct arch_fork_arg {
struct iframe iframe;
};
#endif /* _KERNEL_ARCH_x86_THREAD_STRUCT_H */
#endif /* _KERNEL_ARCH_x86_THREAD_TYPES_H */

View File

@ -14,7 +14,7 @@
#include <timer.h>
#include <user_debugger.h>
#include <util/list.h>
#include <arch/thread_struct.h>
#include <arch/thread_types.h>
extern spinlock thread_spinlock;