svn commit: r279487 - head/sys/dev/pci

Jan Beich jbeich at FreeBSD.org
Mon Mar 2 14:49:03 UTC 2015


Jean-Sebastien Pedron <dumbbell at FreeBSD.org> writes:

> Modified: head/sys/dev/pci/vga_pci.c
[...]
> +int
> +vga_pci_repost(device_t dev)
> +{
> +#if defined(__amd64__) || defined(__i386__)
> +	x86regs_t regs;
> +
> +	if (!vga_pci_is_boot_display(dev))
> +		return (EINVAL);
> +
> +	if (x86bios_get_orm(VGA_PCI_BIOS_SHADOW_ADDR) == NULL)
> +		return (ENOTSUP);
> +
> +	x86bios_init_regs(&regs);
[...]

This breaks build for a kernel without VESA or X86BIOS. Also, x86bios
maybe loaded later as a module.

$ make buildkernel
--- kernel.debug ---
linking kernel.debug
vga_pci.o: In function `vga_pci_repost':
/usr/src/sys/dev/pci/vga_pci.c:208: undefined reference to `x86bios_get_orm'
/usr/src/sys/dev/pci/vga_pci.c:211: undefined reference to `x86bios_init_regs'
/usr/src/sys/dev/pci/vga_pci.c:218: undefined reference to `x86bios_call'
/usr/src/sys/dev/pci/vga_pci.c:221: undefined reference to `x86bios_get_intr'
*** [kernel.debug] Error code 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 602 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20150301/611c7ce3/attachment.sig>


More information about the svn-src-all mailing list