Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 2021 02:54:31 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f8d3368b4346 - main - apic: initialize lapic_paddr statically
Message-ID:  <202110060254.1962sVbe087610@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=f8d3368b4346237deeaaaa91308ce78f8e2ea820

commit f8d3368b4346237deeaaaa91308ce78f8e2ea820
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-10-05 13:19:56 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-10-06 02:52:56 +0000

    apic: initialize lapic_paddr statically
    
    The default value for LAPIC registers page physical address
    is usually right. Having this value available early makes
    pmap_force_invalidate_cache_range(), used on non-self-snoop machines,
    avoid flushing LAPIC range for early calls.
    
    Reviewed by:    alc, markj
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D32318
---
 sys/x86/x86/local_apic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c
index 04de3ae47461..2cd2e0c23e11 100644
--- a/sys/x86/x86/local_apic.c
+++ b/sys/x86/x86/local_apic.c
@@ -195,7 +195,7 @@ static u_int32_t lapic_timer_divisors[] = {
 extern inthand_t IDTVEC(rsvd_pti), IDTVEC(rsvd);
 
 volatile char *lapic_map;
-vm_paddr_t lapic_paddr;
+vm_paddr_t lapic_paddr = DEFAULT_APIC_BASE;
 int x2apic_mode;
 int lapic_eoi_suppression;
 static int lapic_timer_tsc_deadline;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110060254.1962sVbe087610>