.file "cdinit2.c" .version "01.01" gcc2_compiled.: .globl sleep_time .data .align 4 .type sleep_time,@object .size sleep_time,8 sleep_time: .long 10 .long 0 .section .rodata .align 32 .type tar_file,@object .size tar_file,35 tar_file: .string "/tmpfs/cdrom/intel32/boot/root.tar" .align 4 .type tar_command,@object tar_command: .long .LC0 .long .LC1 .long .LC2 .long 0 .LC2: .string "-" .LC1: .string "xpf" .LC0: .string "/tmpfs/cdrom/intel32/bin/tar" .size tar_command,16 .data .align 4 .type cdinit3_command,@object cdinit3_command: .long .LC3 .long 0 .section .rodata .LC3: .string "/sbin/cdinit3" .size cdinit3_command,8 .data .align 4 .type environment,@object environment: .long .LC4 .long .LC5 .long .LC6 .long 0 .section .rodata .LC6: .string "TERM=linux" .LC5: .string "HOME=/" .align 32 .LC4: .string "PATH=/sbin:/bin:/usr/sbin:/usr/bin" .size environment,16 .data .align 32 .type display,@object .size display,81 display: .string "\rloading tmpfs: - - [ -.-%] of - |.........................|" .text .align 4 .type string_length,@function string_length: movl 4(%esp),%edx movl %edx,%eax cmpb $0,(%edx) je .L240 .align 4 .L241: incl %eax cmpb $0,(%eax) jne .L241 .L240: subl %edx,%eax ret .Lfe1: .size string_length,.Lfe1-string_length .align 4 .type write_string,@function write_string: pushl %esi pushl %ebx movl 12(%esp),%ebx movl 16(%esp),%esi pushl %esi call string_length movl %eax,%edx addl $4,%esp movl $4,%eax movl %esi,%ecx #APP int $0x80 #NO_APP cmpl $-126,%eax jbe .L247 negl %eax movl %eax,errno movl $-1,%eax .align 4 .L247: popl %ebx popl %esi ret .Lfe2: .size write_string,.Lfe2-write_string .section .rodata .LC7: .string "/proc" .LC8: .string "/proc/cmdline" .LC9: .string "boot parameters: " .LC10: .string "\n" .LC11: .string "/tmpfs/cdrom/intel32/lib" .LC12: .string "/lib" .LC13: .string "/tmpfs" .LC14: .string "\\|/-" .LC15: .string "READ ERROR\n" .LC16: .string "WRITE ERROR\n" .LC17: .string "/tmpfs/mnt" .LC18: .string "/" .LC19: .string "/dev/console" .text .align 4 .type main1,@function main1: subl $3228,%esp pushl %ebp pushl %edi pushl %esi pushl %ebx movl $39,%eax movl $.LC7,%ebx movl $493,%ecx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L256 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L256: testl %ebp,%ebp jne .L609 movl $21,%eax movl $.LC7+1,%ebx movl $.LC7,%ecx movl %ebx,%edx movl $-1058209792,%esi xorl %edi,%edi #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L264 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L264: testl %ebp,%ebp jne .L610 movl $5,%eax movl $.LC8,%ebx xorl %ecx,%ecx xorl %edx,%edx #APP int $0x80 #NO_APP movl %eax,20(%esp) cmpl $-126,%eax jbe .L272 negl %eax movl %eax,errno movl $-1,20(%esp) .align 4 .L272: movl 20(%esp),%ebp testl %ebp,%ebp jl .L609 leal 2156(%esp),%esi movl %esi,16(%esp) movl $3,%eax movl %ebp,%ebx movl %esi,%ecx movl $1024,%edx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L279 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L279: cmpl $2,%ebp jle .L283 decl %ebp movl 16(%esp),%esi cmpb $10,(%ebp,%esi) jne .L284 movb $0,(%ebp,%esi) .L284: pushl $.LC9 pushl $1 call write_string addl $8,%esp movl $4,%eax movl $1,%ebx movl 16(%esp),%ecx movl %ebp,%edx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L289 negl %ebp movl %ebp,errno .align 4 .L289: movl $4,%eax movl $1,%ebx movl $.LC10,%ecx movl $1,%edx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L283 negl %ebp movl %ebp,errno .align 4 .L283: movl $6,%eax movl 20(%esp),%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L303 negl %ebp movl %ebp,errno .align 4 .L303: movl $22,%eax movl $.LC7,%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L310 negl %ebp movl %ebp,errno .align 4 .L310: movl $40,%eax movl $.LC7,%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L317 negl %ebp movl %ebp,errno .align 4 .L317: movl $83,%eax movl $.LC11,%ebx movl $.LC12,%ecx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L324 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L324: testl %ebp,%ebp jne .L611 movl $5,%eax movl $tar_file,%ebx xorl %ecx,%ecx xorl %edx,%edx #APP int $0x80 #NO_APP movl %eax,80(%esp) cmpl $-126,%eax jbe .L332 negl %eax movl %eax,errno movl $-1,80(%esp) .align 4 .L332: cmpl $0,80(%esp) jl .L611 leal 3180(%esp),%ecx movl $108,%eax movl 80(%esp),%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L340 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L340: testl %ebp,%ebp jne .L609 movl 3200(%esp),%esi movl %esi,84(%esp) movl $48,%eax movl $13,%ebx movl $1,%ecx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L348 negl %ebp movl %ebp,errno .align 4 .L348: leal 100(%esp),%esi movl %esi,76(%esp) movl $42,%eax movl %esi,%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L355 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L355: testl %ebp,%ebp jl .L604 movl $2,%eax #APP int $0x80 #NO_APP movl %eax,72(%esp) cmpl $-126,%eax jbe .L362 negl %eax movl %eax,errno movl $-1,72(%esp) .align 4 .L362: cmpl $0,72(%esp) jl .L610 jne .L367 movl $6,%eax movl 76(%esp),%ebx movl 4(%ebx),%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L372 negl %ebp movl %ebp,errno .align 4 .L372: movl $6,%eax xorl %ebx,%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L379 negl %ebp movl %ebp,errno .align 4 .L379: movl 100(%esp),%esi movl %esi,16(%esp) movl $63,%eax movl %esi,%ebx xorl %ecx,%ecx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L386 negl %ebp movl %ebp,errno .align 4 .L386: movl $6,%eax movl 16(%esp),%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L393 negl %ebp movl %ebp,errno .align 4 .L393: movl $55,%eax xorl %ebx,%ebx movl $2,%ecx xorl %edx,%edx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L400 negl %ebp movl %ebp,errno .align 4 .L400: movl $12,%eax movl $.LC13,%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L407 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L407: testl %ebp,%ebp jl .L609 movl $11,%eax movl tar_command,%ebx movl $tar_command,%ecx movl $environment,%edx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L610 negl %ebp movl %ebp,errno jmp .L610 .align 4 .L367: movl $6,%eax movl 100(%esp),%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L422 negl %ebp movl %ebp,errno .align 4 .L422: movl 84(%esp),%esi movl %esi,28(%esp) movl $display+50,24(%esp) movl $0xcccccccd,%ebp jmp .L425 .align 4 .L430: movl 16(%esp),%eax movl %eax,28(%esp) testl %eax,%eax je .L431 .L425: movl 28(%esp),%eax mull %ebp shrl $3,%edx movl %edx,16(%esp) leal (%edx,%edx,4),%ecx addl %ecx,%ecx subl %ecx,28(%esp) movb 28(%esp),%bl addb $48,%bl movl 24(%esp),%esi movb %bl,(%esi) decl %esi movl %esi,24(%esp) cmpl $display+41,%esi ja .L430 .align 4 .L431: movl 24(%esp),%edi movb $32,(%edi) decl %edi movl %edi,24(%esp) cmpl $display+41,%edi ja .L431 movl $4,%eax movl $1,%ebx movl $display,%ecx movl $80,%edx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L440 negl %ebp movl %ebp,errno .align 4 .L440: leal 108(%esp),%esi movl %esi,68(%esp) movl %esi,40(%esp) movl $.LC14,64(%esp) movl $0,20(%esp) movl $0,16(%esp) movl $0,60(%esp) movl $0,56(%esp) leal 92(%esp),%edi movl %edi,44(%esp) jmp .L443 .align 4 .L454: cmpl $0,20(%esp) jne .L483 movl $3,%eax movl 80(%esp),%ebx movl 40(%esp),%ecx movl $2048,%edx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L487 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L487: movl %ebp,20(%esp) testl %ebp,%ebp jne .L491 movl $-2,20(%esp) .L491: cmpl $0,20(%esp) jl .L443 movl 40(%esp),%esi movl %esi,68(%esp) .L483: cmpl $0,20(%esp) jle .L443 movl $4,%eax movl 76(%esp),%edx movl 4(%edx),%ebx movl 68(%esp),%ecx movl 20(%esp),%edx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L497 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L497: movl %ebp,16(%esp) testl %ebp,%ebp jl .L443 movl %ebp,%ecx addl %ecx,68(%esp) subl %ecx,20(%esp) addl %ecx,60(%esp) .L443: movl $78,%eax movl 44(%esp),%ebx xorl %ecx,%ecx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L450 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L450: testl %ebp,%ebp jl .L604 movl 44(%esp),%esi movl 4(%esi),%ebp movl $1125899907,%eax mull %ebp movl %edx,%ebp shrl $14,%ebp movl 92(%esp),%ecx sall $4,%ecx addl %ecx,%ebp cmpl $0,20(%esp) jl .L455 cmpl $0,16(%esp) jl .L455 cmpl 56(%esp),%ebp je .L454 .L455: movl %ebp,56(%esp) movl 64(%esp),%ebx movb (%ebx),%bl movl %ebx,%ebp movl $display+27,24(%esp) movl 60(%esp),%esi sall $2,%esi movl %esi,52(%esp) movl $display+54,48(%esp) testb %bl,%bl jne .L456 movl $.LC14,64(%esp) movb .LC14,%al movl %eax,%ebp .L456: movl %ebp,%edx movb %dl,display+16 incl 64(%esp) movl 60(%esp),%ecx movl %ecx,28(%esp) movl 24(%esp),%ebx movl $0xcccccccd,%ebp jmp .L457 .align 4 .L462: movl 32(%esp),%eax movl %eax,28(%esp) testl %eax,%eax je .L463 .L457: movl 28(%esp),%eax mull %ebp shrl $3,%edx movl %edx,32(%esp) leal (%edx,%edx,4),%ecx addl %ecx,%ecx subl %ecx,28(%esp) movb 28(%esp),%bl addb $48,%bl movl 24(%esp),%esi movb %bl,(%esi) decl %esi movl %esi,24(%esp) cmpl $display+18,%esi ja .L462 .align 4 .L463: movl 24(%esp),%edi movb $32,(%edi) decl %edi movl %edi,24(%esp) cmpl $display+18,%edi ja .L463 movl 52(%esp),%eax addl 60(%esp),%eax movl %eax,%ebp movl $1374389535,%eax mull 84(%esp) shrl $6,%edx movl %edx,24(%esp) movl %ebp,%eax xorl %edx,%edx divl 24(%esp) movl %eax,28(%esp) movl $0xcccccccd,%eax mull 28(%esp) movl %edx,%ebp shrl $3,%ebp leal (%ebp,%ebp,4),%ecx addl %ecx,%ecx subl %ecx,28(%esp) movb 28(%esp),%bl addb $48,%bl movb %bl,display+34 movl %ebp,28(%esp) movl $0xcccccccd,%eax mull %ebp movl %edx,%ebp shrl $3,%ebp leal (%ebp,%ebp,4),%ecx addl %ecx,%ecx subl %ecx,28(%esp) movb 28(%esp),%bl addb $48,%bl movb %bl,display+32 movl %ebp,28(%esp) testl %ebp,%ebp je .L468 movl $0xcccccccd,%eax mull %ebp movl %edx,%ebp shrl $3,%ebp leal (%ebp,%ebp,4),%ecx addl %ecx,%ecx subl %ecx,28(%esp) movb 28(%esp),%bl addb $48,%bl movb %bl,display+31 movl %ebp,28(%esp) testl %ebp,%ebp je .L468 movl $0xcccccccd,%eax mull %ebp movl %edx,%ebp shrl $3,%ebp leal (%ebp,%ebp,4),%ecx addl %ecx,%ecx subl %ecx,28(%esp) movb 28(%esp),%bl addb $48,%bl movb %bl,display+30 .L468: movl 52(%esp),%esi addl 60(%esp),%esi movl %esi,%ebp movl $0xcccccccd,%eax mull 84(%esp) shrl $2,%edx movl %edx,24(%esp) movl %ebp,%eax xorl %edx,%edx divl 24(%esp) movl %eax,28(%esp) movl 48(%esp),%ecx movl %ecx,24(%esp) subl $1,28(%esp) jc .L471 .align 4 .L472: movl 24(%esp),%ebx movb $42,(%ebx) incl %ebx movl %ebx,24(%esp) subl $1,28(%esp) jnc .L472 .L471: subl $display,24(%esp) movl $4,%eax movl $1,%ebx movl $display,%ecx movl 24(%esp),%edx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L478 negl %ebp movl %ebp,errno .align 4 .L478: cmpl $0,20(%esp) jl .L444 cmpl $0,16(%esp) jge .L454 .L444: cmpl $-1,20(%esp) jne .L503 pushl $.LC15 pushl $1 call write_string addl $8,%esp .L503: cmpl $-1,16(%esp) jne .L504 pushl $.LC16 pushl $1 call write_string addl $8,%esp .L504: movl $6,%eax movl 80(%esp),%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L509 negl %ebp movl %ebp,errno .align 4 .L509: movl $6,%eax movl 76(%esp),%ebx movl 4(%ebx),%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L516 negl %ebp movl %ebp,errno .align 4 .L516: leal 88(%esp),%ecx movl $7,%eax movl 72(%esp),%ebx xorl %edx,%edx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L523 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L523: testl %ebp,%ebp jge .L519 .L610: movl $4,%eax jmp .L607 .align 4 .L519: movl $4,%eax movl $1,%ebx movl $.LC10,%ecx movl $1,%edx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L531 negl %ebp movl %ebp,errno .align 4 .L531: movl $0,errno movl $217,%eax movl $.LC13,%ebx movl $.LC17,%ecx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L538 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L538: testl %ebp,%ebp je .L534 .L611: movl $3,%eax jmp .L607 .align 4 .L534: movl $12,%eax movl $.LC18,%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L546 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L546: testl %ebp,%ebp jne .L609 movl $6,%eax xorl %ebx,%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L554 negl %ebp movl %ebp,errno .align 4 .L554: movl $6,%eax movl $1,%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L561 negl %ebp movl %ebp,errno .align 4 .L561: movl $6,%eax movl $2,%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L568 negl %ebp movl %ebp,errno .align 4 .L568: movl $5,%eax movl $.LC19,%ebx movl $2,%ecx xorl %edx,%edx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L575 negl %ebp movl %ebp,errno .align 4 .L575: movl $41,%eax xorl %ebx,%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L582 negl %ebp movl %ebp,errno .align 4 .L582: movl $41,%eax xorl %ebx,%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L589 negl %ebp movl %ebp,errno .align 4 .L589: movl $22,%eax movl $.LC17+6,%ebx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L596 negl %ebp movl %ebp,errno movl $-1,%ebp .align 4 .L596: testl %ebp,%ebp je .L592 .L609: movl $2,%eax jmp .L607 .align 4 .L592: movl $11,%eax movl cdinit3_command,%ebx movl $cdinit3_command,%ecx movl $environment,%edx #APP int $0x80 #NO_APP movl %eax,%ebp cmpl $-126,%ebp jbe .L604 negl %ebp movl %ebp,errno .align 4 .L604: movl $1,%eax .L607: popl %ebx popl %esi popl %edi popl %ebp addl $3228,%esp ret .Lfe3: .size main1,.Lfe3-main1 .section .rodata .LC20: .string "halting ... \n\n\n\n\n\n" .text .align 4 .globl _start .type _start,@function _start: pushl %esi pushl %ebx movl $0,errno call main1 pushl $.LC20 pushl $1 call write_string addl $8,%esp movl $88,%eax movl $-18751827,%ebx movl $672274793,%ecx movl $-839974621,%edx xorl %esi,%esi #APP int $0x80 #NO_APP cmpl $-126,%eax jbe .L622 negl %eax movl %eax,errno .align 4 .L622: jmp .L622 .Lfe4: .size _start,.Lfe4-_start .comm errno,4,4 .ident "GCC: (GNU) egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)"