7d2a759441cb5ac2fa04aeac25dbf552f1036e22
[rrq/maintain_lilo.git] / debian / patches / 11_remove-obsolete-bios-workaround.patch
1 Package:     lilo
2 Subject:     remove obsolete bios workaround
3 Author:      Joachim Wiedorn <ad_debian at joonet.de>
4 Forwarded:   yes
5 Last-Update: 2011-01-18
6
7 In the changelog of Debian lilo 22.2-3.1 (from 2002-05-10) was noted:
8
9   * This upstream version uses int15,0xe820 to fetch the memory map.
10     However, sufficiently many systems don't implement this interrupt
11     correctly.  We avoid the errant code for now.  The next upstream
12     release fixes this problem for real.  Note to Russell: this patch
13     must be removed for the next upstream release.
14
15 Unfortunately nobody had remembered to this note and removed this 
16 workaround with the new upstream release. But the upstream release
17 22.3 (from 2002-10-19) of have the following note in its CHANGES: 
18
19     - Compensate for buggy BIOS in int 15h, fn E820h call to avoid
20       overlapping memory areas
21
22 Now I remove this very old workaround because it is obsolete since
23 May 2002!
24 ---
25
26 diff -urN s10/src/second.S s11/src/second.S
27 --- s10/src/second.S    2010-06-20 00:20:26.000000000 +0200
28 +++ s11/src/second.S    2011-01-18 20:18:55.903147359 +0100
29 @@ -2927,8 +2927,7 @@
30         xor     edx,edx                 ; flag nothing found
31         xor     esi,esi                 ; flag size==0
32         xor     ebx,ebx
33 -       ;jmp    e8go                    ; circumvented due to BIOS problems
34 -       br      no_e801                 ; skip to backup plan
35 +       jmp     e8go
36  e8go2: or      ebx,ebx                 ; test for end
37         jz      e8go5
38  e8go:  push    edx                     ; save best prospect