From cae681d98477a34000d6e0df1023d883b2a57338 Mon Sep 17 00:00:00 2001 From: bde Date: Mon, 27 Oct 1997 16:35:34 +0000 Subject: Cleaned up #includes. Ifdefed conditionally used includes. Finished changing indentation of per-statement comments to 40. --- sys/amd64/amd64/exception.S | 33 +++++++++++++++++---------------- sys/amd64/amd64/exception.s | 33 +++++++++++++++++---------------- sys/i386/i386/exception.s | 33 +++++++++++++++++---------------- 3 files changed, 51 insertions(+), 48 deletions(-) diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S index c7ec341..ee356c3 100644 --- a/sys/amd64/amd64/exception.S +++ b/sys/amd64/amd64/exception.S @@ -30,23 +30,27 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: exception.s,v 1.44 1997/09/07 22:03:37 fsmp Exp $ + * $Id: exception.s,v 1.45 1997/10/10 09:43:57 peter Exp $ */ - -#include "npx.h" /* NNPX */ +#include "npx.h" #include "opt_vm86.h" -#include "assym.s" /* system defines */ -#include /* SWI_AST_MASK ... */ -#include /* PSL_I */ -#include /* trap codes */ #include - +#include +#include +#ifdef VM86 +#include +#endif +#include #ifdef SMP -#include /** CPL_AND_CML, REAL_ */ -#else -#define ECPL_LOCK /* make these nops */ +#include /** CPL_AND_CML, REAL_ */ +#endif + +#include "assym.s" + +#ifndef SMP +#define ECPL_LOCK /* make these nops */ #define ECPL_UNLOCK #define ICPL_LOCK #define ICPL_UNLOCK @@ -57,11 +61,8 @@ #define AVCPL_UNLOCK #endif /* SMP */ -#include - - -#define KCSEL 0x08 /* kernel code selector */ -#define KDSEL 0x10 /* kernel data selector */ +#define KCSEL 0x08 /* kernel code selector */ +#define KDSEL 0x10 /* kernel data selector */ #define SEL_RPL_MASK 0x0003 #define TRAPF_CS_OFF (13 * 4) diff --git a/sys/amd64/amd64/exception.s b/sys/amd64/amd64/exception.s index c7ec341..ee356c3 100644 --- a/sys/amd64/amd64/exception.s +++ b/sys/amd64/amd64/exception.s @@ -30,23 +30,27 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: exception.s,v 1.44 1997/09/07 22:03:37 fsmp Exp $ + * $Id: exception.s,v 1.45 1997/10/10 09:43:57 peter Exp $ */ - -#include "npx.h" /* NNPX */ +#include "npx.h" #include "opt_vm86.h" -#include "assym.s" /* system defines */ -#include /* SWI_AST_MASK ... */ -#include /* PSL_I */ -#include /* trap codes */ #include - +#include +#include +#ifdef VM86 +#include +#endif +#include #ifdef SMP -#include /** CPL_AND_CML, REAL_ */ -#else -#define ECPL_LOCK /* make these nops */ +#include /** CPL_AND_CML, REAL_ */ +#endif + +#include "assym.s" + +#ifndef SMP +#define ECPL_LOCK /* make these nops */ #define ECPL_UNLOCK #define ICPL_LOCK #define ICPL_UNLOCK @@ -57,11 +61,8 @@ #define AVCPL_UNLOCK #endif /* SMP */ -#include - - -#define KCSEL 0x08 /* kernel code selector */ -#define KDSEL 0x10 /* kernel data selector */ +#define KCSEL 0x08 /* kernel code selector */ +#define KDSEL 0x10 /* kernel data selector */ #define SEL_RPL_MASK 0x0003 #define TRAPF_CS_OFF (13 * 4) diff --git a/sys/i386/i386/exception.s b/sys/i386/i386/exception.s index c7ec341..ee356c3 100644 --- a/sys/i386/i386/exception.s +++ b/sys/i386/i386/exception.s @@ -30,23 +30,27 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: exception.s,v 1.44 1997/09/07 22:03:37 fsmp Exp $ + * $Id: exception.s,v 1.45 1997/10/10 09:43:57 peter Exp $ */ - -#include "npx.h" /* NNPX */ +#include "npx.h" #include "opt_vm86.h" -#include "assym.s" /* system defines */ -#include /* SWI_AST_MASK ... */ -#include /* PSL_I */ -#include /* trap codes */ #include - +#include +#include +#ifdef VM86 +#include +#endif +#include #ifdef SMP -#include /** CPL_AND_CML, REAL_ */ -#else -#define ECPL_LOCK /* make these nops */ +#include /** CPL_AND_CML, REAL_ */ +#endif + +#include "assym.s" + +#ifndef SMP +#define ECPL_LOCK /* make these nops */ #define ECPL_UNLOCK #define ICPL_LOCK #define ICPL_UNLOCK @@ -57,11 +61,8 @@ #define AVCPL_UNLOCK #endif /* SMP */ -#include - - -#define KCSEL 0x08 /* kernel code selector */ -#define KDSEL 0x10 /* kernel data selector */ +#define KCSEL 0x08 /* kernel code selector */ +#define KDSEL 0x10 /* kernel data selector */ #define SEL_RPL_MASK 0x0003 #define TRAPF_CS_OFF (13 * 4) -- cgit v1.1