On Fri, Apr 30, 2021 at 12:00:05PM +1000, Jonathan Gray wrote:
>
> If you can build a kernel on another machine try
>
> Index: sys/dev/acpi/acpi.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/acpi/acpi.c,v
> retrieving revision 1.397
> diff -u -p -r1.397 acpi.c
> --- sys/dev/acpi/acpi.c 15 Mar 2021 22:44:57 -0000 1.397
> +++ sys/dev/acpi/acpi.c 30 Apr 2021 01:57:00 -0000
> @@ -262,6 +262,11 @@ acpi_gasio(struct acpi_softc *sc, int io
> dnprintf(50, "gasio: %.2x 0x%.8llx %s\n",
> iospace, address, (iodir == ACPI_IOWRITE) ? "write" : "read");
>
> + if (access_size == 0) {
> + printf("%s: invalid size 0\n", DEVNAME(sc));
> + return -1;
> + }
> +
> KASSERT((len % access_size) == 0);
>
> pb = (uint8_t *)buffer;
I'm building with that now on the older machine. I wonder, is this change
small and non-intrusive enough that we could hope it makes it into an amd64
snapshot soon?
(I fully appreciate why developers want faster machines :))
- Peter
--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.