summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-10-27 16:35:34 +0000
committerbde <bde@FreeBSD.org>1997-10-27 16:35:34 +0000
commitcae681d98477a34000d6e0df1023d883b2a57338 (patch)
tree606cad2d0f7ad250e596173b903fecb2de90343a
parent2fa5d417450237384dfedc29570816a4a0d0690f (diff)
downloadFreeBSD-src-cae681d98477a34000d6e0df1023d883b2a57338.zip
FreeBSD-src-cae681d98477a34000d6e0df1023d883b2a57338.tar.gz
Cleaned up #includes.
Ifdefed conditionally used includes. Finished changing indentation of per-statement comments to 40.
-rw-r--r--sys/amd64/amd64/exception.S33
-rw-r--r--sys/amd64/amd64/exception.s33
-rw-r--r--sys/i386/i386/exception.s33
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 <machine/ipl.h> /* SWI_AST_MASK ... */
-#include <machine/psl.h> /* PSL_I */
-#include <machine/trap.h> /* trap codes */
#include <machine/asmacros.h>
-
+#include <machine/ipl.h>
+#include <machine/lock.h>
+#ifdef VM86
+#include <machine/psl.h>
+#endif
+#include <machine/trap.h>
#ifdef SMP
-#include <machine/smptests.h> /** CPL_AND_CML, REAL_ */
-#else
-#define ECPL_LOCK /* make these nops */
+#include <machine/smptests.h> /** 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 <machine/lock.h>
-
-
-#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 <machine/ipl.h> /* SWI_AST_MASK ... */
-#include <machine/psl.h> /* PSL_I */
-#include <machine/trap.h> /* trap codes */
#include <machine/asmacros.h>
-
+#include <machine/ipl.h>
+#include <machine/lock.h>
+#ifdef VM86
+#include <machine/psl.h>
+#endif
+#include <machine/trap.h>
#ifdef SMP
-#include <machine/smptests.h> /** CPL_AND_CML, REAL_ */
-#else
-#define ECPL_LOCK /* make these nops */
+#include <machine/smptests.h> /** 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 <machine/lock.h>
-
-
-#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 <machine/ipl.h> /* SWI_AST_MASK ... */
-#include <machine/psl.h> /* PSL_I */
-#include <machine/trap.h> /* trap codes */
#include <machine/asmacros.h>
-
+#include <machine/ipl.h>
+#include <machine/lock.h>
+#ifdef VM86
+#include <machine/psl.h>
+#endif
+#include <machine/trap.h>
#ifdef SMP
-#include <machine/smptests.h> /** CPL_AND_CML, REAL_ */
-#else
-#define ECPL_LOCK /* make these nops */
+#include <machine/smptests.h> /** 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 <machine/lock.h>
-
-
-#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)
OpenPOWER on IntegriCloud