Revision 5fafdf24 tests/test-i386-vm86.S

b/tests/test-i386-vm86.S
14 14
        movw %ax, %es
15 15
        es movw $GET_OFFSET(int90_test), 0x90 * 4
16 16
        es movw %cs, 0x90 * 4 + 2
17
        
17
       
18 18
        /* launch int 0x90 */
19 19

  
20 20
        int $0x90
......
24 24
        movb $0x09, %ah
25 25
        int $0x21
26 26

  
27
        pushf 
27
        pushf
28 28
        popw %dx
29 29
        movb $0xff, %ah
30 30
        int $0x21
31 31

  
32 32
        cli
33
        pushf 
33
        pushf
34 34
        popw %dx
35 35
        movb $0xff, %ah
36 36
        int $0x21
37 37

  
38
        sti        
39
        pushfl 
38
        sti       
39
        pushfl
40 40
        popl %edx
41 41
        movb $0xff, %ah
42 42
        int $0x21
43
        
43
       
44 44
#if 0
45 45
        movw $GET_OFFSET(IF_msg1), %dx
46 46
        movb $0x09, %ah
......
54 54
        cli
55 55
#endif
56 56

  
57
        pushf 
57
        pushf
58 58
        popw %dx
59 59
        movb $0xff, %ah
60 60
        int $0x21
61
        
61
       
62 62
        pushfl
63 63
        movw %sp, %bx
64 64
        orw $0x200, (%bx)
......
73 73
        int $0x21
74 74

  
75 75
int90_test:
76
        pushf 
76
        pushf
77 77
        pop %dx
78 78
        movb $0xff, %ah
79 79
        int $0x21
......
82 82
        movw 4(%bx), %dx
83 83
        movb $0xff, %ah
84 84
        int $0x21
85
        
85
       
86 86
        movw $GET_OFFSET(int90_msg), %dx
87 87
        movb $0x09, %ah
88 88
        int $0x21
89 89
        iret
90
                    
90
                   
91 91
int90_msg:
92 92
        .string "INT90 started\n$"
93
 
93

  
94 94
hello_world:
95 95
        .string "Hello VM86 world\n$"
96 96

  
......
101 101
        .string "If you see a diff here, your Linux kernel is buggy, please update to 2.4.20 kernel\n$"
102 102

  
103 103
vm86_code_end:
104
        

Also available in: Unified diff