Re: lapic detection at runtime for kernel modules

Emile `iMil' Heitor <[email protected]> Mon, 24 Mar 2025 13:40:28 +0100 (CET)
Newsgroups gmane.os.netbsd.ports.x86-64
Message-ID <[email protected]>
On Mon, 24 Mar 2025, Jean-Yves Migeon (NetBSD) wrote:

> Brutal, but indeed works (:
>
> This "tests" whether LAPIC support is compiled in (instead of checking the 
> PIC routines) though.

Indeed, that was the intended behavior, not to fetch any bogus value
if the kernel isn't even compiled with LAPIC support.

> Nope (at least not yet) -- IMHO it has limited interest besides attempts at 
> nesting hypervisors (which has its uses but quite niche)

I'm sure someone will come up with this need ;)

------------------------------------------------------------------------
Emile `iMil' Heitor <imil@{home.imil.net,NetBSD.org}> | https://imil.net