Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/include Avoid nesting structure declaration...
details: https://anonhg.NetBSD.org/src/rev/c961cf056462
branches: trunk
changeset: 509267:c961cf056462
user: martin <martin%NetBSD.org@localhost>
date: Mon Apr 30 15:30:39 2001 +0000
description:
Avoid nesting structure declarations, where the nested structur is used at
the global level later. Besides stylistic matters, this actually breaks C++
programs (indirectly) using this header.
diffstat:
sys/arch/powerpc/include/pcb.h | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 4539759596b8 -r c961cf056462 sys/arch/powerpc/include/pcb.h
--- a/sys/arch/powerpc/include/pcb.h Mon Apr 30 15:20:07 2001 +0000
+++ b/sys/arch/powerpc/include/pcb.h Mon Apr 30 15:30:39 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcb.h,v 1.7 2001/03/22 04:11:46 tsubai Exp $ */
+/* $NetBSD: pcb.h,v 1.8 2001/04/30 15:30:39 martin Exp $ */
/*-
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -36,6 +36,10 @@
#include <powerpc/reg.h>
typedef int faultbuf[23];
+struct fpu {
+ double fpr[32];
+ double fpscr; /* FPSCR stored as double for easier access */
+};
struct pcb {
struct pmap *pcb_pm; /* pmap of our vmspace */
@@ -45,10 +49,7 @@
faultbuf *pcb_onfault; /* For use during copyin/copyout */
int pcb_flags;
#define PCB_FPU 1 /* Process had FPU initialized */
- struct fpu {
- double fpr[32];
- double fpscr; /* FPSCR stored as double for easier access */
- } pcb_fpu; /* Floating point processor */
+ struct fpu pcb_fpu; /* Floating point processor */
struct cpu_info *pcb_fpcpu; /* CPU with our FP state */
struct vreg *pcb_vr;
};
Home |
Main Index |
Thread Index |
Old Index