Skip to content

Commit

Permalink
apic_internal.h: rename ESR_ILLEGAL_ADDRESS to APIC_ESR_ILLEGAL_ADDRESS
Browse files Browse the repository at this point in the history
Added prefix APIC_ for determining the constant of a particular subsystem,
improve the overall readability and match other constant names.

Signed-off-by: Pavel Butsykin <[email protected]>
Signed-off-by: Denis V. Lunev <[email protected]>
CC: Paolo Bonzini <[email protected]>
CC: Andreas Färber <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
pbutsykin authored and bonzini committed Sep 25, 2015
1 parent 82a5e04 commit a22bf99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hw/intc/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ static uint32_t apic_mem_readl(void *opaque, hwaddr addr)
val = s->divide_conf;
break;
default:
s->esr |= ESR_ILLEGAL_ADDRESS;
s->esr |= APIC_ESR_ILLEGAL_ADDRESS;
val = 0;
break;
}
Expand Down Expand Up @@ -836,7 +836,7 @@ static void apic_mem_writel(void *opaque, hwaddr addr, uint32_t val)
}
break;
default:
s->esr |= ESR_ILLEGAL_ADDRESS;
s->esr |= APIC_ESR_ILLEGAL_ADDRESS;
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion include/hw/i386/apic_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#define APIC_INPUT_POLARITY (1<<13)
#define APIC_SEND_PENDING (1<<12)

#define ESR_ILLEGAL_ADDRESS (1 << 7)
#define APIC_ESR_ILLEGAL_ADDRESS (1 << 7)

#define APIC_SV_DIRECTED_IO (1<<12)
#define APIC_SV_ENABLE (1<<8)
Expand Down

0 comments on commit a22bf99

Please sign in to comment.