[PATCH] [RFC] i386/i386_mainbus: fix the build when MPBIOS and ACPI are disabled

2024-04-24 Thread Paolo Pisati
In sys/arch/i386/i386/i386_mainbus.c::i386_mainbus_rescan() mp_pci_scan() is only executed if: ... if (npcibus == 0 && mpacpi_active) npcibus = mp_pci_scan(self, &mba.mba_pba, pcibusprint); if (npcibus == 0 && mpbios_scanned != 0)

[PATCH] x86/intr.c: fix build if NO_PCI_MSI_MSIX is defined

2024-04-24 Thread Paolo Pisati
... /home/flag/bsd/netbsd/src/sys/arch/x86/x86/intr.c: In function 'intr_create_intrid': /home/flag/bsd/netbsd/src/sys/arch/x86/x86/intr.c:315:34: error: 'MSI_INT_DEV_MASK' undeclared (first use in this function) 315 | pih = __SHIFTIN((uint64_t)dev, MSI_INT_DEV_MASK) |

Re: Creating a hackable kernel for AMD64

2024-04-24 Thread Emile `iMil' Heitor
On Tue, 23 Apr 2024, Taylor R Campbell wrote: Cool, thanks! The main thing you're trying to do -- pass a kernel on the command line to qemu -- doesn't work on x86. It does with these patches: https://github.com/NetBSDfr/NetBSD-src/tree/nbfr_master They need to be reviewed before I merge them