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:
+3
-3
@@ -2,8 +2,8 @@
|
|||||||
** Copyright 2001, Travis Geiselbrecht. All rights reserved.
|
** Copyright 2001, Travis Geiselbrecht. All rights reserved.
|
||||||
** Distributed under the terms of the NewOS License.
|
** Distributed under the terms of the NewOS License.
|
||||||
*/
|
*/
|
||||||
#ifndef KERNEL_ARCH_PPC_THREAD_STRUCT_H
|
#ifndef KERNEL_ARCH_PPC_THREAD_TYPES_H
|
||||||
#define KERNEL_ARCH_PPC_THREAD_STRUCT_H
|
#define KERNEL_ARCH_PPC_THREAD_TYPES_H
|
||||||
|
|
||||||
// architecture specific thread info
|
// architecture specific thread info
|
||||||
struct arch_thread {
|
struct arch_thread {
|
||||||
@@ -18,4 +18,4 @@ struct arch_fork_arg {
|
|||||||
// nothing here yet
|
// nothing here yet
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* KERNEL_ARCH_PPC_THREAD_STRUCT_H */
|
#endif /* KERNEL_ARCH_PPC_THREAD_TYPES_H */
|
||||||
@@ -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 */
|
|
||||||
@@ -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 */
|
||||||
+3
-3
@@ -5,8 +5,8 @@
|
|||||||
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
||||||
* Distributed under the terms of the NewOS License.
|
* Distributed under the terms of the NewOS License.
|
||||||
*/
|
*/
|
||||||
#ifndef _KERNEL_ARCH_x86_THREAD_STRUCT_H
|
#ifndef _KERNEL_ARCH_x86_THREAD_TYPES_H
|
||||||
#define _KERNEL_ARCH_x86_THREAD_STRUCT_H
|
#define _KERNEL_ARCH_x86_THREAD_TYPES_H
|
||||||
|
|
||||||
|
|
||||||
#include <arch_cpu.h>
|
#include <arch_cpu.h>
|
||||||
@@ -47,4 +47,4 @@ struct arch_fork_arg {
|
|||||||
struct iframe iframe;
|
struct iframe iframe;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _KERNEL_ARCH_x86_THREAD_STRUCT_H */
|
#endif /* _KERNEL_ARCH_x86_THREAD_TYPES_H */
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
#include <timer.h>
|
#include <timer.h>
|
||||||
#include <user_debugger.h>
|
#include <user_debugger.h>
|
||||||
#include <util/list.h>
|
#include <util/list.h>
|
||||||
#include <arch/thread_struct.h>
|
#include <arch/thread_types.h>
|
||||||
|
|
||||||
|
|
||||||
extern spinlock thread_spinlock;
|
extern spinlock thread_spinlock;
|
||||||
|
|||||||
Reference in New Issue
Block a user