-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcode.c
10545 lines (10370 loc) · 524 KB
/
code.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
kernel/kernel: file format elf32-i386
Disassembly of section .text:
00030000 <start>:
30000: e9 36 02 00 00 jmp 3023b <init>
00030005 <vec0>:
30005: 6a 00 push $0x0
30007: 6a 00 push $0x0
30009: eb 7b jmp 30086 <asm_do_irq>
0003000b <vec1>:
3000b: 6a 00 push $0x0
3000d: 6a 01 push $0x1
3000f: eb 75 jmp 30086 <asm_do_irq>
00030011 <vec2>:
30011: 6a 00 push $0x0
30013: 6a 02 push $0x2
30015: eb 6f jmp 30086 <asm_do_irq>
00030017 <vec3>:
30017: 6a 00 push $0x0
30019: 6a 03 push $0x3
3001b: eb 69 jmp 30086 <asm_do_irq>
0003001d <vec4>:
3001d: 6a 00 push $0x0
3001f: 6a 04 push $0x4
30021: eb 63 jmp 30086 <asm_do_irq>
00030023 <vec5>:
30023: 6a 00 push $0x0
30025: 6a 05 push $0x5
30027: eb 5d jmp 30086 <asm_do_irq>
00030029 <vec6>:
30029: 6a 00 push $0x0
3002b: 6a 06 push $0x6
3002d: eb 57 jmp 30086 <asm_do_irq>
0003002f <vec7>:
3002f: 6a 00 push $0x0
30031: 6a 07 push $0x7
30033: eb 51 jmp 30086 <asm_do_irq>
00030035 <vec8>:
30035: 6a 08 push $0x8
30037: eb 4d jmp 30086 <asm_do_irq>
00030039 <vec9>:
30039: 6a 00 push $0x0
3003b: 6a 09 push $0x9
3003d: eb 47 jmp 30086 <asm_do_irq>
0003003f <vec10>:
3003f: 6a 0a push $0xa
30041: eb 43 jmp 30086 <asm_do_irq>
00030043 <vec11>:
30043: 6a 0b push $0xb
30045: eb 3f jmp 30086 <asm_do_irq>
00030047 <vec12>:
30047: 6a 0c push $0xc
30049: eb 3b jmp 30086 <asm_do_irq>
0003004b <vec13>:
3004b: 6a 0d push $0xd
3004d: eb 37 jmp 30086 <asm_do_irq>
0003004f <vec14>:
3004f: 6a 0e push $0xe
30051: eb 33 jmp 30086 <asm_do_irq>
00030053 <vecsys>:
30053: 6a 00 push $0x0
30055: 68 80 00 00 00 push $0x80
3005a: eb 2a jmp 30086 <asm_do_irq>
0003005c <irq0>:
3005c: 6a 00 push $0x0
3005e: 68 e8 03 00 00 push $0x3e8
30063: eb 21 jmp 30086 <asm_do_irq>
00030065 <irq1>:
30065: 6a 00 push $0x0
30067: 68 e9 03 00 00 push $0x3e9
3006c: eb 18 jmp 30086 <asm_do_irq>
0003006e <irq2>:
3006e: 6a 00 push $0x0
30070: 68 ea 03 00 00 push $0x3ea
30075: eb 0f jmp 30086 <asm_do_irq>
00030077 <irq14>:
30077: 6a 00 push $0x0
30079: 68 f6 03 00 00 push $0x3f6
3007e: eb 06 jmp 30086 <asm_do_irq>
00030080 <irq_empty>:
30080: 6a 00 push $0x0
30082: 6a ff push $0xffffffff
30084: eb 00 jmp 30086 <asm_do_irq>
00030086 <asm_do_irq>:
30086: 60 pusha
30087: 54 push %esp
30088: e8 74 10 00 00 call 31101 <irq_handle>
3008d: 83 c4 04 add $0x4,%esp
30090: 61 popa
30091: 83 c4 08 add $0x8,%esp
30094: cf iret
00030095 <fs_open>:
30095: 55 push %ebp
30096: 89 e5 mov %esp,%ebp
30098: 53 push %ebx
30099: 83 ec 04 sub $0x4,%esp
3009c: e8 92 01 00 00 call 30233 <__x86.get_pc_thunk.ax>
300a1: 05 5f bf 00 00 add $0xbf5f,%eax
300a6: 8d 90 bc c7 ff ff lea -0x3844(%eax),%edx
300ac: 52 push %edx
300ad: 6a 2c push $0x2c
300af: 8d 90 f3 c5 ff ff lea -0x3a0d(%eax),%edx
300b5: 52 push %edx
300b6: 8d 90 00 c6 ff ff lea -0x3a00(%eax),%edx
300bc: 52 push %edx
300bd: 89 c3 mov %eax,%ebx
300bf: e8 9c 18 00 00 call 31960 <printk>
300c4: 83 c4 10 add $0x10,%esp
300c7: b8 01 00 00 00 mov $0x1,%eax
300cc: 82 b8 ff ff ff ff 8b cmpb $0x8b,-0x1(%eax)
300d3: 5d pop %ebp
300d4: fc cld
300d5: c9 leave
300d6: c3 ret
000300d7 <fs_read>:
300d7: 55 push %ebp
300d8: 89 e5 mov %esp,%ebp
300da: 53 push %ebx
300db: 83 ec 04 sub $0x4,%esp
300de: e8 54 01 00 00 call 30237 <__x86.get_pc_thunk.bx>
300e3: 81 c3 1d bf 00 00 add $0xbf1d,%ebx
300e9: 83 7d 08 02 cmpl $0x2,0x8(%ebp)
300ed: 7f 2f jg 3011e <fs_read+0x47>
300ef: 83 ec 0c sub $0xc,%esp
300f2: 8d 83 56 c6 ff ff lea -0x39aa(%ebx),%eax
300f8: 50 push %eax
300f9: 8d 83 c4 c7 ff ff lea -0x383c(%ebx),%eax
300ff: 50 push %eax
30100: 6a 31 push $0x31
30102: 8d 83 f3 c5 ff ff lea -0x3a0d(%ebx),%eax
30108: 50 push %eax
30109: 8d 83 60 c6 ff ff lea -0x39a0(%ebx),%eax
3010f: 50 push %eax
30110: e8 4b 18 00 00 call 31960 <printk>
30115: 83 c4 20 add $0x20,%esp
30118: b8 01 00 00 00 mov $0x1,%eax
3011d: 82 8d 83 c4 c7 ff ff orb $0xff,-0x383b7d(%ebp)
30124: 50 push %eax
30125: 6a 32 push $0x32
30127: 8d 83 f3 c5 ff ff lea -0x3a0d(%ebx),%eax
3012d: 50 push %eax
3012e: 8d 83 ac c6 ff ff lea -0x3954(%ebx),%eax
30134: 50 push %eax
30135: e8 26 18 00 00 call 31960 <printk>
3013a: 83 c4 10 add $0x10,%esp
3013d: b8 01 00 00 00 mov $0x1,%eax
30142: 82 b8 ff ff ff ff 8b cmpb $0x8b,-0x1(%eax)
30149: 5d pop %ebp
3014a: fc cld
3014b: c9 leave
3014c: c3 ret
0003014d <fs_write>:
3014d: 55 push %ebp
3014e: 89 e5 mov %esp,%ebp
30150: 53 push %ebx
30151: 83 ec 04 sub $0x4,%esp
30154: e8 da 00 00 00 call 30233 <__x86.get_pc_thunk.ax>
30159: 05 a7 be 00 00 add $0xbea7,%eax
3015e: 83 7d 08 02 cmpl $0x2,0x8(%ebp)
30162: 7e 31 jle 30195 <fs_write+0x48>
30164: 83 ec 0c sub $0xc,%esp
30167: 8d 90 02 c7 ff ff lea -0x38fe(%eax),%edx
3016d: 52 push %edx
3016e: 8d 90 cc c7 ff ff lea -0x3834(%eax),%edx
30174: 52 push %edx
30175: 6a 37 push $0x37
30177: 8d 90 f3 c5 ff ff lea -0x3a0d(%eax),%edx
3017d: 52 push %edx
3017e: 8d 90 60 c6 ff ff lea -0x39a0(%eax),%edx
30184: 52 push %edx
30185: 89 c3 mov %eax,%ebx
30187: e8 d4 17 00 00 call 31960 <printk>
3018c: 83 c4 20 add $0x20,%esp
3018f: b8 01 00 00 00 mov $0x1,%eax
30194: 82 b8 04 00 00 00 8b cmpb $0x8b,0x4(%eax)
3019b: 5d pop %ebp
3019c: 08 8b 4d 0c 8b 55 or %cl,0x558b0c4d(%ebx)
301a2: 10 82 89 45 10 8b adc %al,-0x74efba77(%edx)
301a8: 45 inc %ebp
301a9: 10 8b 5d fc c9 c3 adc %cl,-0x3c3603a3(%ebx)
000301af <fs_lseek>:
301af: 55 push %ebp
301b0: 89 e5 mov %esp,%ebp
301b2: 53 push %ebx
301b3: 83 ec 04 sub $0x4,%esp
301b6: e8 78 00 00 00 call 30233 <__x86.get_pc_thunk.ax>
301bb: 05 45 be 00 00 add $0xbe45,%eax
301c0: 8d 90 d8 c7 ff ff lea -0x3828(%eax),%edx
301c6: 52 push %edx
301c7: 6a 46 push $0x46
301c9: 8d 90 f3 c5 ff ff lea -0x3a0d(%eax),%edx
301cf: 52 push %edx
301d0: 8d 90 0c c7 ff ff lea -0x38f4(%eax),%edx
301d6: 52 push %edx
301d7: 89 c3 mov %eax,%ebx
301d9: e8 82 17 00 00 call 31960 <printk>
301de: 83 c4 10 add $0x10,%esp
301e1: b8 01 00 00 00 mov $0x1,%eax
301e6: 82 b8 ff ff ff ff 8b cmpb $0x8b,-0x1(%eax)
301ed: 5d pop %ebp
301ee: fc cld
301ef: c9 leave
301f0: c3 ret
000301f1 <fs_close>:
301f1: 55 push %ebp
301f2: 89 e5 mov %esp,%ebp
301f4: 53 push %ebx
301f5: 83 ec 04 sub $0x4,%esp
301f8: e8 36 00 00 00 call 30233 <__x86.get_pc_thunk.ax>
301fd: 05 03 be 00 00 add $0xbe03,%eax
30202: 8d 90 e4 c7 ff ff lea -0x381c(%eax),%edx
30208: 52 push %edx
30209: 6a 4b push $0x4b
3020b: 8d 90 f3 c5 ff ff lea -0x3a0d(%eax),%edx
30211: 52 push %edx
30212: 8d 90 64 c7 ff ff lea -0x389c(%eax),%edx
30218: 52 push %edx
30219: 89 c3 mov %eax,%ebx
3021b: e8 40 17 00 00 call 31960 <printk>
30220: 83 c4 10 add $0x10,%esp
30223: b8 01 00 00 00 mov $0x1,%eax
30228: 82 b8 ff ff ff ff 8b cmpb $0x8b,-0x1(%eax)
3022f: 5d pop %ebp
30230: fc cld
30231: c9 leave
30232: c3 ret
00030233 <__x86.get_pc_thunk.ax>:
30233: 8b 04 24 mov (%esp),%eax
30236: c3 ret
00030237 <__x86.get_pc_thunk.bx>:
30237: 8b 1c 24 mov (%esp),%ebx
3023a: c3 ret
0003023b <init>:
3023b: 55 push %ebp
3023c: 89 e5 mov %esp,%ebp
3023e: e8 f0 ff ff ff call 30233 <__x86.get_pc_thunk.ax>
30243: 05 bd bd 00 00 add $0xbdbd,%eax
30248: 8d 80 59 42 ff ff lea -0xbda7(%eax),%eax
3024e: ff e0 jmp *%eax
30250: b8 01 00 00 00 mov $0x1,%eax
30255: 82 .byte 0x82
30256: 90 nop
30257: 5d pop %ebp
30258: c3 ret
00030259 <init_cond>:
30259: 55 push %ebp
3025a: 89 e5 mov %esp,%ebp
3025c: 53 push %ebx
3025d: 83 ec 14 sub $0x14,%esp
30260: e8 d2 ff ff ff call 30237 <__x86.get_pc_thunk.bx>
30265: 81 c3 9b bd 00 00 add $0xbd9b,%ebx
3026b: 8d 83 30 c8 ff ff lea -0x37d0(%ebx),%eax
30271: 50 push %eax
30272: 6a 4b push $0x4b
30274: 8d 83 f0 c7 ff ff lea -0x3810(%ebx),%eax
3027a: 50 push %eax
3027b: 8d 83 fc c7 ff ff lea -0x3804(%ebx),%eax
30281: 50 push %eax
30282: e8 d9 16 00 00 call 31960 <printk>
30287: 83 c4 10 add $0x10,%esp
3028a: e8 f5 04 00 00 call 30784 <loader>
3028f: 89 45 f4 mov %eax,-0xc(%ebp)
30292: 8b 45 f4 mov -0xc(%ebp),%eax
30295: ff d0 call *%eax
30297: 90 nop
30298: 8b 5d fc mov -0x4(%ebp),%ebx
3029b: c9 leave
3029c: c3 ret
0003029d <read_cr0>:
3029d: 55 push %ebp
3029e: 89 e5 mov %esp,%ebp
302a0: 83 ec 10 sub $0x10,%esp
302a3: e8 8b ff ff ff call 30233 <__x86.get_pc_thunk.ax>
302a8: 05 58 bd 00 00 add $0xbd58,%eax
302ad: 0f 20 c0 mov %cr0,%eax
302b0: 89 45 fc mov %eax,-0x4(%ebp)
302b3: 8b 45 fc mov -0x4(%ebp),%eax
302b6: c9 leave
302b7: c3 ret
000302b8 <write_cr0>:
302b8: 55 push %ebp
302b9: 89 e5 mov %esp,%ebp
302bb: e8 73 ff ff ff call 30233 <__x86.get_pc_thunk.ax>
302c0: 05 40 bd 00 00 add $0xbd40,%eax
302c5: 8b 45 08 mov 0x8(%ebp),%eax
302c8: 0f 22 c0 mov %eax,%cr0
302cb: 90 nop
302cc: 5d pop %ebp
302cd: c3 ret
000302ce <write_cr3>:
302ce: 55 push %ebp
302cf: 89 e5 mov %esp,%ebp
302d1: e8 5d ff ff ff call 30233 <__x86.get_pc_thunk.ax>
302d6: 05 2a bd 00 00 add $0xbd2a,%eax
302db: 8b 45 08 mov 0x8(%ebp),%eax
302de: 0f 22 d8 mov %eax,%cr3
302e1: 90 nop
302e2: 5d pop %ebp
302e3: c3 ret
000302e4 <write_gdtr>:
302e4: 55 push %ebp
302e5: 89 e5 mov %esp,%ebp
302e7: e8 47 ff ff ff call 30233 <__x86.get_pc_thunk.ax>
302ec: 05 14 bd 00 00 add $0xbd14,%eax
302f1: 8b 55 0c mov 0xc(%ebp),%edx
302f4: 4a dec %edx
302f5: 66 89 90 00 10 00 00 mov %dx,0x1000(%eax)
302fc: 8b 55 08 mov 0x8(%ebp),%edx
302ff: 66 89 90 02 10 00 00 mov %dx,0x1002(%eax)
30306: 8b 55 08 mov 0x8(%ebp),%edx
30309: c1 ea 10 shr $0x10,%edx
3030c: 66 89 90 04 10 00 00 mov %dx,0x1004(%eax)
30313: 8d 80 00 10 00 00 lea 0x1000(%eax),%eax
30319: 0f 01 10 lgdtl (%eax)
3031c: 90 nop
3031d: 5d pop %ebp
3031e: c3 ret
0003031f <get_kpdir>:
3031f: 55 push %ebp
30320: 89 e5 mov %esp,%ebp
30322: e8 0c ff ff ff call 30233 <__x86.get_pc_thunk.ax>
30327: 05 d9 bc 00 00 add $0xbcd9,%eax
3032c: c7 c0 00 10 07 00 mov $0x71000,%eax
30332: 5d pop %ebp
30333: c3 ret
00030334 <init_page>:
30334: 55 push %ebp
30335: 89 e5 mov %esp,%ebp
30337: 53 push %ebx
30338: 83 ec 24 sub $0x24,%esp
3033b: e8 f3 fe ff ff call 30233 <__x86.get_pc_thunk.ax>
30340: 05 c0 bc 00 00 add $0xbcc0,%eax
30345: c7 c2 00 10 07 00 mov $0x71000,%edx
3034b: 89 55 e4 mov %edx,-0x1c(%ebp)
3034e: c7 c2 00 20 07 00 mov $0x72000,%edx
30354: 89 55 f4 mov %edx,-0xc(%ebp)
30357: 83 ec 04 sub $0x4,%esp
3035a: 68 00 10 00 00 push $0x1000
3035f: 6a 00 push $0x0
30361: ff 75 e4 pushl -0x1c(%ebp)
30364: 89 c3 mov %eax,%ebx
30366: e8 31 19 00 00 call 31c9c <memset>
3036b: 83 c4 10 add $0x10,%esp
3036e: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%ebp)
30375: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
3037c: eb 69 jmp 303e7 <init_page+0xb3>
3037e: 8b 45 f0 mov -0x10(%ebp),%eax
30381: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
30388: 8b 45 e4 mov -0x1c(%ebp),%eax
3038b: 01 d0 add %edx,%eax
3038d: 8b 55 f4 mov -0xc(%ebp),%edx
30390: 81 e2 00 f0 ff ff and $0xfffff000,%edx
30396: 83 ca 07 or $0x7,%edx
30399: 89 10 mov %edx,(%eax)
3039b: 8b 45 f0 mov -0x10(%ebp),%eax
3039e: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
303a5: 8b 45 e4 mov -0x1c(%ebp),%eax
303a8: 01 d0 add %edx,%eax
303aa: 8b 55 f4 mov -0xc(%ebp),%edx
303ad: 81 e2 00 f0 ff ff and $0xfffff000,%edx
303b3: 83 ca 07 or $0x7,%edx
303b6: 89 10 mov %edx,(%eax)
303b8: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
303bf: eb 1a jmp 303db <init_page+0xa7>
303c1: 8b 45 e8 mov -0x18(%ebp),%eax
303c4: c1 e0 0c shl $0xc,%eax
303c7: 83 c8 07 or $0x7,%eax
303ca: 89 c2 mov %eax,%edx
303cc: 8b 45 f4 mov -0xc(%ebp),%eax
303cf: 89 10 mov %edx,(%eax)
303d1: ff 45 e8 incl -0x18(%ebp)
303d4: 83 45 f4 04 addl $0x4,-0xc(%ebp)
303d8: ff 45 ec incl -0x14(%ebp)
303db: 81 7d ec ff 03 00 00 cmpl $0x3ff,-0x14(%ebp)
303e2: 76 dd jbe 303c1 <init_page+0x8d>
303e4: ff 45 f0 incl -0x10(%ebp)
303e7: 83 7d f0 1f cmpl $0x1f,-0x10(%ebp)
303eb: 76 91 jbe 3037e <init_page+0x4a>
303ed: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
303f4: 8b 45 e4 mov -0x1c(%ebp),%eax
303f7: c1 e8 0c shr $0xc,%eax
303fa: 25 ff ff 0f 00 and $0xfffff,%eax
303ff: c1 e0 0c shl $0xc,%eax
30402: 89 c2 mov %eax,%edx
30404: 8b 45 dc mov -0x24(%ebp),%eax
30407: 25 ff 0f 00 00 and $0xfff,%eax
3040c: 09 d0 or %edx,%eax
3040e: 89 45 dc mov %eax,-0x24(%ebp)
30411: 8b 45 dc mov -0x24(%ebp),%eax
30414: 83 ec 0c sub $0xc,%esp
30417: 50 push %eax
30418: e8 b1 fe ff ff call 302ce <write_cr3>
3041d: 83 c4 10 add $0x10,%esp
30420: e8 78 fe ff ff call 3029d <read_cr0>
30425: 89 45 e0 mov %eax,-0x20(%ebp)
30428: 8a 45 e3 mov -0x1d(%ebp),%al
3042b: 83 c8 80 or $0xffffff80,%eax
3042e: 88 45 e3 mov %al,-0x1d(%ebp)
30431: 8b 45 e0 mov -0x20(%ebp),%eax
30434: 83 ec 0c sub $0xc,%esp
30437: 50 push %eax
30438: e8 7b fe ff ff call 302b8 <write_cr0>
3043d: 83 c4 10 add $0x10,%esp
30440: 90 nop
30441: 8b 5d fc mov -0x4(%ebp),%ebx
30444: c9 leave
30445: c3 ret
00030446 <set_segment>:
30446: 55 push %ebp
30447: 89 e5 mov %esp,%ebp
30449: e8 e5 fd ff ff call 30233 <__x86.get_pc_thunk.ax>
3044e: 05 b2 bb 00 00 add $0xbbb2,%eax
30453: 8b 45 08 mov 0x8(%ebp),%eax
30456: 66 c7 00 ff ff movw $0xffff,(%eax)
3045b: 8b 45 08 mov 0x8(%ebp),%eax
3045e: 66 c7 40 02 00 00 movw $0x0,0x2(%eax)
30464: 8b 45 08 mov 0x8(%ebp),%eax
30467: c6 40 04 00 movb $0x0,0x4(%eax)
3046b: 8b 45 10 mov 0x10(%ebp),%eax
3046e: 83 e0 0f and $0xf,%eax
30471: 88 c2 mov %al,%dl
30473: 8b 45 08 mov 0x8(%ebp),%eax
30476: 88 d1 mov %dl,%cl
30478: 83 e1 0f and $0xf,%ecx
3047b: 8a 50 05 mov 0x5(%eax),%dl
3047e: 83 e2 f0 and $0xfffffff0,%edx
30481: 09 ca or %ecx,%edx
30483: 88 50 05 mov %dl,0x5(%eax)
30486: 8b 45 08 mov 0x8(%ebp),%eax
30489: 8a 50 05 mov 0x5(%eax),%dl
3048c: 83 ca 10 or $0x10,%edx
3048f: 88 50 05 mov %dl,0x5(%eax)
30492: 8b 45 0c mov 0xc(%ebp),%eax
30495: 83 e0 03 and $0x3,%eax
30498: 88 c2 mov %al,%dl
3049a: 8b 45 08 mov 0x8(%ebp),%eax
3049d: 83 e2 03 and $0x3,%edx
304a0: 88 d1 mov %dl,%cl
304a2: c1 e1 05 shl $0x5,%ecx
304a5: 8a 50 05 mov 0x5(%eax),%dl
304a8: 83 e2 9f and $0xffffff9f,%edx
304ab: 09 ca or %ecx,%edx
304ad: 88 50 05 mov %dl,0x5(%eax)
304b0: 8b 45 08 mov 0x8(%ebp),%eax
304b3: 8a 50 05 mov 0x5(%eax),%dl
304b6: 83 ca 80 or $0xffffff80,%edx
304b9: 88 50 05 mov %dl,0x5(%eax)
304bc: 8b 45 08 mov 0x8(%ebp),%eax
304bf: 8a 50 06 mov 0x6(%eax),%dl
304c2: 83 ca 0f or $0xf,%edx
304c5: 88 50 06 mov %dl,0x6(%eax)
304c8: 8b 45 08 mov 0x8(%ebp),%eax
304cb: 8a 50 06 mov 0x6(%eax),%dl
304ce: 83 e2 ef and $0xffffffef,%edx
304d1: 88 50 06 mov %dl,0x6(%eax)
304d4: 8b 45 08 mov 0x8(%ebp),%eax
304d7: 8a 50 06 mov 0x6(%eax),%dl
304da: 83 e2 df and $0xffffffdf,%edx
304dd: 88 50 06 mov %dl,0x6(%eax)
304e0: 8b 45 08 mov 0x8(%ebp),%eax
304e3: 8a 50 06 mov 0x6(%eax),%dl
304e6: 83 ca 40 or $0x40,%edx
304e9: 88 50 06 mov %dl,0x6(%eax)
304ec: 8b 45 08 mov 0x8(%ebp),%eax
304ef: 8a 50 06 mov 0x6(%eax),%dl
304f2: 83 ca 80 or $0xffffff80,%edx
304f5: 88 50 06 mov %dl,0x6(%eax)
304f8: 8b 45 08 mov 0x8(%ebp),%eax
304fb: c6 40 07 00 movb $0x0,0x7(%eax)
304ff: 90 nop
30500: 5d pop %ebp
30501: c3 ret
00030502 <init_segment>:
30502: 55 push %ebp
30503: 89 e5 mov %esp,%ebp
30505: 53 push %ebx
30506: 83 ec 04 sub $0x4,%esp
30509: e8 29 fd ff ff call 30237 <__x86.get_pc_thunk.bx>
3050e: 81 c3 f2 ba 00 00 add $0xbaf2,%ebx
30514: 83 ec 04 sub $0x4,%esp
30517: 6a 18 push $0x18
30519: 6a 00 push $0x0
3051b: c7 c0 00 00 07 00 mov $0x70000,%eax
30521: 50 push %eax
30522: e8 75 17 00 00 call 31c9c <memset>
30527: 83 c4 10 add $0x10,%esp
3052a: 83 ec 04 sub $0x4,%esp
3052d: 6a 0a push $0xa
3052f: 6a 00 push $0x0
30531: c7 c0 00 00 07 00 mov $0x70000,%eax
30537: 8d 40 08 lea 0x8(%eax),%eax
3053a: 50 push %eax
3053b: e8 06 ff ff ff call 30446 <set_segment>
30540: 83 c4 10 add $0x10,%esp
30543: 83 ec 04 sub $0x4,%esp
30546: 6a 02 push $0x2
30548: 6a 00 push $0x0
3054a: c7 c0 00 00 07 00 mov $0x70000,%eax
30550: 8d 40 10 lea 0x10(%eax),%eax
30553: 50 push %eax
30554: e8 ed fe ff ff call 30446 <set_segment>
30559: 83 c4 10 add $0x10,%esp
3055c: 83 ec 08 sub $0x8,%esp
3055f: 6a 18 push $0x18
30561: c7 c0 00 00 07 00 mov $0x70000,%eax
30567: 50 push %eax
30568: e8 77 fd ff ff call 302e4 <write_gdtr>
3056d: 83 c4 10 add $0x10,%esp
30570: 90 nop
30571: 8b 5d fc mov -0x4(%ebp),%ebx
30574: c9 leave
30575: c3 ret
00030576 <create_video_mapping>:
30576: 55 push %ebp
30577: 89 e5 mov %esp,%ebp
30579: 53 push %ebx
3057a: 83 ec 04 sub $0x4,%esp
3057d: e8 b1 fc ff ff call 30233 <__x86.get_pc_thunk.ax>
30582: 05 7e ba 00 00 add $0xba7e,%eax
30587: 8d 90 f4 c8 ff ff lea -0x370c(%eax),%edx
3058d: 52 push %edx
3058e: 6a 13 push $0x13
30590: 8d 90 3c c8 ff ff lea -0x37c4(%eax),%edx
30596: 52 push %edx
30597: 8d 90 50 c8 ff ff lea -0x37b0(%eax),%edx
3059d: 52 push %edx
3059e: 89 c3 mov %eax,%ebx
305a0: e8 bb 13 00 00 call 31960 <printk>
305a5: 83 c4 10 add $0x10,%esp
305a8: b8 01 00 00 00 mov $0x1,%eax
305ad: 82 90 8b 5d fc c9 c3 adcb $0xc3,-0x3603a275(%eax)
000305b4 <video_mapping_write_test>:
305b4: 55 push %ebp
305b5: 89 e5 mov %esp,%ebp
305b7: 83 ec 10 sub $0x10,%esp
305ba: e8 74 fc ff ff call 30233 <__x86.get_pc_thunk.ax>
305bf: 05 41 ba 00 00 add $0xba41,%eax
305c4: c7 45 f8 00 00 0a 00 movl $0xa0000,-0x8(%ebp)
305cb: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
305d2: eb 17 jmp 305eb <video_mapping_write_test+0x37>
305d4: 8b 45 fc mov -0x4(%ebp),%eax
305d7: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
305de: 8b 45 f8 mov -0x8(%ebp),%eax
305e1: 01 c2 add %eax,%edx
305e3: 8b 45 fc mov -0x4(%ebp),%eax
305e6: 89 02 mov %eax,(%edx)
305e8: ff 45 fc incl -0x4(%ebp)
305eb: 81 7d fc 7f 3e 00 00 cmpl $0x3e7f,-0x4(%ebp)
305f2: 7e e0 jle 305d4 <video_mapping_write_test+0x20>
305f4: 90 nop
305f5: c9 leave
305f6: c3 ret
000305f7 <video_mapping_read_test>:
305f7: 55 push %ebp
305f8: 89 e5 mov %esp,%ebp
305fa: 53 push %ebx
305fb: 83 ec 14 sub $0x14,%esp
305fe: e8 34 fc ff ff call 30237 <__x86.get_pc_thunk.bx>
30603: 81 c3 fd b9 00 00 add $0xb9fd,%ebx
30609: c7 45 f0 00 00 0a 00 movl $0xa0000,-0x10(%ebp)
30610: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
30617: eb 4a jmp 30663 <video_mapping_read_test+0x6c>
30619: 8b 45 f4 mov -0xc(%ebp),%eax
3061c: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
30623: 8b 45 f0 mov -0x10(%ebp),%eax
30626: 01 d0 add %edx,%eax
30628: 8b 10 mov (%eax),%edx
3062a: 8b 45 f4 mov -0xc(%ebp),%eax
3062d: 39 c2 cmp %eax,%edx
3062f: 74 2f je 30660 <video_mapping_read_test+0x69>
30631: 83 ec 0c sub $0xc,%esp
30634: 8d 83 99 c8 ff ff lea -0x3767(%ebx),%eax
3063a: 50 push %eax
3063b: 8d 83 0c c9 ff ff lea -0x36f4(%ebx),%eax
30641: 50 push %eax
30642: 6a 22 push $0x22
30644: 8d 83 3c c8 ff ff lea -0x37c4(%ebx),%eax
3064a: 50 push %eax
3064b: 8d 83 a8 c8 ff ff lea -0x3758(%ebx),%eax
30651: 50 push %eax
30652: e8 09 13 00 00 call 31960 <printk>
30657: 83 c4 20 add $0x20,%esp
3065a: b8 01 00 00 00 mov $0x1,%eax
3065f: 82 ff 45 cmp $0x45,%bh
30662: f4 hlt
30663: 81 7d f4 7f 3e 00 00 cmpl $0x3e7f,-0xc(%ebp)
3066a: 7e ad jle 30619 <video_mapping_read_test+0x22>
3066c: 90 nop
3066d: 8b 5d fc mov -0x4(%ebp),%ebx
30670: c9 leave
30671: c3 ret
00030672 <video_mapping_clear>:
30672: 55 push %ebp
30673: 89 e5 mov %esp,%ebp
30675: 53 push %ebx
30676: 83 ec 04 sub $0x4,%esp
30679: e8 b5 fb ff ff call 30233 <__x86.get_pc_thunk.ax>
3067e: 05 82 b9 00 00 add $0xb982,%eax
30683: 83 ec 04 sub $0x4,%esp
30686: 68 00 fa 00 00 push $0xfa00
3068b: 6a 00 push $0x0
3068d: 68 00 00 0a 00 push $0xa0000
30692: 89 c3 mov %eax,%ebx
30694: e8 03 16 00 00 call 31c9c <memset>
30699: 83 c4 10 add $0x10,%esp
3069c: 90 nop
3069d: 8b 5d fc mov -0x4(%ebp),%ebx
306a0: c9 leave
306a1: c3 ret
000306a2 <get_updir>:
306a2: 55 push %ebp
306a3: 89 e5 mov %esp,%ebp
306a5: e8 89 fb ff ff call 30233 <__x86.get_pc_thunk.ax>
306aa: 05 56 b9 00 00 add $0xb956,%eax
306af: c7 c0 00 20 09 00 mov $0x92000,%eax
306b5: 5d pop %ebp
306b6: c3 ret
000306b7 <get_ucr3>:
306b7: 55 push %ebp
306b8: 89 e5 mov %esp,%ebp
306ba: e8 74 fb ff ff call 30233 <__x86.get_pc_thunk.ax>
306bf: 05 41 b9 00 00 add $0xb941,%eax
306c4: c7 c0 00 30 09 00 mov $0x93000,%eax
306ca: 8b 00 mov (%eax),%eax
306cc: 5d pop %ebp
306cd: c3 ret
000306ce <mm_brk>:
306ce: 55 push %ebp
306cf: 89 e5 mov %esp,%ebp
306d1: 53 push %ebx
306d2: 83 ec 04 sub $0x4,%esp
306d5: e8 5d fb ff ff call 30237 <__x86.get_pc_thunk.bx>
306da: 81 c3 26 b9 00 00 add $0xb926,%ebx
306e0: 8b 83 08 10 00 00 mov 0x1008(%ebx),%eax
306e6: 39 45 08 cmp %eax,0x8(%ebp)
306e9: 76 22 jbe 3070d <mm_brk+0x3f>
306eb: 8b 83 08 10 00 00 mov 0x1008(%ebx),%eax
306f1: 8b 55 08 mov 0x8(%ebp),%edx
306f4: 29 c2 sub %eax,%edx
306f6: 89 d0 mov %edx,%eax
306f8: 89 c2 mov %eax,%edx
306fa: 8b 83 08 10 00 00 mov 0x1008(%ebx),%eax
30700: 83 ec 08 sub $0x8,%esp
30703: 52 push %edx
30704: 50 push %eax
30705: e8 b6 12 00 00 call 319c0 <mm_malloc>
3070a: 83 c4 10 add $0x10,%esp
3070d: 8b 45 08 mov 0x8(%ebp),%eax
30710: 89 83 08 10 00 00 mov %eax,0x1008(%ebx)
30716: 90 nop
30717: 8b 5d fc mov -0x4(%ebp),%ebx
3071a: c9 leave
3071b: c3 ret
0003071c <init_mm>:
3071c: 55 push %ebp
3071d: 89 e5 mov %esp,%ebp
3071f: 53 push %ebx
30720: 83 ec 14 sub $0x14,%esp
30723: e8 0f fb ff ff call 30237 <__x86.get_pc_thunk.bx>
30728: 81 c3 d8 b8 00 00 add $0xb8d8,%ebx
3072e: e8 ec fb ff ff call 3031f <get_kpdir>
30733: 89 45 f4 mov %eax,-0xc(%ebp)
30736: 83 ec 04 sub $0x4,%esp
30739: 68 00 10 00 00 push $0x1000
3073e: 6a 00 push $0x0
30740: c7 c0 00 20 09 00 mov $0x92000,%eax
30746: 50 push %eax
30747: e8 50 15 00 00 call 31c9c <memset>
3074c: 83 c4 10 add $0x10,%esp
3074f: 83 ec 04 sub $0x4,%esp
30752: 68 80 00 00 00 push $0x80
30757: ff 75 f4 pushl -0xc(%ebp)
3075a: c7 c0 00 20 09 00 mov $0x92000,%eax
30760: 50 push %eax
30761: e8 ee 14 00 00 call 31c54 <memcpy>
30766: 83 c4 10 add $0x10,%esp
30769: c7 c0 00 20 09 00 mov $0x92000,%eax
3076f: 25 00 fc ff ff and $0xfffffc00,%eax
30774: 89 c2 mov %eax,%edx
30776: c7 c0 00 30 09 00 mov $0x93000,%eax
3077c: 89 10 mov %edx,(%eax)
3077e: 90 nop
3077f: 8b 5d fc mov -0x4(%ebp),%ebx
30782: c9 leave
30783: c3 ret
00030784 <loader>:
30784: 55 push %ebp
30785: 89 e5 mov %esp,%ebp
30787: 53 push %ebx
30788: 83 ec 14 sub $0x14,%esp
3078b: e8 a7 fa ff ff call 30237 <__x86.get_pc_thunk.bx>
30790: 81 c3 70 b8 00 00 add $0xb870,%ebx
30796: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
3079d: 8d 83 70 c9 ff ff lea -0x3690(%ebx),%eax
307a3: 50 push %eax
307a4: 6a 1e push $0x1e
307a6: 8d 83 24 c9 ff ff lea -0x36dc(%ebx),%eax
307ac: 50 push %eax
307ad: 8d 83 34 c9 ff ff lea -0x36cc(%ebx),%eax
307b3: 50 push %eax
307b4: e8 a7 11 00 00 call 31960 <printk>
307b9: 83 c4 10 add $0x10,%esp
307bc: 8b 45 f0 mov -0x10(%ebp),%eax
307bf: 8b 50 1c mov 0x1c(%eax),%edx
307c2: 8b 45 f0 mov -0x10(%ebp),%eax
307c5: 01 d0 add %edx,%eax
307c7: 89 45 f4 mov %eax,-0xc(%ebp)
307ca: 8b 45 f0 mov -0x10(%ebp),%eax
307cd: 8b 40 2c mov 0x2c(%eax),%eax
307d0: 0f b7 c0 movzwl %ax,%eax
307d3: c1 e0 05 shl $0x5,%eax
307d6: 89 c2 mov %eax,%edx
307d8: 8b 45 f4 mov -0xc(%ebp),%eax
307db: 01 d0 add %edx,%eax
307dd: 89 45 ec mov %eax,-0x14(%ebp)
307e0: eb 4e jmp 30830 <loader+0xac>
307e2: 8b 45 f4 mov -0xc(%ebp),%eax
307e5: 8b 00 mov (%eax),%eax
307e7: 83 f8 01 cmp $0x1,%eax
307ea: 75 40 jne 3082c <loader+0xa8>
307ec: 8b 45 f4 mov -0xc(%ebp),%eax
307ef: 8b 40 14 mov 0x14(%eax),%eax
307f2: 8b 55 f4 mov -0xc(%ebp),%edx
307f5: 8b 52 08 mov 0x8(%edx),%edx
307f8: 83 ec 04 sub $0x4,%esp
307fb: 50 push %eax
307fc: 6a 00 push $0x0
307fe: 52 push %edx
307ff: e8 98 14 00 00 call 31c9c <memset>
30804: 83 c4 10 add $0x10,%esp
30807: 8b 45 f4 mov -0xc(%ebp),%eax
3080a: 8b 40 10 mov 0x10(%eax),%eax
3080d: 8b 55 f4 mov -0xc(%ebp),%edx
30810: 8b 4a 04 mov 0x4(%edx),%ecx
30813: 8b 55 f0 mov -0x10(%ebp),%edx
30816: 01 d1 add %edx,%ecx
30818: 8b 55 f4 mov -0xc(%ebp),%edx
3081b: 8b 52 08 mov 0x8(%edx),%edx
3081e: 83 ec 04 sub $0x4,%esp
30821: 50 push %eax
30822: 51 push %ecx
30823: 52 push %edx
30824: e8 2b 14 00 00 call 31c54 <memcpy>
30829: 83 c4 10 add $0x10,%esp
3082c: 83 45 f4 20 addl $0x20,-0xc(%ebp)
30830: 8b 45 f4 mov -0xc(%ebp),%eax
30833: 3b 45 ec cmp -0x14(%ebp),%eax
30836: 72 aa jb 307e2 <loader+0x5e>
30838: 8b 45 f0 mov -0x10(%ebp),%eax
3083b: 8b 40 18 mov 0x18(%eax),%eax
3083e: 89 45 e8 mov %eax,-0x18(%ebp)
30841: 8b 45 e8 mov -0x18(%ebp),%eax
30844: 8b 5d fc mov -0x4(%ebp),%ebx
30847: c9 leave
30848: c3 ret
00030849 <in_byte>:
30849: 55 push %ebp
3084a: 89 e5 mov %esp,%ebp
3084c: 83 ec 14 sub $0x14,%esp
3084f: e8 df f9 ff ff call 30233 <__x86.get_pc_thunk.ax>
30854: 05 ac b7 00 00 add $0xb7ac,%eax
30859: 8b 45 08 mov 0x8(%ebp),%eax
3085c: 66 89 45 ec mov %ax,-0x14(%ebp)
30860: 8b 45 ec mov -0x14(%ebp),%eax
30863: 89 c2 mov %eax,%edx
30865: ec in (%dx),%al
30866: 88 45 ff mov %al,-0x1(%ebp)
30869: 8a 45 ff mov -0x1(%ebp),%al
3086c: c9 leave
3086d: c3 ret
0003086e <out_byte>:
3086e: 55 push %ebp
3086f: 89 e5 mov %esp,%ebp
30871: 83 ec 08 sub $0x8,%esp
30874: e8 ba f9 ff ff call 30233 <__x86.get_pc_thunk.ax>
30879: 05 87 b7 00 00 add $0xb787,%eax
3087e: 8b 45 08 mov 0x8(%ebp),%eax
30881: 8b 55 0c mov 0xc(%ebp),%edx
30884: 66 89 45 fc mov %ax,-0x4(%ebp)
30888: 88 55 f8 mov %dl,-0x8(%ebp)
3088b: 8a 45 f8 mov -0x8(%ebp),%al
3088e: 8b 55 fc mov -0x4(%ebp),%edx
30891: ee out %al,(%dx)
30892: 90 nop
30893: c9 leave
30894: c3 ret
00030895 <out_long>:
30895: 55 push %ebp
30896: 89 e5 mov %esp,%ebp
30898: 83 ec 04 sub $0x4,%esp
3089b: e8 93 f9 ff ff call 30233 <__x86.get_pc_thunk.ax>
308a0: 05 60 b7 00 00 add $0xb760,%eax
308a5: 8b 45 08 mov 0x8(%ebp),%eax
308a8: 66 89 45 fc mov %ax,-0x4(%ebp)
308ac: 8b 45 0c mov 0xc(%ebp),%eax
308af: 8b 55 fc mov -0x4(%ebp),%edx
308b2: ef out %eax,(%dx)
308b3: 90 nop
308b4: c9 leave
308b5: c3 ret
000308b6 <dma_prepare>:
308b6: 55 push %ebp
308b7: 89 e5 mov %esp,%ebp
308b9: 83 ec 10 sub $0x10,%esp
308bc: e8 72 f9 ff ff call 30233 <__x86.get_pc_thunk.ax>
308c1: 05 3f b7 00 00 add $0xb73f,%eax
308c6: 8b 55 08 mov 0x8(%ebp),%edx
308c9: 89 55 fc mov %edx,-0x4(%ebp)
308cc: c7 c2 04 30 09 00 mov $0x93004,%edx
308d2: 8b 4d fc mov -0x4(%ebp),%ecx
308d5: 89 0a mov %ecx,(%edx)
308d7: c7 c2 04 30 09 00 mov $0x93004,%edx
308dd: 66 c7 42 04 00 02 movw $0x200,0x4(%edx)
308e3: c7 c2 04 30 09 00 mov $0x93004,%edx
308e9: 8a 4a 07 mov 0x7(%edx),%cl
308ec: 83 c9 80 or $0xffffff80,%ecx
308ef: 88 4a 07 mov %cl,0x7(%edx)
308f2: c7 c1 04 30 09 00 mov $0x93004,%ecx
308f8: 66 8b 51 06 mov 0x6(%ecx),%dx
308fc: 81 e2 00 80 ff ff and $0xffff8000,%edx
30902: 66 89 51 06 mov %dx,0x6(%ecx)
30906: c7 c0 04 30 09 00 mov $0x93004,%eax
3090c: 89 45 f8 mov %eax,-0x8(%ebp)
3090f: ff 75 f8 pushl -0x8(%ebp)
30912: 68 44 c0 00 00 push $0xc044
30917: e8 79 ff ff ff call 30895 <out_long>
3091c: 83 c4 08 add $0x8,%esp
3091f: 90 nop
30920: c9 leave
30921: c3 ret
00030922 <dma_issue_read>:
30922: 55 push %ebp
30923: 89 e5 mov %esp,%ebp
30925: e8 09 f9 ff ff call 30233 <__x86.get_pc_thunk.ax>
3092a: 05 d6 b6 00 00 add $0xb6d6,%eax
3092f: 68 40 c0 00 00 push $0xc040
30934: e8 10 ff ff ff call 30849 <in_byte>
30939: 83 c4 04 add $0x4,%esp
3093c: 83 c8 09 or $0x9,%eax
3093f: 0f b6 c0 movzbl %al,%eax
30942: 50 push %eax
30943: 68 40 c0 00 00 push $0xc040
30948: e8 21 ff ff ff call 3086e <out_byte>
3094d: 83 c4 08 add $0x8,%esp
30950: 90 nop
30951: c9 leave
30952: c3 ret
00030953 <wait_intr>:
30953: 55 push %ebp
30954: 89 e5 mov %esp,%ebp
30956: e8 d8 f8 ff ff call 30233 <__x86.get_pc_thunk.ax>
3095b: 05 a5 b6 00 00 add $0xb6a5,%eax
30960: f4 hlt
30961: 90 nop
30962: 5d pop %ebp
30963: c3 ret
00030964 <ide_read>:
30964: 55 push %ebp
30965: 89 e5 mov %esp,%ebp
30967: 56 push %esi
30968: 53 push %ebx
30969: 83 ec 10 sub $0x10,%esp
3096c: e8 c6 f8 ff ff call 30237 <__x86.get_pc_thunk.bx>
30971: 81 c3 8f b6 00 00 add $0xb68f,%ebx
30977: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
3097e: eb 22 jmp 309a2 <ide_read+0x3e>
30980: 8b 55 08 mov 0x8(%ebp),%edx
30983: 8b 45 f4 mov -0xc(%ebp),%eax
30986: 8d 34 02 lea (%edx,%eax,1),%esi
30989: 8b 55 0c mov 0xc(%ebp),%edx
3098c: 8b 45 f4 mov -0xc(%ebp),%eax
3098f: 01 d0 add %edx,%eax
30991: 83 ec 0c sub $0xc,%esp
30994: 50 push %eax
30995: e8 11 05 00 00 call 30eab <read_byte>
3099a: 83 c4 10 add $0x10,%esp
3099d: 88 06 mov %al,(%esi)
3099f: ff 45 f4 incl -0xc(%ebp)
309a2: 8b 45 f4 mov -0xc(%ebp),%eax
309a5: 3b 45 10 cmp 0x10(%ebp),%eax
309a8: 72 d6 jb 30980 <ide_read+0x1c>
309aa: 90 nop
309ab: 8d 65 f8 lea -0x8(%ebp),%esp
309ae: 5b pop %ebx
309af: 5e pop %esi
309b0: 5d pop %ebp
309b1: c3 ret
000309b2 <ide_write>:
309b2: 55 push %ebp
309b3: 89 e5 mov %esp,%ebp
309b5: 53 push %ebx
309b6: 83 ec 14 sub $0x14,%esp
309b9: e8 79 f8 ff ff call 30237 <__x86.get_pc_thunk.bx>
309be: 81 c3 42 b6 00 00 add $0xb642,%ebx
309c4: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
309cb: eb 25 jmp 309f2 <ide_write+0x40>
309cd: 8b 55 08 mov 0x8(%ebp),%edx
309d0: 8b 45 f4 mov -0xc(%ebp),%eax
309d3: 01 d0 add %edx,%eax
309d5: 8a 00 mov (%eax),%al
309d7: 0f b6 c0 movzbl %al,%eax
309da: 8b 4d 0c mov 0xc(%ebp),%ecx
309dd: 8b 55 f4 mov -0xc(%ebp),%edx
309e0: 01 ca add %ecx,%edx
309e2: 83 ec 08 sub $0x8,%esp
309e5: 50 push %eax
309e6: 52 push %edx
309e7: e8 fc 04 00 00 call 30ee8 <write_byte>
309ec: 83 c4 10 add $0x10,%esp
309ef: ff 45 f4 incl -0xc(%ebp)
309f2: 8b 45 f4 mov -0xc(%ebp),%eax
309f5: 3b 45 10 cmp 0x10(%ebp),%eax
309f8: 72 d3 jb 309cd <ide_write+0x1b>
309fa: 90 nop
309fb: 8b 5d fc mov -0x4(%ebp),%ebx
309fe: c9 leave
309ff: c3 ret
00030a00 <ide_writeback>:
30a00: 55 push %ebp
30a01: 89 e5 mov %esp,%ebp
30a03: 53 push %ebx
30a04: 83 ec 04 sub $0x4,%esp
30a07: e8 2b f8 ff ff call 30237 <__x86.get_pc_thunk.bx>
30a0c: 81 c3 f4 b5 00 00 add $0xb5f4,%ebx
30a12: 8b 83 10 10 00 00 mov 0x1010(%ebx),%eax
30a18: 40 inc %eax
30a19: 89 83 10 10 00 00 mov %eax,0x1010(%ebx)
30a1f: 8b 83 10 10 00 00 mov 0x1010(%ebx),%eax
30a25: 83 f8 64 cmp $0x64,%eax
30a28: 75 0f jne 30a39 <ide_writeback+0x39>
30a2a: e8 41 03 00 00 call 30d70 <cache_writeback>
30a2f: c7 83 10 10 00 00 00 movl $0x0,0x1010(%ebx)
30a36: 00 00 00
30a39: 90 nop
30a3a: 83 c4 04 add $0x4,%esp
30a3d: 5b pop %ebx
30a3e: 5d pop %ebp
30a3f: c3 ret
00030a40 <ide_intr>: