summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-10-13 14:32:32 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:45 +0200
commite0b9f47ef2218dcefd5c53055cf3dd9fde6e4dff (patch)
tree2dddde5a350fa8ee577f2b9ed2974d1385f2f719 /i386
parent8a44559ad7b3248526707b4af9b04c160aed2d7b (diff)
2006-10-13 Thomas Schwinge <tschwinge@gnu.org>
* Makerules.in (ASFLAGS): Don't define `ASSEMBLER'. * i386/i386/cpu_number.h: Check for `__ASSEMBLER__' instead of `ASSEMBLER'. * i386/i386/debug.h: Likewise. * i386/i386/ipl.h: Likewise. * i386/i386/ldt.h: Likewise. * i386/i386/proc_reg.h: Likewise. * i386/i386/seg.h: Likewise. * i386/i386/trap.h: Likewise. * i386/include/mach/i386/kern_return.h: Likewise. * i386/include/mach/i386/vm_types.h: Likewise. * i386/intel/pmap.h: Likewise. * include/mach/boolean.h: Likewise. * include/mach/boot.h: Likewise. * include/mach/error.h: Likewise. * kern/syscall_emulation.h: Likewise.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/cpu_number.h2
-rw-r--r--i386/i386/debug.h6
-rw-r--r--i386/i386/ipl.h4
-rw-r--r--i386/i386/ldt.h4
-rw-r--r--i386/i386/proc_reg.h4
-rw-r--r--i386/i386/seg.h8
-rw-r--r--i386/i386/trap.h4
-rw-r--r--i386/include/mach/i386/kern_return.h4
-rw-r--r--i386/include/mach/i386/vm_types.h6
-rw-r--r--i386/intel/pmap.h8
10 files changed, 25 insertions, 25 deletions
diff --git a/i386/i386/cpu_number.h b/i386/i386/cpu_number.h
index e60ac77..7808e49 100644
--- a/i386/i386/cpu_number.h
+++ b/i386/i386/cpu_number.h
@@ -42,7 +42,7 @@
#endif /* NCPUS == 1 */
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
#include "kern/cpu_number.h"
#endif
diff --git a/i386/i386/debug.h b/i386/i386/debug.h
index 135af7e..f87b95b 100644
--- a/i386/i386/debug.h
+++ b/i386/i386/debug.h
@@ -39,7 +39,7 @@ void dump_ss(struct i386_saved_state *st);
Only the kernel stack needs to be valid;
the other data segment registers are not needed
and all registers are saved. */
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
#define DEBUG_TRACE _debug_trace(__FILE__,__LINE__)
@@ -50,7 +50,7 @@ void debug_trace_reset(void);
Also clears the trace buffer. */
void debug_trace_dump(void);
-#else /* ASSEMBLER */
+#else /* __ASSEMBLER__ */
#define DEBUG_TRACE \
pushl $__LINE__ ;\
@@ -61,7 +61,7 @@ void debug_trace_dump(void);
9: .ascii __FILE__"\0" ;\
.text
-#endif /* ASSEMBLER */
+#endif /* __ASSEMBLER__ */
#endif /* DEBUG */
diff --git a/i386/i386/ipl.h b/i386/i386/ipl.h
index 4ef9857..86ed660 100644
--- a/i386/i386/ipl.h
+++ b/i386/i386/ipl.h
@@ -68,10 +68,10 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define NSPL (SPL7 + 1)
#ifdef KERNEL
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
#include <machine/machspl.h>
extern int (*ivect[])();
extern int iunit[];
extern int intpri[];
-#endif /* ASSEMBLER */
+#endif /* __ASSEMBLER__ */
#endif /* KERNEL */
diff --git a/i386/i386/ldt.h b/i386/i386/ldt.h
index dd2d129..3c38109 100644
--- a/i386/i386/ldt.h
+++ b/i386/i386/ldt.h
@@ -49,7 +49,7 @@
#define LDTSZ 4
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
extern struct real_descriptor ldt[LDTSZ];
@@ -61,6 +61,6 @@ extern struct real_descriptor ldt[LDTSZ];
fill_gate((struct real_gate*)&ldt[selector/8], \
offset, dest_selector, access, word_count)
-#endif /* !ASSEMBLER */
+#endif /* !__ASSEMBLER__ */
#endif /* _I386_LDT_ */
diff --git a/i386/i386/proc_reg.h b/i386/i386/proc_reg.h
index 4a3cb53..428569d 100644
--- a/i386/i386/proc_reg.h
+++ b/i386/i386/proc_reg.h
@@ -45,7 +45,7 @@
#define CR0_MP 0x00000002 /* monitor coprocessor */
#define CR0_PE 0x00000001 /* enable protected mode */
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
#ifdef __GNUC__
static inline unsigned
@@ -143,6 +143,6 @@ set_eflags(unsigned eflags)
"0:\n")
#endif /* __GNUC__ */
-#endif /* ASSEMBLER */
+#endif /* __ASSEMBLER__ */
#endif /* _I386_PROC_REG_H_ */
diff --git a/i386/i386/seg.h b/i386/i386/seg.h
index d95bff9..339c30a 100644
--- a/i386/i386/seg.h
+++ b/i386/i386/seg.h
@@ -38,7 +38,7 @@
* i386 segmentation.
*/
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
/*
* Real segment descriptor.
@@ -61,7 +61,7 @@ struct real_gate {
offset_high:16; /* offset 16..31 */
};
-#endif /* !ASSEMBLER */
+#endif /* !__ASSEMBLER__ */
#define SZ_32 0x4 /* 32-bit segment */
#define SZ_16 0x0 /* 16-bit segment */
@@ -113,7 +113,7 @@ struct real_gate {
#define sel_idx(sel) ((sel)>>3)
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
#include <mach/inline.h>
@@ -179,6 +179,6 @@ fill_gate(struct real_gate *gate, unsigned offset, unsigned short selector,
gate->offset_high = (offset >> 16) & 0xffff;
}
-#endif /* !ASSEMBLER */
+#endif /* !__ASSEMBLER__ */
#endif /* _I386_SEG_H_ */
diff --git a/i386/i386/trap.h b/i386/i386/trap.h
index 13ded30..8cee9e8 100644
--- a/i386/i386/trap.h
+++ b/i386/i386/trap.h
@@ -29,10 +29,10 @@
#include <mach/machine/trap.h>
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
char *trap_name(unsigned int trapnum);
-#endif /* !ASSEMBLER */
+#endif /* !__ASSEMBLER__ */
#endif /* _I386_TRAP_H_ */
diff --git a/i386/include/mach/i386/kern_return.h b/i386/include/mach/i386/kern_return.h
index c51915d..8df41ca 100644
--- a/i386/include/mach/i386/kern_return.h
+++ b/i386/include/mach/i386/kern_return.h
@@ -34,7 +34,7 @@
#ifndef _MACH_I386_KERN_RETURN_H_
#define _MACH_I386_KERN_RETURN_H_
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
typedef int kern_return_t;
-#endif /* ASSEMBLER */
+#endif /* __ASSEMBLER__ */
#endif /* _MACH_I386_KERN_RETURN_H_ */
diff --git a/i386/include/mach/i386/vm_types.h b/i386/include/mach/i386/vm_types.h
index 603bf0c..7fb1bcb 100644
--- a/i386/include/mach/i386/vm_types.h
+++ b/i386/include/mach/i386/vm_types.h
@@ -34,8 +34,8 @@
#ifndef _MACHINE_VM_TYPES_H_
#define _MACHINE_VM_TYPES_H_ 1
-#ifdef ASSEMBLER
-#else /* ASSEMBLER */
+#ifdef __ASSEMBLER__
+#else /* __ASSEMBLER__ */
/*
* A natural_t is the type for the native
@@ -96,7 +96,7 @@ typedef unsigned long long unsigned64_t;
typedef float float32_t;
typedef double float64_t;
-#endif /* ASSEMBLER */
+#endif /* __ASSEMBLER__ */
/*
* If composing messages by hand (please dont)
diff --git a/i386/intel/pmap.h b/i386/intel/pmap.h
index a638f22..1ea84bf 100644
--- a/i386/intel/pmap.h
+++ b/i386/intel/pmap.h
@@ -35,7 +35,7 @@
#ifndef _PMAP_MACHINE_
#define _PMAP_MACHINE_ 1
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
#include <kern/zalloc.h>
#include <kern/lock.h>
@@ -77,7 +77,7 @@
typedef unsigned int pt_entry_t;
#define PT_ENTRY_NULL ((pt_entry_t *) 0)
-#endif /* ASSEMBLER */
+#endif /* __ASSEMBLER__ */
#define INTEL_OFFMASK 0xfff /* offset within page */
#define PDESHIFT 22 /* page descriptor shift */
@@ -147,7 +147,7 @@ typedef unsigned int pt_entry_t;
*/
#define ptetokv(a) (phystokv(pte_to_pa(a)))
-#ifndef ASSEMBLER
+#ifndef __ASSEMBLER__
typedef volatile long cpu_set; /* set of CPUs - must be <= 32 */
/* changed by other processors */
@@ -396,6 +396,6 @@ pt_entry_t *pmap_pte(pmap_t pmap, vm_offset_t addr);
#define pmap_attribute(pmap,addr,size,attr,value) \
(KERN_INVALID_ADDRESS)
-#endif /* ASSEMBLER */
+#endif /* __ASSEMBLER__ */
#endif /* _PMAP_MACHINE_ */