Pārlūkot izejas kodu

[romprefix] Fix PMM detection start address

Commit fd0aef9 introduced a typo that caused PMM detection to start at
paragraph 0xe00 rather than 0xe000.  (Detection would still work, since it
would scan until it ran out of base memory, but it would end up scanning
an unnecessarily large portion of base memory.)

Spotted by Sebastian Herbszt <herbszt@gmx.de>.
tags/v0.9.4
Michael Brown 16 gadus atpakaļ
vecāks
revīzija
27731d975e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/arch/i386/prefix/romprefix.S

+ 1
- 1
src/arch/i386/prefix/romprefix.S Parādīt failu

@@ -180,7 +180,7 @@ hook_int19:
180 180
 	popl	%es:( 0x19 * 4 )
181 181
 hook_bbs:
182 182
 	/* Check for PMM */
183
-	movw	$( 0xe00 - 1 ), %bx
183
+	movw	$( 0xe000 - 1 ), %bx
184 184
 pmm_scan:
185 185
 	incw	%bx
186 186
 	jz	no_pmm

Notiek ielāde…
Atcelt
Saglabāt