summaryrefslogtreecommitdiff
path: root/src/cpu/x86/lapic
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2021-05-31 10:53:18 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2021-06-10 20:57:41 +0000
commit08f4526b53ba001b72373bccbbfb8b52e1b0eb5a (patch)
tree72e6de574b6102cbf5e8bb9168c3ae911bda05f5 /src/cpu/x86/lapic
parent146508d7495c443a6f59267a13d617e9a0ae031e (diff)
cpu/x86/lapic: Drop read/write_around aliases
Change-Id: Ia3935524e57885ca79586f1f4612020bb05956ab Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55195 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/cpu/x86/lapic')
-rw-r--r--src/cpu/x86/lapic/lapic_cpu_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cpu/x86/lapic/lapic_cpu_init.c b/src/cpu/x86/lapic/lapic_cpu_init.c
index 9b5825a6a8..295f583b27 100644
--- a/src/cpu/x86/lapic/lapic_cpu_init.c
+++ b/src/cpu/x86/lapic/lapic_cpu_init.c
@@ -128,7 +128,7 @@ static int lapic_start_cpu(unsigned long apicid)
printk(BIOS_ERR, "ESR is 0x%x\n", lapic_read(LAPIC_ESR));
if (lapic_read(LAPIC_ESR)) {
printk(BIOS_ERR, "Try to reset ESR\n");
- lapic_write_around(LAPIC_ESR, 0);
+ xapic_write_atomic(LAPIC_ESR, 0);
printk(BIOS_ERR, "ESR is 0x%x\n",
lapic_read(LAPIC_ESR));
}
@@ -157,7 +157,7 @@ static int lapic_start_cpu(unsigned long apicid)
for (j = 1; j <= CONFIG_NUM_IPI_STARTS; j++) {
printk(BIOS_SPEW, "Sending STARTUP #%d to %lu.\n", j, apicid);
- lapic_read_around(LAPIC_SPIV);
+ lapic_read(LAPIC_SPIV);
lapic_write(LAPIC_ESR, 0);
lapic_read(LAPIC_ESR);
printk(BIOS_SPEW, "After apic_write.\n");
@@ -185,7 +185,7 @@ static int lapic_start_cpu(unsigned long apicid)
* Due to the Pentium erratum 3AP.
*/
if (maxlvt > 3) {
- lapic_read_around(LAPIC_SPIV);
+ lapic_read(LAPIC_SPIV);
lapic_write(LAPIC_ESR, 0);
}
accept_status = (lapic_read(LAPIC_ESR) & 0xEF);