diff options
| author | Vikram Hegde <Vikram.Hegde@Sun.COM> | 2009-08-31 18:00:04 -0700 |
|---|---|---|
| committer | Vikram Hegde <Vikram.Hegde@Sun.COM> | 2009-08-31 18:00:04 -0700 |
| commit | 0412ba67681b286c1ebbf47f0f457ca926c22684 (patch) | |
| tree | 3ee744c05dc5b29512c07945d62218a8aaba5ae7 /usr/src | |
| parent | 256141046d195629e2d487169658f509aec955cd (diff) | |
| download | illumos-joyent-0412ba67681b286c1ebbf47f0f457ca926c22684.tar.gz | |
6876171 amd_iommu should use __amd64 instead of __LP64
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/uts/intel/io/amd_iommu/amd_iommu.c | 4 | ||||
| -rw-r--r-- | usr/src/uts/intel/io/amd_iommu/amd_iommu_impl.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/intel/io/amd_iommu/amd_iommu.c b/usr/src/uts/intel/io/amd_iommu/amd_iommu.c index e4318baf21..8afa190b23 100644 --- a/usr/src/uts/intel/io/amd_iommu/amd_iommu.c +++ b/usr/src/uts/intel/io/amd_iommu/amd_iommu.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -120,7 +120,7 @@ _init(void) { int error = ENOTSUP; -#if defined(_LP64) && !defined(__xpv) +#if defined(__amd64) && !defined(__xpv) error = ddi_soft_state_init(&amd_iommu_statep, sizeof (struct amd_iommu_state), 1); diff --git a/usr/src/uts/intel/io/amd_iommu/amd_iommu_impl.h b/usr/src/uts/intel/io/amd_iommu/amd_iommu_impl.h index d179d38d63..3fdead1177 100644 --- a/usr/src/uts/intel/io/amd_iommu/amd_iommu_impl.h +++ b/usr/src/uts/intel/io/amd_iommu/amd_iommu_impl.h @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -241,7 +241,7 @@ typedef enum { /* Invalidate Interrupt Table bits */ #define AMD_IOMMU_CMD_INVAL_INTR_DEVICEID (15 << 16 | 0) -#ifdef _LP64 +#if defined(__amd64) #define dmac_cookie_addr dmac_laddress #else #define dmac_cookie_addr dmac_address |
