wok view memtest/stuff/memtest86+-5.01-setup.patch @ rev 19293
o3read, ocaml, optipng, p7zip-full, pmail, python-nose, ratmenu: fix man or doc path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 06 15:27:44 2016 +0200 (2016-07-06) |
parents | 882e8f79c200 |
children | 4ba626e0a6d2 |
line source
1 --- memtest86+-5.01/setup.S
2 +++ memtest86+-5.01/setup.S
3 @@ -27,11 +27,10 @@
4 #ljmp $INITSEG, $(reload - start + 0x200)
5 reload:
6 movw $INITSEG, %ax
7 - movw %ax, %ds
8 movw %ax, %es
9 movw %ax, %fs
10 movw %ax, %ss # reset the stack to INITSEG:0x4000-12.
11 - movw %dx, %sp
12 + movw $0x4000-12, %sp
13 push %cs
14 pop %ds
15 lidt idt_48 - start # load idt with 0,0
16 @@ -50,13 +49,13 @@
17 jz alt_a20_done
19 /* set or clear bit1, the ALT_A20_GATE bit */
20 - movb 4(%esp), %ah
21 - testb %ah, %ah
22 - jz alt_a20_cont1
23 + //movb 4(%esp), %ah
24 + //testb %ah, %ah
25 + //jz alt_a20_cont1
26 orb $2, %al
27 - jmp alt_a20_cont2
28 + //jmp alt_a20_cont2
29 alt_a20_cont1:
30 - and $0xfd, %al
31 + //and $0xfd, %al
33 /* clear the INIT_NOW bit; don't accidently reset the machine */
34 alt_a20_cont2:
35 @@ -87,8 +86,8 @@
36 movw $KERNEL_DS, %ax
37 movw %ax, %ds
38 movw %ax, %es
39 - movw %ax, %ss
40 movw %ax, %fs
41 + movw %ax, %ss
42 movw %ax, %gs
44 data32 ljmp $KERNEL_CS, $(TSTLOAD <<4) # jmp offset 2000 of segment 0x10 (cs)