$NetBSD: patch-aa,v 1.1 2004/05/22 16:31:04 cl Exp $

--- arch/i386/boot/boot.S.orig	2004-04-18 04:29:10.000000000 +0200
+++ arch/i386/boot/boot.S
@@ -103,7 +103,8 @@ continue_boot_cpu:
         sub     %ebx,%ecx                    /* %ecx = byte len of all mods */
         mov     $(MAX_DIRECTMAP_ADDRESS), %edi
         add     %ecx, %edi                   /* %edi = src + length */        
-        shr     $2,%ecx                      /* %ecx = length/4 */
+        add     $3,%ecx
+        shr     $2,%ecx                      /* %ecx = (length+3)/4 */
 1:      sub     $4,%eax                      /* %eax = src, %edi = dst */
         sub     $4,%edi
         mov     (%eax),%ebx
