Check for defined(__i386__) instead of just defined(i386) since the compiler

will be updated to only define(__i386__) for ANSI cleanliness.
This commit is contained in:
Alfred Perlstein 2002-05-30 07:32:58 +00:00
parent 524683999f
commit 99b9331a4f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97556
5 changed files with 13 additions and 13 deletions

View File

@ -208,9 +208,9 @@ ct_cmdp_write_1(chp, val)
CT_BUS_WEIGHT(chp)
}
#if defined(i386)
#if defined(__i386__)
#define SOFT_INTR_REQUIRED(slp) (softintr((slp)->sl_irq))
#else /* !i386 */
#else /* !__i386__ */
#define SOFT_INTR_REQUIRED(slp)
#endif /* !i386 */
#endif /* !__i386__ */
#endif /* !_CT_MACHDEP_H_ */

View File

@ -95,9 +95,9 @@ void ncvattachsubr(struct ncv_softc *);
int ncvprint(void *, const char *);
int ncvintr(void *);
#if defined(i386)
#if defined(__i386__)
#define SOFT_INTR_REQUIRED(slp) (softintr((slp)->sl_irq))
#else /* !i386 */
#else /* !__i386__ */
#define SOFT_INTR_REQUIRED(slp)
#endif /* !i386 */
#endif /* !__i386__ */
#endif /* !_NCR53C500VAR_H_ */

View File

@ -103,9 +103,9 @@ void stgattachsubr(struct stg_softc *);
int stgprint(void *, const char *);
int stgintr(void *);
#if defined(i386)
#if defined(__i386__)
#define SOFT_INTR_REQUIRED(slp) (softintr((slp)->sl_irq))
#else /* !i386 */
#else /* !__i386__ */
#define SOFT_INTR_REQUIRED(slp)
#endif /* !i386 */
#endif /* !__i386__ */
#endif /* !_TMC18C30VAR_H_ */

View File

@ -207,7 +207,7 @@ mmap(td, uap)
/* Address range must be all in user VM space. */
if (VM_MAXUSER_ADDRESS > 0 && addr + size > VM_MAXUSER_ADDRESS)
return (EINVAL);
#ifndef i386
#ifndef __i386__
if (VM_MIN_ADDRESS > 0 && addr < VM_MIN_ADDRESS)
return (EINVAL);
#endif

View File

@ -256,7 +256,7 @@ mmap(td, uap)
/* Address range must be all in user VM space. */
if (VM_MAXUSER_ADDRESS > 0 && addr + size > VM_MAXUSER_ADDRESS)
return (EINVAL);
#ifndef i386
#ifndef __i386__
if (VM_MIN_ADDRESS > 0 && addr < VM_MIN_ADDRESS)
return (EINVAL);
#endif
@ -603,7 +603,7 @@ munmap(td, uap)
*/
if (VM_MAXUSER_ADDRESS > 0 && addr + size > VM_MAXUSER_ADDRESS)
return (EINVAL);
#ifndef i386
#ifndef __i386__
if (VM_MIN_ADDRESS > 0 && addr < VM_MIN_ADDRESS)
return (EINVAL);
#endif
@ -749,7 +749,7 @@ madvise(td, uap)
if (VM_MAXUSER_ADDRESS > 0 &&
((vm_offset_t) uap->addr + uap->len) > VM_MAXUSER_ADDRESS)
return (EINVAL);
#ifndef i386
#ifndef __i386__
if (VM_MIN_ADDRESS > 0 && uap->addr < VM_MIN_ADDRESS)
return (EINVAL);
#endif