patch-2.4.22 linux-2.4.22/include/asm-arm/processor.h
Next file: linux-2.4.22/include/asm-arm/procinfo.h
Previous file: linux-2.4.22/include/asm-arm/proc-fns.h
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
2003-08-25 04:44:43.000000000 -0700
- Orig file:
linux-2.4.21/include/asm-arm/processor.h
- Orig date:
2003-06-13 07:51:38.000000000 -0700
diff -urN linux-2.4.21/include/asm-arm/processor.h linux-2.4.22/include/asm-arm/processor.h
@@ -1,7 +1,7 @@
/*
* linux/include/asm-arm/processor.h
*
- * Copyright (C) 1995 Russell King
+ * Copyright (C) 1995-2002 Russell King
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -44,13 +44,21 @@
#include <asm/ptrace.h>
#include <asm/arch/memory.h>
#include <asm/proc/processor.h>
+#include <asm/types.h>
+
+union debug_insn {
+ u32 arm;
+ u16 thumb;
+};
+
+struct debug_entry {
+ u32 address;
+ union debug_insn insn;
+};
struct debug_info {
- int nsaved;
- struct {
- unsigned long address;
- unsigned long insn;
- } bp[2];
+ int nsaved;
+ struct debug_entry bp[2];
};
struct thread_struct {
@@ -81,7 +89,7 @@
return t->save ? pc_pointer(t->save->pc) : 0;
}
-static inline unsigned long get_css_fp(struct thread_struct *t)
+static inline unsigned long thread_saved_fp(struct thread_struct *t)
{
return t->save ? t->save->fp : 0;
}
@@ -112,7 +120,7 @@
#define init_task (init_task_union.task)
#define init_stack (init_task_union.stack)
-#define cpu_relax() do { } while (0)
+#define cpu_relax() barrier()
/*
* Create a new kernel thread
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)