-/* $OpenBSD: machdep.c,v 1.71 2022/08/29 17:13:57 kettenis Exp $ */
+/* $OpenBSD: machdep.c,v 1.72 2022/09/05 19:18:56 kettenis Exp $ */
/*
* Copyright (c) 2014 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
/*
* Load all memory marked as EfiConventionalMemory,
* EfiBootServicesCode or EfiBootServicesData.
- * Don't bother with blocks smaller than 64KB. The
- * initial 64MB memory block should be marked as
+ * The initial 64MB memory block should be marked as
* EfiLoaderData so it won't be added here.
*/
for (i = 0; i < mmap_size / mmap_desc_size; i++) {
desc->VirtualStart, desc->NumberOfPages,
desc->Attribute);
#endif
- if ((desc->Type == EfiConventionalMemory ||
- desc->Type == EfiBootServicesCode ||
- desc->Type == EfiBootServicesData) &&
- desc->NumberOfPages >= 16) {
+ if (desc->Type == EfiConventionalMemory ||
+ desc->Type == EfiBootServicesCode ||
+ desc->Type == EfiBootServicesData) {
reg.addr = desc->PhysicalStart;
reg.size = ptoa(desc->NumberOfPages);
memreg_add(®);