Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23999/include/asm-vax
Modified Files:
processor.h
Log Message:
- C99 initializer for INIT_THREAD
Index: processor.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/processor.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- processor.h 24 Aug 2003 12:42:51 -0000 1.8
+++ processor.h 17 Aug 2004 10:40:04 -0000 1.9
@@ -20,17 +20,17 @@
* instruction pointer ("program counter").
*/
#define current_text_addr() ({ void *pc; __asm__("movl $1f,%0\n1:":"=g" (pc)); pc; })
-
+
struct vaxcpu {
- unsigned int sid;
- int cpuid;
- int mm_enabled; /* have we enabled paging yet? */
- unsigned int *pfnmap; /* address of pfn bitmap */
- unsigned int p_memsize; /* size in bytes of physical memory */
- unsigned int n_pfn;
- unsigned int *scb; /* address of the scb */
- unsigned int *rpb; /* address of the rpb */
+ unsigned int sid;
+ int cpuid;
+ int mm_enabled; /* have we enabled paging yet? */
+ unsigned int *pfnmap; /* address of pfn bitmap */
+ unsigned int p_memsize; /* size in bytes of physical memory */
+ unsigned int n_pfn;
+ unsigned int *scb; /* address of the scb */
+ unsigned int *rpb; /* address of the rpb */
};
extern struct vaxcpu vax_cpu;
@@ -48,11 +48,14 @@
* more per-thread data, we can add it.
*/
struct thread_struct {
- struct vax_pcb pcb;
+ struct vax_pcb pcb;
};
-/* At present only the pcb is here. */
-#define INIT_THREAD { INIT_PCB }
+/*
+ * This is the initializer for thread_struct (as declared above). At
+ * present only the pcb is here.
+ */
+#define INIT_THREAD { .pcb = INIT_PCB, }
// #include <asm/ptrace.h>
@@ -71,7 +74,7 @@
}
/* Prepare to copy thread state - unlazy all lazy status */
-#define prepare_to_copy(tsk) do { } while (0)
+#define prepare_to_copy(tsk) do { } while (0)
extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
@@ -94,7 +97,7 @@
* in the compilation (linux/sched.h includes this file before
* defining task_struct)
*/
-#define thread_saved_pc(tsk) tsk->thread.pcb.pc
+#define thread_saved_pc(tsk) tsk->thread.pcb.pc
unsigned long get_wchan(struct task_struct *p);
@@ -108,7 +111,6 @@
#define KSTK_EIP(tsk) (0xdeadbeef)
#define KSTK_ESP(tsk) (0xdeadbeef)
-#define cpu_relax() do { } while (0)
-
+#define cpu_relax() do { } while (0)
#endif /* _VAX_PROCESSOR_H */
|