From f914554dbcaf7ef3322c8e62a0218bc4d14d2e79 Mon Sep 17 00:00:00 2001 From: pjht Date: Sat, 31 Aug 2019 10:42:20 -0500 Subject: [PATCH] Change fsdrv's name to devfs --- Makefile | 4 +- {fsdrv => devfs}/Makefile | 4 +- devfs/devfs | Bin 0 -> 30272 bytes {fsdrv => devfs}/main.c | 19 +- {fsdrv => devfs}/ports.c | 0 {fsdrv => devfs}/ports.h | 0 {fsdrv => devfs}/vga.c | 0 {fsdrv => devfs}/vga.h | 0 fsdrv/log | 1502 ------------------------------------- init/main.c | 2 +- 10 files changed, 23 insertions(+), 1508 deletions(-) rename {fsdrv => devfs}/Makefile (80%) create mode 100755 devfs/devfs rename {fsdrv => devfs}/main.c (70%) rename {fsdrv => devfs}/ports.c (100%) rename {fsdrv => devfs}/ports.h (100%) rename {fsdrv => devfs}/vga.c (100%) rename {fsdrv => devfs}/vga.h (100%) delete mode 100644 fsdrv/log diff --git a/Makefile b/Makefile index baaedd5..cf4df76 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ debug: os.iso kernel/kernel.elf @$(GDB) #gdbgui -g i386-elf-gdb --project $(CWD) -os.iso: kernel/kernel.elf init vfs fsdrv initrd +os.iso: kernel/kernel.elf init vfs devfs initrd @cp kernel/kernel.elf sysroot/boot @cd initrd; tar -f ../sysroot/boot/initrd.tar -c * @grub-mkrescue -o $@ sysroot >/dev/null 2>/dev/null @@ -46,7 +46,7 @@ vfs: vfs/* kernel/start.o @cd $@ && make @cp $@/$@ initrd/$@ -fsdrv: fsdrv/* kernel/start.o +devfs: devfs/* kernel/start.o @cd $@ && make @cp $@/$@ initrd/$@ diff --git a/fsdrv/Makefile b/devfs/Makefile similarity index 80% rename from fsdrv/Makefile rename to devfs/Makefile index d222251..491af22 100644 --- a/fsdrv/Makefile +++ b/devfs/Makefile @@ -3,11 +3,11 @@ OBJ = $(C_SOURCES:.c=.o ) CFLAGS = -Wall -g CC = i386-myos-gcc -fsdrv: $(OBJ) ../libc/* +devfs: $(OBJ) ../libc/* @$(CC) -o $@ $(CFLAGS) $(OBJ) %.o: %.c @$(CC) $(CFLAGS) -c $< -o $@ clean: - @rm -rf *.o init + @rm -rf *.o devfs diff --git a/devfs/devfs b/devfs/devfs new file mode 100755 index 0000000000000000000000000000000000000000..647c2445768e0e7617f20f9dbacdea1ca988d915 GIT binary patch literal 30272 zcmdUY3!GHNm3Q5~x4LgXrl)77=K+k+2nq0-s^I>!eY>1K#x{WhYA|w(e>FWmNfZ*F3}S3M)nt7VpPInAA;Ln*tm)b+VND|y?xtfwrz=F z+Mc(LN6TLn?S5&s^Hs@)zZ4Cr-Fm^F#cIL#`o%9DhuC-bAH(;y&u#Nwp~7YZOegP) z6!lDhl8Qm2Yj`ZpP7;_)wk{waERjgvgu#_;jwx7-YUq?}TZ zVL}gIqX`PxXr*lQ`r(P-*>iX-zBkSvX>=YslDz!{sBgG_@pYX8H+Bw~D_xCjy_+Q- zb1;T(x`S`-3ht=_-(A6XU^&(~U_g}agWWqe2H$*9M@{#8-LG}Ob@aQ54*{VG&?|k3 zW(M|%o47yUB7GUmMb*aO%T;KTsFh6O!L9dh zjkyvhN*Fu*Jq%+!_;PpfU>yHg=W(8Y&;KI9P`JMdNDQQ_^SBoEA6_m<55Bg(9Nn

!Reciz=#L>bURU3m_gb?q-1))iQdEzegpB7PKw@Pe0_#8xZ z#Dg!O`@IqxMjAdtYR^+dmMpfzZwOO*lCgb>E@?LOtpt4*$P7^+Xq{Kc&>cJw4<6_a z_GMs6&^{sPB`HDQF3uEGVoQ|_Pe?(Zk%AIbPJ+Hef_}#k{iI~E^^XKD89R`eLpIy# zOJP{QD^=DoK;6Ne@!+BE;8xJn@Fl*cSYcG5fnBygto=2al+!F8H0!&A1M%QM_x6FV zVDf=r^7S18Wdaqi_5gdLYfo43_yfV?@#+&F^;l?sX3P5DgY2*M@!(%mjjPcfjjK-p zb388E)_;7;#=l1o@!$!or6KvE#)Iyx7K<_9@t_Y<#ES!%Pn$>LEB^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2%>soh3XUB$%9CSFKL zdDr5kTs|uerk+wcaZc`x4Rl7Pj$BlpBguSKB)nEpCZQIPnKGwSM=KKq4JE4S-I+*4 zp>M`)ucV(0bTQmc|t(vigR6HKYp?hy0V-MryCiPKtU$^L#9ud6T z^h(Bf5FPz(wywB{&qUaS_G{{+_|cWdR(sjS XF(8T`-h<1cYsJ$$KM*bCm!kXMM^_XJ literal 0 HcmV?d00001 diff --git a/fsdrv/main.c b/devfs/main.c similarity index 70% rename from fsdrv/main.c rename to devfs/main.c index 51e584a..9f7586e 100644 --- a/fsdrv/main.c +++ b/devfs/main.c @@ -15,7 +15,6 @@ int main() { vga_init(info); uint32_t box=mailbox_new(16); register_fs("devfs",box); - mount("","devfs","/dev"); for (;;) { yield(); Message msg; @@ -47,6 +46,24 @@ int main() { vfs_msg->flags=0; break; } + case VFS_MOUNT: { + char* disk_file=malloc(sizeof(char)*vfs_msg->data); + Message msg; + msg.msg=disk_file; + mailbox_get_msg(box,&msg,vfs_msg->data); + while (msg.from==0 && msg.size==0) { + yield(); + mailbox_get_msg(box,&msg,sizeof(vfs_message)); + } + if (msg.from==0) { + serial_print("Could not recieve disk file path from the VFS\n"); + vfs_msg->flags=2; + break; + } + free(disk_file); + vfs_msg->flags=0; + break; + } default: vfs_msg->flags=1; } diff --git a/fsdrv/ports.c b/devfs/ports.c similarity index 100% rename from fsdrv/ports.c rename to devfs/ports.c diff --git a/fsdrv/ports.h b/devfs/ports.h similarity index 100% rename from fsdrv/ports.h rename to devfs/ports.h diff --git a/fsdrv/vga.c b/devfs/vga.c similarity index 100% rename from fsdrv/vga.c rename to devfs/vga.c diff --git a/fsdrv/vga.h b/devfs/vga.h similarity index 100% rename from fsdrv/vga.h rename to devfs/vga.h diff --git a/fsdrv/log b/fsdrv/log deleted file mode 100644 index 6a0cecc..0000000 --- a/fsdrv/log +++ /dev/null @@ -1,1502 +0,0 @@ - -fsdrv/fsdrv: file format ELF32-i386 - -Disassembly of section .text: -main: - 8048080: 8d 4c 24 04 leal 4(%esp), %ecx - 8048084: 83 e4 f0 andl $-16, %esp - 8048087: ff 71 fc pushl -4(%ecx) - 804808a: 55 pushl %ebp - 804808b: 89 e5 movl %esp, %ebp - 804808d: 51 pushl %ecx - 804808e: 83 ec 24 subl $36, %esp - 8048091: 83 ec 0c subl $12, %esp - 8048094: 6a 10 pushl $16 - 8048096: e8 90 00 00 00 calll 144 - 804809b: 83 c4 10 addl $16, %esp - 804809e: 89 45 f4 movl %eax, -12(%ebp) - 80480a1: e8 a1 0d 00 00 calll 3489 - 80480a6: 83 ec 0c subl $12, %esp - 80480a9: 68 24 10 00 00 pushl $4132 - 80480ae: e8 ec 05 00 00 calll 1516 - 80480b3: 83 c4 10 addl $16, %esp - 80480b6: 89 45 e0 movl %eax, -32(%ebp) - 80480b9: 83 ec 04 subl $4, %esp - 80480bc: 68 24 10 00 00 pushl $4132 - 80480c1: 8d 45 e0 leal -32(%ebp), %eax - 80480c4: 50 pushl %eax - 80480c5: ff 75 f4 pushl -12(%ebp) - 80480c8: e8 9a 00 00 00 calll 154 - 80480cd: 83 c4 10 addl $16, %esp - 80480d0: 8b 45 e4 movl -28(%ebp), %eax - 80480d3: 85 c0 testl %eax, %eax - 80480d5: 75 07 jne 7 - 80480d7: e8 6b 0d 00 00 calll 3435 - 80480dc: eb 30 jmp 48 - 80480de: 8b 45 e0 movl -32(%ebp), %eax - 80480e1: 89 45 f0 movl %eax, -16(%ebp) - 80480e4: 8b 45 e4 movl -28(%ebp), %eax - 80480e7: 89 45 e8 movl %eax, -24(%ebp) - 80480ea: 8b 45 f4 movl -12(%ebp), %eax - 80480ed: 89 45 e4 movl %eax, -28(%ebp) - 80480f0: 8b 45 f0 movl -16(%ebp), %eax - 80480f3: c6 80 1c 10 00 00 00 movb $0, 4124(%eax) - 80480fa: 83 ec 0c subl $12, %esp - 80480fd: 8d 45 e0 leal -32(%ebp), %eax - 8048100: 50 pushl %eax - 8048101: e8 4d 00 00 00 calll 77 - 8048106: 83 c4 10 addl $16, %esp - 8048109: e8 39 0d 00 00 calll 3385 - 804810e: 8b 45 e0 movl -32(%ebp), %eax - 8048111: 83 ec 0c subl $12, %esp - 8048114: 50 pushl %eax - 8048115: e8 f2 07 00 00 calll 2034 - 804811a: 83 c4 10 addl $16, %esp - 804811d: eb 82 jmp -126 - 804811f: 90 nop - -_start: - 8048120: e8 5c 00 00 00 calll 92 <__stdio_init> - 8048125: e8 56 ff ff ff calll -170

- 804812a: c3 retl - -mailbox_new: - 804812b: 55 pushl %ebp - 804812c: 89 e5 movl %esp, %ebp - 804812e: 53 pushl %ebx - 804812f: 83 ec 14 subl $20, %esp - 8048132: 8b 45 08 movl 8(%ebp), %eax - 8048135: 66 89 45 e8 movw %ax, -24(%ebp) - 8048139: 8b 45 e8 movl -24(%ebp), %eax - 804813c: 89 c3 movl %eax, %ebx - 804813e: b8 0e 00 00 00 movl $14, %eax - 8048143: cd 50 int $80 - 8048145: 89 d8 movl %ebx, %eax - 8048147: 89 45 f8 movl %eax, -8(%ebp) - 804814a: 8b 45 f8 movl -8(%ebp), %eax - 804814d: 83 c4 14 addl $20, %esp - 8048150: 5b popl %ebx - 8048151: 5d popl %ebp - 8048152: c3 retl - -mailbox_send_msg: - 8048153: 55 pushl %ebp - 8048154: 89 e5 movl %esp, %ebp - 8048156: 53 pushl %ebx - 8048157: 8b 45 08 movl 8(%ebp), %eax - 804815a: 89 c3 movl %eax, %ebx - 804815c: b8 07 00 00 00 movl $7, %eax - 8048161: cd 50 int $80 - 8048163: 90 nop - 8048164: 5b popl %ebx - 8048165: 5d popl %ebp - 8048166: c3 retl - -mailbox_get_msg: - 8048167: 55 pushl %ebp - 8048168: 89 e5 movl %esp, %ebp - 804816a: 53 pushl %ebx - 804816b: 8b 45 08 movl 8(%ebp), %eax - 804816e: 8b 4d 0c movl 12(%ebp), %ecx - 8048171: 8b 55 10 movl 16(%ebp), %edx - 8048174: 89 c3 movl %eax, %ebx - 8048176: b8 06 00 00 00 movl $6, %eax - 804817b: cd 50 int $80 - 804817d: 90 nop - 804817e: 5b popl %ebx - 804817f: 5d popl %ebp - 8048180: c3 retl - -__stdio_init: - 8048181: 55 pushl %ebp - 8048182: 89 e5 movl %esp, %ebp - 8048184: 83 ec 08 subl $8, %esp - 8048187: 83 ec 0c subl $12, %esp - 804818a: 6a 10 pushl $16 - 804818c: e8 9a ff ff ff calll -102 - 8048191: 83 c4 10 addl $16, %esp - 8048194: a3 80 a5 04 08 movl %eax, 134522240 - 8048199: 90 nop - 804819a: c9 leave - 804819b: c3 retl - -make_msg: - 804819c: 55 pushl %ebp - 804819d: 89 e5 movl %esp, %ebp - 804819f: 83 ec 18 subl $24, %esp - 80481a2: 83 ec 0c subl $12, %esp - 80481a5: 68 24 10 00 00 pushl $4132 - 80481aa: e8 f0 04 00 00 calll 1264 - 80481af: 83 c4 10 addl $16, %esp - 80481b2: 89 45 f4 movl %eax, -12(%ebp) - 80481b5: 8b 45 f4 movl -12(%ebp), %eax - 80481b8: 8b 55 08 movl 8(%ebp), %edx - 80481bb: 89 10 movl %edx, (%eax) - 80481bd: 8b 15 84 a5 04 08 movl 134522244, %edx - 80481c3: 8b 45 f4 movl -12(%ebp), %eax - 80481c6: 89 50 04 movl %edx, 4(%eax) - 80481c9: 8b 45 f4 movl -12(%ebp), %eax - 80481cc: 8b 55 14 movl 20(%ebp), %edx - 80481cf: 89 50 14 movl %edx, 20(%eax) - 80481d2: 8b 45 f4 movl -12(%ebp), %eax - 80481d5: 8b 55 18 movl 24(%ebp), %edx - 80481d8: 89 90 20 10 00 00 movl %edx, 4128(%eax) - 80481de: a1 84 a5 04 08 movl 134522244, %eax - 80481e3: 40 incl %eax - 80481e4: a3 84 a5 04 08 movl %eax, 134522244 - 80481e9: 83 7d 0c 00 cmpl $0, 12(%ebp) - 80481ed: 74 15 je 21 - 80481ef: 8b 45 f4 movl -12(%ebp), %eax - 80481f2: 83 c0 08 addl $8, %eax - 80481f5: 83 ec 08 subl $8, %esp - 80481f8: ff 75 0c pushl 12(%ebp) - 80481fb: 50 pushl %eax - 80481fc: e8 94 08 00 00 calll 2196 - 8048201: 83 c4 10 addl $16, %esp - 8048204: 83 7d 10 00 cmpl $0, 16(%ebp) - 8048208: 74 15 je 21 - 804820a: 8b 45 f4 movl -12(%ebp), %eax - 804820d: 83 c0 18 addl $24, %eax - 8048210: 83 ec 08 subl $8, %esp - 8048213: ff 75 10 pushl 16(%ebp) - 8048216: 50 pushl %eax - 8048217: e8 79 08 00 00 calll 2169 - 804821c: 83 c4 10 addl $16, %esp - 804821f: 8b 45 f4 movl -12(%ebp), %eax - 8048222: c9 leave - 8048223: c3 retl - -fopen: - 8048224: 55 pushl %ebp - 8048225: 89 e5 movl %esp, %ebp - 8048227: 83 ec 28 subl $40, %esp - 804822a: 83 ec 0c subl $12, %esp - 804822d: ff 75 08 pushl 8(%ebp) - 8048230: e8 3b 08 00 00 calll 2107 - 8048235: 83 c4 10 addl $16, %esp - 8048238: 3d 00 10 00 00 cmpl $4096, %eax - 804823d: 77 13 ja 19 - 804823f: 83 ec 0c subl $12, %esp - 8048242: ff 75 0c pushl 12(%ebp) - 8048245: e8 26 08 00 00 calll 2086 - 804824a: 83 c4 10 addl $16, %esp - 804824d: 83 f8 0a cmpl $10, %eax - 8048250: 76 0a jbe 10 - 8048252: b8 00 00 00 00 movl $0, %eax - 8048257: e9 09 01 00 00 jmp 265 - 804825c: 83 ec 0c subl $12, %esp - 804825f: 6a 00 pushl $0 - 8048261: 6a 00 pushl $0 - 8048263: ff 75 08 pushl 8(%ebp) - 8048266: ff 75 0c pushl 12(%ebp) - 8048269: 6a 00 pushl $0 - 804826b: e8 2c ff ff ff calll -212 - 8048270: 83 c4 20 addl $32, %esp - 8048273: 89 45 f4 movl %eax, -12(%ebp) - 8048276: a1 80 a5 04 08 movl 134522240, %eax - 804827b: 89 45 e0 movl %eax, -32(%ebp) - 804827e: c7 45 e4 03 00 00 00 movl $3, -28(%ebp) - 8048285: 8b 45 f4 movl -12(%ebp), %eax - 8048288: 89 45 dc movl %eax, -36(%ebp) - 804828b: c7 45 e8 24 10 00 00 movl $4132, -24(%ebp) - 8048292: 83 ec 0c subl $12, %esp - 8048295: 8d 45 dc leal -36(%ebp), %eax - 8048298: 50 pushl %eax - 8048299: e8 b5 fe ff ff calll -331 - 804829e: 83 c4 10 addl $16, %esp - 80482a1: 8b 45 dc movl -36(%ebp), %eax - 80482a4: 83 ec 0c subl $12, %esp - 80482a7: 50 pushl %eax - 80482a8: e8 5f 06 00 00 calll 1631 - 80482ad: 83 c4 10 addl $16, %esp - 80482b0: e8 92 0b 00 00 calll 2962 - 80482b5: 83 ec 0c subl $12, %esp - 80482b8: 68 24 10 00 00 pushl $4132 - 80482bd: e8 dd 03 00 00 calll 989 - 80482c2: 83 c4 10 addl $16, %esp - 80482c5: 89 45 dc movl %eax, -36(%ebp) - 80482c8: e8 7a 0b 00 00 calll 2938 - 80482cd: a1 80 a5 04 08 movl 134522240, %eax - 80482d2: 83 ec 04 subl $4, %esp - 80482d5: 68 24 10 00 00 pushl $4132 - 80482da: 8d 55 dc leal -36(%ebp), %edx - 80482dd: 52 pushl %edx - 80482de: 50 pushl %eax - 80482df: e8 83 fe ff ff calll -381 - 80482e4: 83 c4 10 addl $16, %esp - 80482e7: eb 1f jmp 31 - 80482e9: e8 59 0b 00 00 calll 2905 - 80482ee: a1 80 a5 04 08 movl 134522240, %eax - 80482f3: 83 ec 04 subl $4, %esp - 80482f6: 68 24 10 00 00 pushl $4132 - 80482fb: 8d 55 dc leal -36(%ebp), %edx - 80482fe: 52 pushl %edx - 80482ff: 50 pushl %eax - 8048300: e8 62 fe ff ff calll -414 - 8048305: 83 c4 10 addl $16, %esp - 8048308: 8b 45 e0 movl -32(%ebp), %eax - 804830b: 85 c0 testl %eax, %eax - 804830d: 74 da je -38 - 804830f: 8b 45 dc movl -36(%ebp), %eax - 8048312: 89 45 f0 movl %eax, -16(%ebp) - 8048315: 8b 45 f0 movl -16(%ebp), %eax - 8048318: 8a 80 1c 10 00 00 movb 4124(%eax), %al - 804831e: 84 c0 testb %al, %al - 8048320: 74 16 je 22 - 8048322: 8b 45 dc movl -36(%ebp), %eax - 8048325: 83 ec 0c subl $12, %esp - 8048328: 50 pushl %eax - 8048329: e8 de 05 00 00 calll 1502 - 804832e: 83 c4 10 addl $16, %esp - 8048331: b8 00 00 00 00 movl $0, %eax - 8048336: eb 2d jmp 45 - 8048338: 83 ec 0c subl $12, %esp - 804833b: 6a 04 pushl $4 - 804833d: e8 5d 03 00 00 calll 861 - 8048342: 83 c4 10 addl $16, %esp - 8048345: 89 45 ec movl %eax, -20(%ebp) - 8048348: 8b 45 f0 movl -16(%ebp), %eax - 804834b: 8b 50 14 movl 20(%eax), %edx - 804834e: 8b 45 ec movl -20(%ebp), %eax - 8048351: 89 10 movl %edx, (%eax) - 8048353: 8b 45 dc movl -36(%ebp), %eax - 8048356: 83 ec 0c subl $12, %esp - 8048359: 50 pushl %eax - 804835a: e8 ad 05 00 00 calll 1453 - 804835f: 83 c4 10 addl $16, %esp - 8048362: 8b 45 ec movl -20(%ebp), %eax - 8048365: c9 leave - 8048366: c3 retl - -fputc: - 8048367: 55 pushl %ebp - 8048368: 89 e5 movl %esp, %ebp - 804836a: 83 ec 28 subl $40, %esp - 804836d: 8b 45 0c movl 12(%ebp), %eax - 8048370: 8b 00 movl (%eax), %eax - 8048372: 83 ec 0c subl $12, %esp - 8048375: ff 75 08 pushl 8(%ebp) - 8048378: 50 pushl %eax - 8048379: 6a 00 pushl $0 - 804837b: 6a 00 pushl $0 - 804837d: 6a 01 pushl $1 - 804837f: e8 18 fe ff ff calll -488 - 8048384: 83 c4 20 addl $32, %esp - 8048387: 89 45 f4 movl %eax, -12(%ebp) - 804838a: a1 80 a5 04 08 movl 134522240, %eax - 804838f: 89 45 e4 movl %eax, -28(%ebp) - 8048392: c7 45 e8 03 00 00 00 movl $3, -24(%ebp) - 8048399: 8b 45 f4 movl -12(%ebp), %eax - 804839c: 89 45 e0 movl %eax, -32(%ebp) - 804839f: c7 45 ec 24 10 00 00 movl $4132, -20(%ebp) - 80483a6: 83 ec 0c subl $12, %esp - 80483a9: 8d 45 e0 leal -32(%ebp), %eax - 80483ac: 50 pushl %eax - 80483ad: e8 a1 fd ff ff calll -607 - 80483b2: 83 c4 10 addl $16, %esp - 80483b5: 8b 45 e0 movl -32(%ebp), %eax - 80483b8: 83 ec 0c subl $12, %esp - 80483bb: 50 pushl %eax - 80483bc: e8 4b 05 00 00 calll 1355 - 80483c1: 83 c4 10 addl $16, %esp - 80483c4: e8 7e 0a 00 00 calll 2686 - 80483c9: 83 ec 0c subl $12, %esp - 80483cc: 68 24 10 00 00 pushl $4132 - 80483d1: e8 c9 02 00 00 calll 713 - 80483d6: 83 c4 10 addl $16, %esp - 80483d9: 89 45 e0 movl %eax, -32(%ebp) - 80483dc: e8 66 0a 00 00 calll 2662 - 80483e1: a1 80 a5 04 08 movl 134522240, %eax - 80483e6: 83 ec 04 subl $4, %esp - 80483e9: 68 24 10 00 00 pushl $4132 - 80483ee: 8d 55 e0 leal -32(%ebp), %edx - 80483f1: 52 pushl %edx - 80483f2: 50 pushl %eax - 80483f3: e8 6f fd ff ff calll -657 - 80483f8: 83 c4 10 addl $16, %esp - 80483fb: eb 1f jmp 31 - 80483fd: e8 45 0a 00 00 calll 2629 - 8048402: a1 80 a5 04 08 movl 134522240, %eax - 8048407: 83 ec 04 subl $4, %esp - 804840a: 68 24 10 00 00 pushl $4132 - 804840f: 8d 55 e0 leal -32(%ebp), %edx - 8048412: 52 pushl %edx - 8048413: 50 pushl %eax - 8048414: e8 4e fd ff ff calll -690 - 8048419: 83 c4 10 addl $16, %esp - 804841c: 8b 45 e4 movl -28(%ebp), %eax - 804841f: 85 c0 testl %eax, %eax - 8048421: 74 da je -38 - 8048423: 8b 45 e0 movl -32(%ebp), %eax - 8048426: 89 45 f0 movl %eax, -16(%ebp) - 8048429: 8b 45 f0 movl -16(%ebp), %eax - 804842c: 8a 80 1c 10 00 00 movb 4124(%eax), %al - 8048432: 84 c0 testb %al, %al - 8048434: 74 16 je 22 - 8048436: 8b 45 e0 movl -32(%ebp), %eax - 8048439: 83 ec 0c subl $12, %esp - 804843c: 50 pushl %eax - 804843d: e8 ca 04 00 00 calll 1226 - 8048442: 83 c4 10 addl $16, %esp - 8048445: b8 ff ff ff ff movl $4294967295, %eax - 804844a: eb 12 jmp 18 - 804844c: 8b 45 e0 movl -32(%ebp), %eax - 804844f: 83 ec 0c subl $12, %esp - 8048452: 50 pushl %eax - 8048453: e8 b4 04 00 00 calll 1204 - 8048458: 83 c4 10 addl $16, %esp - 804845b: 8b 45 08 movl 8(%ebp), %eax - 804845e: c9 leave - 804845f: c3 retl - -get_bmap_bit: - 8048460: 55 pushl %ebp - 8048461: 89 e5 movl %esp, %ebp - 8048463: 53 pushl %ebx - 8048464: 83 ec 10 subl $16, %esp - 8048467: 8b 45 0c movl 12(%ebp), %eax - 804846a: c1 e8 03 shrl $3, %eax - 804846d: 89 45 f8 movl %eax, -8(%ebp) - 8048470: 8b 45 0c movl 12(%ebp), %eax - 8048473: 83 e0 07 andl $7, %eax - 8048476: 89 45 f4 movl %eax, -12(%ebp) - 8048479: 8b 55 08 movl 8(%ebp), %edx - 804847c: 8b 45 f8 movl -8(%ebp), %eax - 804847f: 01 d0 addl %edx, %eax - 8048481: 8a 00 movb (%eax), %al - 8048483: 88 45 f3 movb %al, -13(%ebp) - 8048486: 0f be 55 f3 movsbl -13(%ebp), %edx - 804848a: 8b 45 f4 movl -12(%ebp), %eax - 804848d: bb 01 00 00 00 movl $1, %ebx - 8048492: 88 c1 movb %al, %cl - 8048494: d3 e3 shll %cl, %ebx - 8048496: 89 d8 movl %ebx, %eax - 8048498: 21 d0 andl %edx, %eax - 804849a: 85 c0 testl %eax, %eax - 804849c: 0f 9f c0 setg %al - 804849f: 83 c4 10 addl $16, %esp - 80484a2: 5b popl %ebx - 80484a3: 5d popl %ebp - 80484a4: c3 retl - -set_bmap_bit: - 80484a5: 55 pushl %ebp - 80484a6: 89 e5 movl %esp, %ebp - 80484a8: 53 pushl %ebx - 80484a9: 83 ec 10 subl $16, %esp - 80484ac: 8b 45 0c movl 12(%ebp), %eax - 80484af: c1 e8 03 shrl $3, %eax - 80484b2: 89 45 f8 movl %eax, -8(%ebp) - 80484b5: 8b 45 0c movl 12(%ebp), %eax - 80484b8: 83 e0 07 andl $7, %eax - 80484bb: 89 45 f4 movl %eax, -12(%ebp) - 80484be: 8b 55 08 movl 8(%ebp), %edx - 80484c1: 8b 45 f8 movl -8(%ebp), %eax - 80484c4: 01 d0 addl %edx, %eax - 80484c6: 8a 10 movb (%eax), %dl - 80484c8: 8b 45 f4 movl -12(%ebp), %eax - 80484cb: bb 01 00 00 00 movl $1, %ebx - 80484d0: 88 c1 movb %al, %cl - 80484d2: d3 e3 shll %cl, %ebx - 80484d4: 89 d8 movl %ebx, %eax - 80484d6: 88 c3 movb %al, %bl - 80484d8: 8b 4d 08 movl 8(%ebp), %ecx - 80484db: 8b 45 f8 movl -8(%ebp), %eax - 80484de: 01 c8 addl %ecx, %eax - 80484e0: 09 da orl %ebx, %edx - 80484e2: 88 10 movb %dl, (%eax) - 80484e4: 90 nop - 80484e5: 83 c4 10 addl $16, %esp - 80484e8: 5b popl %ebx - 80484e9: 5d popl %ebp - 80484ea: c3 retl - -clear_bmap_bit: - 80484eb: 55 pushl %ebp - 80484ec: 89 e5 movl %esp, %ebp - 80484ee: 53 pushl %ebx - 80484ef: 83 ec 10 subl $16, %esp - 80484f2: 8b 45 0c movl 12(%ebp), %eax - 80484f5: c1 e8 03 shrl $3, %eax - 80484f8: 89 45 f8 movl %eax, -8(%ebp) - 80484fb: 8b 45 0c movl 12(%ebp), %eax - 80484fe: 83 e0 07 andl $7, %eax - 8048501: 89 45 f4 movl %eax, -12(%ebp) - 8048504: 8b 55 08 movl 8(%ebp), %edx - 8048507: 8b 45 f8 movl -8(%ebp), %eax - 804850a: 01 d0 addl %edx, %eax - 804850c: 8a 10 movb (%eax), %dl - 804850e: 8b 45 f4 movl -12(%ebp), %eax - 8048511: bb 01 00 00 00 movl $1, %ebx - 8048516: 88 c1 movb %al, %cl - 8048518: d3 e3 shll %cl, %ebx - 804851a: 89 d8 movl %ebx, %eax - 804851c: f7 d0 notl %eax - 804851e: 88 c3 movb %al, %bl - 8048520: 8b 4d 08 movl 8(%ebp), %ecx - 8048523: 8b 45 f8 movl -8(%ebp), %eax - 8048526: 01 c8 addl %ecx, %eax - 8048528: 21 da andl %ebx, %edx - 804852a: 88 10 movb %dl, (%eax) - 804852c: 90 nop - 804852d: 83 c4 10 addl $16, %esp - 8048530: 5b popl %ebx - 8048531: 5d popl %ebp - 8048532: c3 retl - -reserve_block: - 8048533: 55 pushl %ebp - 8048534: 89 e5 movl %esp, %ebp - 8048536: 53 pushl %ebx - 8048537: 83 ec 34 subl $52, %esp - 804853a: 8b 45 08 movl 8(%ebp), %eax - 804853d: c1 e0 0c shll $12, %eax - 8048540: c1 e8 05 shrl $5, %eax - 8048543: 89 45 f0 movl %eax, -16(%ebp) - 8048546: 8b 45 f0 movl -16(%ebp), %eax - 8048549: ba 00 00 00 00 movl $0, %edx - 804854e: 89 45 c8 movl %eax, -56(%ebp) - 8048551: 89 55 cc movl %edx, -52(%ebp) - 8048554: df 6d c8 fildll -56(%ebp) - 8048557: dd 5d e0 fstpl -32(%ebp) - 804855a: dd 45 e0 fldl -32(%ebp) - 804855d: dd 05 f8 8f 04 08 fldl 134516728 - 8048563: de f9 fdivrp %st(1) - 8048565: d9 5d dc fstps -36(%ebp) - 8048568: 8b 45 dc movl -36(%ebp), %eax - 804856b: 83 ec 0c subl $12, %esp - 804856e: 50 pushl %eax - 804856f: e8 2c 09 00 00 calll 2348 - 8048574: 83 c4 10 addl $16, %esp - 8048577: d9 7d da fnstcw -38(%ebp) - 804857a: 66 8b 45 da movw -38(%ebp), %ax - 804857e: 80 cc 0c orb $12, %ah - 8048581: 66 89 45 d8 movw %ax, -40(%ebp) - 8048585: d9 6d d8 fldcw -40(%ebp) - 8048588: df 7d d0 fistpll -48(%ebp) - 804858b: d9 6d da fldcw -38(%ebp) - 804858e: 8b 45 d0 movl -48(%ebp), %eax - 8048591: 8b 55 d4 movl -44(%ebp), %edx - 8048594: 8b 1d a0 cd 04 08 movl 134532512, %ebx - 804859a: 83 ec 0c subl $12, %esp - 804859d: 50 pushl %eax - 804859e: e8 8f 09 00 00 calll 2447 - 80485a3: 83 c4 10 addl $16, %esp - 80485a6: 89 c2 movl %eax, %edx - 80485a8: 89 d8 movl %ebx, %eax - 80485aa: c1 e0 02 shll $2, %eax - 80485ad: 01 d8 addl %ebx, %eax - 80485af: c1 e0 02 shll $2, %eax - 80485b2: 05 a0 a5 04 08 addl $134522272, %eax - 80485b7: 89 10 movl %edx, (%eax) - 80485b9: 8b 15 a0 cd 04 08 movl 134532512, %edx - 80485bf: 89 d0 movl %edx, %eax - 80485c1: c1 e0 02 shll $2, %eax - 80485c4: 01 d0 addl %edx, %eax - 80485c6: c1 e0 02 shll $2, %eax - 80485c9: 8d 90 a4 a5 04 08 leal 134522276(%eax), %edx - 80485cf: 8b 45 f0 movl -16(%ebp), %eax - 80485d2: 89 02 movl %eax, (%edx) - 80485d4: 8b 15 a0 cd 04 08 movl 134532512, %edx - 80485da: 8b 45 f0 movl -16(%ebp), %eax - 80485dd: 8d 0c c5 00 00 00 00 leal (,%eax,8), %ecx - 80485e4: 89 d0 movl %edx, %eax - 80485e6: c1 e0 02 shll $2, %eax - 80485e9: 01 d0 addl %edx, %eax - 80485eb: c1 e0 02 shll $2, %eax - 80485ee: 05 a8 a5 04 08 addl $134522280, %eax - 80485f3: 89 08 movl %ecx, (%eax) - 80485f5: 8b 15 a0 cd 04 08 movl 134532512, %edx - 80485fb: 89 d0 movl %edx, %eax - 80485fd: c1 e0 02 shll $2, %eax - 8048600: 01 d0 addl %edx, %eax - 8048602: c1 e0 02 shll $2, %eax - 8048605: 05 a0 a5 04 08 addl $134522272, %eax - 804860a: 8b 00 movl (%eax), %eax - 804860c: 89 45 ec movl %eax, -20(%ebp) - 804860f: 8b 15 a0 cd 04 08 movl 134532512, %edx - 8048615: 89 d0 movl %edx, %eax - 8048617: c1 e0 02 shll $2, %eax - 804861a: 01 d0 addl %edx, %eax - 804861c: c1 e0 02 shll $2, %eax - 804861f: 05 a4 a5 04 08 addl $134522276, %eax - 8048624: 8b 00 movl (%eax), %eax - 8048626: 89 45 e8 movl %eax, -24(%ebp) - 8048629: c7 45 f4 00 00 00 00 movl $0, -12(%ebp) - 8048630: eb 0e jmp 14 - 8048632: 8b 55 ec movl -20(%ebp), %edx - 8048635: 8b 45 f4 movl -12(%ebp), %eax - 8048638: 01 d0 addl %edx, %eax - 804863a: c6 00 00 movb $0, (%eax) - 804863d: ff 45 f4 incl -12(%ebp) - 8048640: 8b 45 f4 movl -12(%ebp), %eax - 8048643: 3b 45 e8 cmpl -24(%ebp), %eax - 8048646: 72 ea jb -22 - 8048648: 8b 15 a0 cd 04 08 movl 134532512, %edx - 804864e: 8b 45 08 movl 8(%ebp), %eax - 8048651: c1 e0 0c shll $12, %eax - 8048654: 89 c1 movl %eax, %ecx - 8048656: 89 d0 movl %edx, %eax - 8048658: c1 e0 02 shll $2, %eax - 804865b: 01 d0 addl %edx, %eax - 804865d: c1 e0 02 shll $2, %eax - 8048660: 05 ac a5 04 08 addl $134522284, %eax - 8048665: 89 08 movl %ecx, (%eax) - 8048667: 8b 1d a0 cd 04 08 movl 134532512, %ebx - 804866d: 83 ec 0c subl $12, %esp - 8048670: ff 75 08 pushl 8(%ebp) - 8048673: e8 ba 08 00 00 calll 2234 - 8048678: 83 c4 10 addl $16, %esp - 804867b: 89 c2 movl %eax, %edx - 804867d: 89 d8 movl %ebx, %eax - 804867f: c1 e0 02 shll $2, %eax - 8048682: 01 d8 addl %ebx, %eax - 8048684: c1 e0 02 shll $2, %eax - 8048687: 05 b0 a5 04 08 addl $134522288, %eax - 804868c: 89 10 movl %edx, (%eax) - 804868e: a1 a0 cd 04 08 movl 134532512, %eax - 8048693: 40 incl %eax - 8048694: a3 a0 cd 04 08 movl %eax, 134532512 - 8048699: 90 nop - 804869a: 8b 5d fc movl -4(%ebp), %ebx - 804869d: c9 leave - 804869e: c3 retl - -malloc: - 804869f: 55 pushl %ebp - 80486a0: 89 e5 movl %esp, %ebp - 80486a2: 57 pushl %edi - 80486a3: 56 pushl %esi - 80486a4: 53 pushl %ebx - 80486a5: 83 ec 7c subl $124, %esp - 80486a8: 8b 45 08 movl 8(%ebp), %eax - 80486ab: ba 00 00 00 00 movl $0, %edx - 80486b0: 89 45 80 movl %eax, -128(%ebp) - 80486b3: 89 55 84 movl %edx, -124(%ebp) - 80486b6: df 6d 80 fildll -128(%ebp) - 80486b9: d9 5d 94 fstps -108(%ebp) - 80486bc: d9 45 94 flds -108(%ebp) - 80486bf: d9 05 00 90 04 08 flds 134516736 - 80486c5: de f9 fdivrp %st(1) - 80486c7: 83 ec 0c subl $12, %esp - 80486ca: 8d 64 24 fc leal -4(%esp), %esp - 80486ce: d9 1c 24 fstps (%esp) - 80486d1: e8 ca 07 00 00 calll 1994 - 80486d6: 83 c4 10 addl $16, %esp - 80486d9: d9 7d 92 fnstcw -110(%ebp) - 80486dc: 66 8b 45 92 movw -110(%ebp), %ax - 80486e0: 80 cc 0c orb $12, %ah - 80486e3: 66 89 45 90 movw %ax, -112(%ebp) - 80486e7: d9 6d 90 fldcw -112(%ebp) - 80486ea: df 7d 88 fistpll -120(%ebp) - 80486ed: d9 6d 92 fldcw -110(%ebp) - 80486f0: 8b 45 88 movl -120(%ebp), %eax - 80486f3: 8b 55 8c movl -116(%ebp), %edx - 80486f6: 89 45 c0 movl %eax, -64(%ebp) - 80486f9: 83 45 c0 03 addl $3, -64(%ebp) - 80486fd: c7 45 e4 ff ff ff ff movl $4294967295, -28(%ebp) - 8048704: c7 45 dc 00 00 00 00 movl $0, -36(%ebp) - 804870b: e9 ec 00 00 00 jmp 236 - 8048710: 8b 55 dc movl -36(%ebp), %edx - 8048713: 89 d0 movl %edx, %eax - 8048715: c1 e0 02 shll $2, %eax - 8048718: 01 d0 addl %edx, %eax - 804871a: c1 e0 02 shll $2, %eax - 804871d: 8d 90 a0 a5 04 08 leal 134522272(%eax), %edx - 8048723: 8d 45 98 leal -104(%ebp), %eax - 8048726: 89 d3 movl %edx, %ebx - 8048728: ba 05 00 00 00 movl $5, %edx - 804872d: 89 c7 movl %eax, %edi - 804872f: 89 de movl %ebx, %esi - 8048731: 89 d1 movl %edx, %ecx - 8048733: f3 a5 rep movsl (%esi), %es:(%edi) - 8048735: 8b 45 a4 movl -92(%ebp), %eax - 8048738: 39 45 08 cmpl %eax, 8(%ebp) - 804873b: 0f 87 aa 00 00 00 ja 170 - 8048741: 8b 45 98 movl -104(%ebp), %eax - 8048744: 89 45 bc movl %eax, -68(%ebp) - 8048747: 8b 45 9c movl -100(%ebp), %eax - 804874a: 89 45 b8 movl %eax, -72(%ebp) - 804874d: c7 45 d4 00 00 00 00 movl $0, -44(%ebp) - 8048754: e9 83 00 00 00 jmp 131 - 8048759: c6 45 d3 00 movb $0, -45(%ebp) - 804875d: 8b 45 c0 movl -64(%ebp), %eax - 8048760: 89 45 d8 movl %eax, -40(%ebp) - 8048763: 8b 45 d4 movl -44(%ebp), %eax - 8048766: c1 e0 03 shll $3, %eax - 8048769: 89 45 c8 movl %eax, -56(%ebp) - 804876c: 83 ec 08 subl $8, %esp - 804876f: ff 75 c8 pushl -56(%ebp) - 8048772: ff 75 bc pushl -68(%ebp) - 8048775: e8 e6 fc ff ff calll -794 - 804877a: 83 c4 10 addl $16, %esp - 804877d: 88 45 b7 movb %al, -73(%ebp) - 8048780: 80 7d d3 00 cmpb $0, -45(%ebp) - 8048784: 74 27 je 39 - 8048786: 80 7d b7 00 cmpb $0, -73(%ebp) - 804878a: 74 1c je 28 - 804878c: 83 7d d8 00 cmpl $0, -40(%ebp) - 8048790: 75 08 jne 8 - 8048792: 8b 45 cc movl -52(%ebp), %eax - 8048795: 89 45 e0 movl %eax, -32(%ebp) - 8048798: eb 39 jmp 57 - 804879a: 8b 45 c8 movl -56(%ebp), %eax - 804879d: c1 e8 03 shrl $3, %eax - 80487a0: 01 45 d4 addl %eax, -44(%ebp) - 80487a3: ff 4d d4 decl -44(%ebp) - 80487a6: eb 2b jmp 43 - 80487a8: ff 4d d8 decl -40(%ebp) - 80487ab: eb 13 jmp 19 - 80487ad: 80 7d b7 00 cmpb $0, -73(%ebp) - 80487b1: 75 0d jne 13 - 80487b3: c6 45 d3 01 movb $1, -45(%ebp) - 80487b7: 8b 45 c8 movl -56(%ebp), %eax - 80487ba: 89 45 cc movl %eax, -52(%ebp) - 80487bd: ff 4d d8 decl -40(%ebp) - 80487c0: 83 7d d8 00 cmpl $0, -40(%ebp) - 80487c4: 75 08 jne 8 - 80487c6: 8b 45 cc movl -52(%ebp), %eax - 80487c9: 89 45 e0 movl %eax, -32(%ebp) - 80487cc: eb 05 jmp 5 - 80487ce: ff 45 c8 incl -56(%ebp) - 80487d1: eb 99 jmp -103 - 80487d3: 83 7d d8 00 cmpl $0, -40(%ebp) - 80487d7: 74 11 je 17 - 80487d9: ff 45 d4 incl -44(%ebp) - 80487dc: 8b 45 d4 movl -44(%ebp), %eax - 80487df: 3b 45 b8 cmpl -72(%ebp), %eax - 80487e2: 0f 82 71 ff ff ff jb -143 - 80487e8: eb 01 jmp 1 - 80487ea: 90 nop - 80487eb: 83 7d d8 00 cmpl $0, -40(%ebp) - 80487ef: 75 08 jne 8 - 80487f1: 8b 45 dc movl -36(%ebp), %eax - 80487f4: 89 45 e4 movl %eax, -28(%ebp) - 80487f7: eb 11 jmp 17 - 80487f9: ff 45 dc incl -36(%ebp) - 80487fc: a1 a0 cd 04 08 movl 134532512, %eax - 8048801: 39 45 dc cmpl %eax, -36(%ebp) - 8048804: 0f 82 06 ff ff ff jb -250 - 804880a: 83 7d e4 ff cmpl $-1, -28(%ebp) - 804880e: 75 20 jne 32 - 8048810: 83 ec 0c subl $12, %esp - 8048813: 68 00 01 00 00 pushl $256 - 8048818: e8 16 fd ff ff calll -746 - 804881d: 83 c4 10 addl $16, %esp - 8048820: 83 ec 0c subl $12, %esp - 8048823: ff 75 08 pushl 8(%ebp) - 8048826: e8 74 fe ff ff calll -396 - 804882b: 83 c4 10 addl $16, %esp - 804882e: eb 78 jmp 120 - 8048830: c7 45 c4 00 00 00 00 movl $0, -60(%ebp) - 8048837: eb 1b jmp 27 - 8048839: 8b 55 e0 movl -32(%ebp), %edx - 804883c: 8b 45 c4 movl -60(%ebp), %eax - 804883f: 01 c2 addl %eax, %edx - 8048841: 8b 45 98 movl -104(%ebp), %eax - 8048844: 83 ec 08 subl $8, %esp - 8048847: 52 pushl %edx - 8048848: 50 pushl %eax - 8048849: e8 57 fc ff ff calll -937 - 804884e: 83 c4 10 addl $16, %esp - 8048851: ff 45 c4 incl -60(%ebp) - 8048854: 8b 45 c4 movl -60(%ebp), %eax - 8048857: 3b 45 c0 cmpl -64(%ebp), %eax - 804885a: 72 dd jb -35 - 804885c: 8b 45 e0 movl -32(%ebp), %eax - 804885f: c1 e0 03 shll $3, %eax - 8048862: 83 c0 0c addl $12, %eax - 8048865: 89 45 b0 movl %eax, -80(%ebp) - 8048868: 8b 45 a8 movl -88(%ebp), %eax - 804886b: 8b 55 b0 movl -80(%ebp), %edx - 804886e: 83 ea 0c subl $12, %edx - 8048871: 01 d0 addl %edx, %eax - 8048873: 89 45 ac movl %eax, -84(%ebp) - 8048876: 8b 45 ac movl -84(%ebp), %eax - 8048879: 8b 55 c0 movl -64(%ebp), %edx - 804887c: 89 10 movl %edx, (%eax) - 804887e: 8b 45 ac movl -84(%ebp), %eax - 8048881: 8d 50 04 leal 4(%eax), %edx - 8048884: 8b 45 e0 movl -32(%ebp), %eax - 8048887: 89 02 movl %eax, (%edx) - 8048889: 8b 45 ac movl -84(%ebp), %eax - 804888c: 8d 50 08 leal 8(%eax), %edx - 804888f: 8b 45 e4 movl -28(%ebp), %eax - 8048892: 89 02 movl %eax, (%edx) - 8048894: 8b 45 a4 movl -92(%ebp), %eax - 8048897: 2b 45 08 subl 8(%ebp), %eax - 804889a: 83 e8 0c subl $12, %eax - 804889d: 89 45 a4 movl %eax, -92(%ebp) - 80488a0: 8b 55 a8 movl -88(%ebp), %edx - 80488a3: 8b 45 b0 movl -80(%ebp), %eax - 80488a6: 01 d0 addl %edx, %eax - 80488a8: 8d 65 f4 leal -12(%ebp), %esp - 80488ab: 5b popl %ebx - 80488ac: 5e popl %esi - 80488ad: 5f popl %edi - 80488ae: 5d popl %ebp - 80488af: c3 retl - -realloc: - 80488b0: 55 pushl %ebp - 80488b1: 89 e5 movl %esp, %ebp - 80488b3: 83 ec 18 subl $24, %esp - 80488b6: 83 ec 0c subl $12, %esp - 80488b9: ff 75 0c pushl 12(%ebp) - 80488bc: e8 de fd ff ff calll -546 - 80488c1: 83 c4 10 addl $16, %esp - 80488c4: 89 45 f4 movl %eax, -12(%ebp) - 80488c7: 83 7d 08 00 cmpl $0, 8(%ebp) - 80488cb: 75 05 jne 5 - 80488cd: 8b 45 f4 movl -12(%ebp), %eax - 80488d0: eb 38 jmp 56 - 80488d2: 8b 45 08 movl 8(%ebp), %eax - 80488d5: 8b 40 f4 movl -12(%eax), %eax - 80488d8: 89 45 f0 movl %eax, -16(%ebp) - 80488db: 8b 45 f0 movl -16(%ebp), %eax - 80488de: c1 e0 02 shll $2, %eax - 80488e1: 83 ec 04 subl $4, %esp - 80488e4: 50 pushl %eax - 80488e5: ff 75 08 pushl 8(%ebp) - 80488e8: ff 75 f4 pushl -12(%ebp) - 80488eb: e8 b0 00 00 00 calll 176 - 80488f0: 83 c4 10 addl $16, %esp - 80488f3: 83 ec 0c subl $12, %esp - 80488f6: ff 75 08 pushl 8(%ebp) - 80488f9: e8 0e 00 00 00 calll 14 - 80488fe: 83 c4 10 addl $16, %esp - 8048901: 8b 45 f4 movl -12(%ebp), %eax - 8048904: 89 45 08 movl %eax, 8(%ebp) - 8048907: 8b 45 f4 movl -12(%ebp), %eax - 804890a: c9 leave - 804890b: c3 retl - -free: - 804890c: 55 pushl %ebp - 804890d: 89 e5 movl %esp, %ebp - 804890f: 57 pushl %edi - 8048910: 56 pushl %esi - 8048911: 53 pushl %ebx - 8048912: 83 ec 30 subl $48, %esp - 8048915: 8b 45 08 movl 8(%ebp), %eax - 8048918: 83 e8 0c subl $12, %eax - 804891b: 89 45 ec movl %eax, -20(%ebp) - 804891e: 8b 45 ec movl -20(%ebp), %eax - 8048921: 8b 00 movl (%eax), %eax - 8048923: 89 45 e8 movl %eax, -24(%ebp) - 8048926: 8b 45 ec movl -20(%ebp), %eax - 8048929: 8b 40 04 movl 4(%eax), %eax - 804892c: 89 45 e4 movl %eax, -28(%ebp) - 804892f: 8b 45 ec movl -20(%ebp), %eax - 8048932: 8b 40 08 movl 8(%eax), %eax - 8048935: 89 45 e0 movl %eax, -32(%ebp) - 8048938: 8b 55 e0 movl -32(%ebp), %edx - 804893b: 89 d0 movl %edx, %eax - 804893d: c1 e0 02 shll $2, %eax - 8048940: 01 d0 addl %edx, %eax - 8048942: c1 e0 02 shll $2, %eax - 8048945: 8d 90 a0 a5 04 08 leal 134522272(%eax), %edx - 804894b: 8d 45 cc leal -52(%ebp), %eax - 804894e: 89 d3 movl %edx, %ebx - 8048950: ba 05 00 00 00 movl $5, %edx - 8048955: 89 c7 movl %eax, %edi - 8048957: 89 de movl %ebx, %esi - 8048959: 89 d1 movl %edx, %ecx - 804895b: f3 a5 rep movsl (%esi), %es:(%edi) - 804895d: c7 45 f0 00 00 00 00 movl $0, -16(%ebp) - 8048964: eb 18 jmp 24 - 8048966: 8b 55 e4 movl -28(%ebp), %edx - 8048969: 8b 45 f0 movl -16(%ebp), %eax - 804896c: 01 c2 addl %eax, %edx - 804896e: 8b 45 cc movl -52(%ebp), %eax - 8048971: 52 pushl %edx - 8048972: 50 pushl %eax - 8048973: e8 73 fb ff ff calll -1165 - 8048978: 83 c4 08 addl $8, %esp - 804897b: ff 45 f0 incl -16(%ebp) - 804897e: 8b 45 f0 movl -16(%ebp), %eax - 8048981: 3b 45 e8 cmpl -24(%ebp), %eax - 8048984: 72 e0 jb -32 - 8048986: 8b 45 d8 movl -40(%ebp), %eax - 8048989: 8b 55 e8 movl -24(%ebp), %edx - 804898c: 83 c2 03 addl $3, %edx - 804898f: c1 e2 02 shll $2, %edx - 8048992: 01 d0 addl %edx, %eax - 8048994: 89 45 d8 movl %eax, -40(%ebp) - 8048997: 90 nop - 8048998: 8d 65 f4 leal -12(%ebp), %esp - 804899b: 5b popl %ebx - 804899c: 5e popl %esi - 804899d: 5f popl %edi - 804899e: 5d popl %ebp - 804899f: c3 retl - -memcpy: - 80489a0: 55 pushl %ebp - 80489a1: 89 e5 movl %esp, %ebp - 80489a3: 83 ec 10 subl $16, %esp - 80489a6: 8b 45 0c movl 12(%ebp), %eax - 80489a9: 89 45 f8 movl %eax, -8(%ebp) - 80489ac: 8b 45 08 movl 8(%ebp), %eax - 80489af: 89 45 f4 movl %eax, -12(%ebp) - 80489b2: c7 45 fc 00 00 00 00 movl $0, -4(%ebp) - 80489b9: eb 17 jmp 23 - 80489bb: 8b 55 f8 movl -8(%ebp), %edx - 80489be: 8b 45 fc movl -4(%ebp), %eax - 80489c1: 01 d0 addl %edx, %eax - 80489c3: 8b 4d f4 movl -12(%ebp), %ecx - 80489c6: 8b 55 fc movl -4(%ebp), %edx - 80489c9: 01 ca addl %ecx, %edx - 80489cb: 8a 00 movb (%eax), %al - 80489cd: 88 02 movb %al, (%edx) - 80489cf: ff 45 fc incl -4(%ebp) - 80489d2: 8b 45 fc movl -4(%ebp), %eax - 80489d5: 3b 45 10 cmpl 16(%ebp), %eax - 80489d8: 72 e1 jb -31 - 80489da: 8b 45 08 movl 8(%ebp), %eax - 80489dd: c9 leave - 80489de: c3 retl - -memset: - 80489df: 55 pushl %ebp - 80489e0: 89 e5 movl %esp, %ebp - 80489e2: 83 ec 10 subl $16, %esp - 80489e5: 8b 45 08 movl 8(%ebp), %eax - 80489e8: 89 45 f8 movl %eax, -8(%ebp) - 80489eb: c7 45 fc 00 00 00 00 movl $0, -4(%ebp) - 80489f2: eb 10 jmp 16 - 80489f4: 8b 55 f8 movl -8(%ebp), %edx - 80489f7: 8b 45 fc movl -4(%ebp), %eax - 80489fa: 01 d0 addl %edx, %eax - 80489fc: 8b 55 0c movl 12(%ebp), %edx - 80489ff: 88 10 movb %dl, (%eax) - 8048a01: ff 45 fc incl -4(%ebp) - 8048a04: 8b 45 fc movl -4(%ebp), %eax - 8048a07: 3b 45 10 cmpl 16(%ebp), %eax - 8048a0a: 72 e8 jb -24 - 8048a0c: 8b 45 08 movl 8(%ebp), %eax - 8048a0f: c9 leave - 8048a10: c3 retl - -strcmp: - 8048a11: 55 pushl %ebp - 8048a12: 89 e5 movl %esp, %ebp - 8048a14: 83 ec 10 subl $16, %esp - 8048a17: c7 45 fc 00 00 00 00 movl $0, -4(%ebp) - 8048a1e: eb 18 jmp 24 - 8048a20: 8b 55 fc movl -4(%ebp), %edx - 8048a23: 8b 45 08 movl 8(%ebp), %eax - 8048a26: 01 d0 addl %edx, %eax - 8048a28: 8a 00 movb (%eax), %al - 8048a2a: 84 c0 testb %al, %al - 8048a2c: 75 07 jne 7 - 8048a2e: b8 00 00 00 00 movl $0, %eax - 8048a33: eb 39 jmp 57 - 8048a35: ff 45 fc incl -4(%ebp) - 8048a38: 8b 55 fc movl -4(%ebp), %edx - 8048a3b: 8b 45 08 movl 8(%ebp), %eax - 8048a3e: 01 d0 addl %edx, %eax - 8048a40: 8a 10 movb (%eax), %dl - 8048a42: 8b 4d fc movl -4(%ebp), %ecx - 8048a45: 8b 45 0c movl 12(%ebp), %eax - 8048a48: 01 c8 addl %ecx, %eax - 8048a4a: 8a 00 movb (%eax), %al - 8048a4c: 38 c2 cmpb %al, %dl - 8048a4e: 74 d0 je -48 - 8048a50: 8b 55 fc movl -4(%ebp), %edx - 8048a53: 8b 45 08 movl 8(%ebp), %eax - 8048a56: 01 d0 addl %edx, %eax - 8048a58: 8a 00 movb (%eax), %al - 8048a5a: 0f be d0 movsbl %al, %edx - 8048a5d: 8b 4d fc movl -4(%ebp), %ecx - 8048a60: 8b 45 0c movl 12(%ebp), %eax - 8048a63: 01 c8 addl %ecx, %eax - 8048a65: 8a 00 movb (%eax), %al - 8048a67: 0f be c0 movsbl %al, %eax - 8048a6a: 29 c2 subl %eax, %edx - 8048a6c: 89 d0 movl %edx, %eax - 8048a6e: c9 leave - 8048a6f: c3 retl - -strlen: - 8048a70: 55 pushl %ebp - 8048a71: 89 e5 movl %esp, %ebp - 8048a73: 83 ec 10 subl $16, %esp - 8048a76: c7 45 fc 00 00 00 00 movl $0, -4(%ebp) - 8048a7d: eb 03 jmp 3 - 8048a7f: ff 45 fc incl -4(%ebp) - 8048a82: 8b 55 08 movl 8(%ebp), %edx - 8048a85: 8b 45 fc movl -4(%ebp), %eax - 8048a88: 01 d0 addl %edx, %eax - 8048a8a: 8a 00 movb (%eax), %al - 8048a8c: 84 c0 testb %al, %al - 8048a8e: 75 ef jne -17 - 8048a90: 8b 45 fc movl -4(%ebp), %eax - 8048a93: c9 leave - 8048a94: c3 retl - -strcpy: - 8048a95: 55 pushl %ebp - 8048a96: 89 e5 movl %esp, %ebp - 8048a98: 83 ec 10 subl $16, %esp - 8048a9b: c7 45 fc 00 00 00 00 movl $0, -4(%ebp) - 8048aa2: eb 17 jmp 23 - 8048aa4: 8b 55 0c movl 12(%ebp), %edx - 8048aa7: 8b 45 fc movl -4(%ebp), %eax - 8048aaa: 01 d0 addl %edx, %eax - 8048aac: 8b 4d 08 movl 8(%ebp), %ecx - 8048aaf: 8b 55 fc movl -4(%ebp), %edx - 8048ab2: 01 ca addl %ecx, %edx - 8048ab4: 8a 00 movb (%eax), %al - 8048ab6: 88 02 movb %al, (%edx) - 8048ab8: ff 45 fc incl -4(%ebp) - 8048abb: ff 75 0c pushl 12(%ebp) - 8048abe: e8 ad ff ff ff calll -83 - 8048ac3: 83 c4 04 addl $4, %esp - 8048ac6: 39 45 fc cmpl %eax, -4(%ebp) - 8048ac9: 72 d9 jb -39 - 8048acb: 8b 55 08 movl 8(%ebp), %edx - 8048ace: 8b 45 fc movl -4(%ebp), %eax - 8048ad1: 01 d0 addl %edx, %eax - 8048ad3: c6 00 00 movb $0, (%eax) - 8048ad6: 8b 45 08 movl 8(%ebp), %eax - 8048ad9: c9 leave - 8048ada: c3 retl - -strrev: - 8048adb: 55 pushl %ebp - 8048adc: 89 e5 movl %esp, %ebp - 8048ade: 83 ec 10 subl $16, %esp - 8048ae1: c7 45 fc 00 00 00 00 movl $0, -4(%ebp) - 8048ae8: ff 75 08 pushl 8(%ebp) - 8048aeb: e8 80 ff ff ff calll -128 - 8048af0: 83 c4 04 addl $4, %esp - 8048af3: 48 decl %eax - 8048af4: 89 45 f8 movl %eax, -8(%ebp) - 8048af7: eb 34 jmp 52 - 8048af9: 8b 55 fc movl -4(%ebp), %edx - 8048afc: 8b 45 08 movl 8(%ebp), %eax - 8048aff: 01 d0 addl %edx, %eax - 8048b01: 8a 00 movb (%eax), %al - 8048b03: 88 45 f7 movb %al, -9(%ebp) - 8048b06: 8b 55 f8 movl -8(%ebp), %edx - 8048b09: 8b 45 08 movl 8(%ebp), %eax - 8048b0c: 01 d0 addl %edx, %eax - 8048b0e: 8b 4d fc movl -4(%ebp), %ecx - 8048b11: 8b 55 08 movl 8(%ebp), %edx - 8048b14: 01 ca addl %ecx, %edx - 8048b16: 8a 00 movb (%eax), %al - 8048b18: 88 02 movb %al, (%edx) - 8048b1a: 8b 55 f8 movl -8(%ebp), %edx - 8048b1d: 8b 45 08 movl 8(%ebp), %eax - 8048b20: 01 c2 addl %eax, %edx - 8048b22: 8a 45 f7 movb -9(%ebp), %al - 8048b25: 88 02 movb %al, (%edx) - 8048b27: ff 45 fc incl -4(%ebp) - 8048b2a: ff 4d f8 decl -8(%ebp) - 8048b2d: 8b 45 fc movl -4(%ebp), %eax - 8048b30: 3b 45 f8 cmpl -8(%ebp), %eax - 8048b33: 7c c4 jl -60 - 8048b35: 8b 45 08 movl 8(%ebp), %eax - 8048b38: c9 leave - 8048b39: c3 retl - -int_to_ascii: - 8048b3a: 55 pushl %ebp - 8048b3b: 89 e5 movl %esp, %ebp - 8048b3d: 83 ec 10 subl $16, %esp - 8048b40: 8b 45 08 movl 8(%ebp), %eax - 8048b43: 89 45 f8 movl %eax, -8(%ebp) - 8048b46: 83 7d f8 00 cmpl $0, -8(%ebp) - 8048b4a: 79 03 jns 3 - 8048b4c: f7 5d 08 negl 8(%ebp) - 8048b4f: c7 45 fc 00 00 00 00 movl $0, -4(%ebp) - 8048b56: 8b 45 08 movl 8(%ebp), %eax - 8048b59: b9 0a 00 00 00 movl $10, %ecx - 8048b5e: 99 cltd - 8048b5f: f7 f9 idivl %ecx - 8048b61: 89 d0 movl %edx, %eax - 8048b63: 8d 48 30 leal 48(%eax), %ecx - 8048b66: 8b 45 fc movl -4(%ebp), %eax - 8048b69: 8d 50 01 leal 1(%eax), %edx - 8048b6c: 89 55 fc movl %edx, -4(%ebp) - 8048b6f: 89 c2 movl %eax, %edx - 8048b71: 8b 45 0c movl 12(%ebp), %eax - 8048b74: 01 d0 addl %edx, %eax - 8048b76: 88 ca movb %cl, %dl - 8048b78: 88 10 movb %dl, (%eax) - 8048b7a: 8b 4d 08 movl 8(%ebp), %ecx - 8048b7d: b8 67 66 66 66 movl $1717986919, %eax - 8048b82: f7 e9 imull %ecx - 8048b84: c1 fa 02 sarl $2, %edx - 8048b87: 89 c8 movl %ecx, %eax - 8048b89: c1 f8 1f sarl $31, %eax - 8048b8c: 29 c2 subl %eax, %edx - 8048b8e: 89 d0 movl %edx, %eax - 8048b90: 89 45 08 movl %eax, 8(%ebp) - 8048b93: 83 7d 08 00 cmpl $0, 8(%ebp) - 8048b97: 7f bd jg -67 - 8048b99: 83 7d f8 00 cmpl $0, -8(%ebp) - 8048b9d: 79 13 jns 19 - 8048b9f: 8b 45 fc movl -4(%ebp), %eax - 8048ba2: 8d 50 01 leal 1(%eax), %edx - 8048ba5: 89 55 fc movl %edx, -4(%ebp) - 8048ba8: 89 c2 movl %eax, %edx - 8048baa: 8b 45 0c movl 12(%ebp), %eax - 8048bad: 01 d0 addl %edx, %eax - 8048baf: c6 00 2d movb $45, (%eax) - 8048bb2: 8b 55 fc movl -4(%ebp), %edx - 8048bb5: 8b 45 0c movl 12(%ebp), %eax - 8048bb8: 01 d0 addl %edx, %eax - 8048bba: c6 00 00 movb $0, (%eax) - 8048bbd: ff 75 0c pushl 12(%ebp) - 8048bc0: e8 16 ff ff ff calll -234 - 8048bc5: 83 c4 04 addl $4, %esp - 8048bc8: 90 nop - 8048bc9: c9 leave - 8048bca: c3 retl - -hex_to_ascii: - 8048bcb: 55 pushl %ebp - 8048bcc: 89 e5 movl %esp, %ebp - 8048bce: 83 ec 18 subl $24, %esp - 8048bd1: 83 ec 08 subl $8, %esp - 8048bd4: 6a 30 pushl $48 - 8048bd6: ff 75 0c pushl 12(%ebp) - 8048bd9: e8 cb 00 00 00 calll 203 - 8048bde: 83 c4 10 addl $16, %esp - 8048be1: 83 ec 08 subl $8, %esp - 8048be4: 6a 78 pushl $120 - 8048be6: ff 75 0c pushl 12(%ebp) - 8048be9: e8 bb 00 00 00 calll 187 - 8048bee: 83 c4 10 addl $16, %esp - 8048bf1: c6 45 f7 00 movb $0, -9(%ebp) - 8048bf5: c7 45 f0 1c 00 00 00 movl $28, -16(%ebp) - 8048bfc: eb 61 jmp 97 - 8048bfe: 8b 45 f0 movl -16(%ebp), %eax - 8048c01: 8b 55 08 movl 8(%ebp), %edx - 8048c04: 88 c1 movb %al, %cl - 8048c06: d3 fa sarl %cl, %edx - 8048c08: 89 d0 movl %edx, %eax - 8048c0a: 83 e0 0f andl $15, %eax - 8048c0d: 89 45 ec movl %eax, -20(%ebp) - 8048c10: 83 7d ec 00 cmpl $0, -20(%ebp) - 8048c14: 75 06 jne 6 - 8048c16: 80 7d f7 00 cmpb $0, -9(%ebp) - 8048c1a: 74 3e je 62 - 8048c1c: c6 45 f7 01 movb $1, -9(%ebp) - 8048c20: 83 7d ec 0a cmpl $10, -20(%ebp) - 8048c24: 76 1a jbe 26 - 8048c26: 8b 45 ec movl -20(%ebp), %eax - 8048c29: 83 c0 57 addl $87, %eax - 8048c2c: 0f be c0 movsbl %al, %eax - 8048c2f: 83 ec 08 subl $8, %esp - 8048c32: 50 pushl %eax - 8048c33: ff 75 0c pushl 12(%ebp) - 8048c36: e8 6e 00 00 00 calll 110 - 8048c3b: 83 c4 10 addl $16, %esp - 8048c3e: eb 1b jmp 27 - 8048c40: 8b 45 ec movl -20(%ebp), %eax - 8048c43: 83 c0 30 addl $48, %eax - 8048c46: 0f be c0 movsbl %al, %eax - 8048c49: 83 ec 08 subl $8, %esp - 8048c4c: 50 pushl %eax - 8048c4d: ff 75 0c pushl 12(%ebp) - 8048c50: e8 54 00 00 00 calll 84 - 8048c55: 83 c4 10 addl $16, %esp - 8048c58: eb 01 jmp 1 - 8048c5a: 90 nop - 8048c5b: 83 6d f0 04 subl $4, -16(%ebp) - 8048c5f: 83 7d f0 00 cmpl $0, -16(%ebp) - 8048c63: 7f 99 jg -103 - 8048c65: 8b 45 08 movl 8(%ebp), %eax - 8048c68: 83 e0 0f andl $15, %eax - 8048c6b: 89 45 ec movl %eax, -20(%ebp) - 8048c6e: 83 7d ec 09 cmpl $9, -20(%ebp) - 8048c72: 76 1a jbe 26 - 8048c74: 8b 45 ec movl -20(%ebp), %eax - 8048c77: 83 c0 57 addl $87, %eax - 8048c7a: 0f be c0 movsbl %al, %eax - 8048c7d: 83 ec 08 subl $8, %esp - 8048c80: 50 pushl %eax - 8048c81: ff 75 0c pushl 12(%ebp) - 8048c84: e8 20 00 00 00 calll 32 - 8048c89: 83 c4 10 addl $16, %esp - 8048c8c: eb 18 jmp 24 - 8048c8e: 8b 45 ec movl -20(%ebp), %eax - 8048c91: 83 c0 30 addl $48, %eax - 8048c94: 0f be c0 movsbl %al, %eax - 8048c97: 83 ec 08 subl $8, %esp - 8048c9a: 50 pushl %eax - 8048c9b: ff 75 0c pushl 12(%ebp) - 8048c9e: e8 06 00 00 00 calll 6 - 8048ca3: 83 c4 10 addl $16, %esp - 8048ca6: 90 nop - 8048ca7: c9 leave - 8048ca8: c3 retl - -append: - 8048ca9: 55 pushl %ebp - 8048caa: 89 e5 movl %esp, %ebp - 8048cac: 83 ec 14 subl $20, %esp - 8048caf: 8b 45 0c movl 12(%ebp), %eax - 8048cb2: 88 45 ec movb %al, -20(%ebp) - 8048cb5: ff 75 08 pushl 8(%ebp) - 8048cb8: e8 b3 fd ff ff calll -589 - 8048cbd: 83 c4 04 addl $4, %esp - 8048cc0: 89 45 fc movl %eax, -4(%ebp) - 8048cc3: 8b 55 fc movl -4(%ebp), %edx - 8048cc6: 8b 45 08 movl 8(%ebp), %eax - 8048cc9: 01 c2 addl %eax, %edx - 8048ccb: 8a 45 ec movb -20(%ebp), %al - 8048cce: 88 02 movb %al, (%edx) - 8048cd0: 8b 45 fc movl -4(%ebp), %eax - 8048cd3: 8d 50 01 leal 1(%eax), %edx - 8048cd6: 8b 45 08 movl 8(%ebp), %eax - 8048cd9: 01 d0 addl %edx, %eax - 8048cdb: c6 00 00 movb $0, (%eax) - 8048cde: 90 nop - 8048cdf: c9 leave - 8048ce0: c3 retl - -backspace: - 8048ce1: 55 pushl %ebp - 8048ce2: 89 e5 movl %esp, %ebp - 8048ce4: 83 ec 10 subl $16, %esp - 8048ce7: ff 75 08 pushl 8(%ebp) - 8048cea: e8 81 fd ff ff calll -639 - 8048cef: 83 c4 04 addl $4, %esp - 8048cf2: 89 45 fc movl %eax, -4(%ebp) - 8048cf5: 8b 45 fc movl -4(%ebp), %eax - 8048cf8: 8d 50 ff leal -1(%eax), %edx - 8048cfb: 8b 45 08 movl 8(%ebp), %eax - 8048cfe: 01 d0 addl %edx, %eax - 8048d00: c6 00 00 movb $0, (%eax) - 8048d03: 90 nop - 8048d04: c9 leave - 8048d05: c3 retl - -strtok_delim_check: - 8048d06: 55 pushl %ebp - 8048d07: 89 e5 movl %esp, %ebp - 8048d09: 83 ec 10 subl $16, %esp - 8048d0c: c7 45 fc 00 00 00 00 movl $0, -4(%ebp) - 8048d13: eb 37 jmp 55 - 8048d15: 8b 15 a4 cd 04 08 movl 134532516, %edx - 8048d1b: a1 a8 cd 04 08 movl 134532520, %eax - 8048d20: 01 d0 addl %edx, %eax - 8048d22: 8a 10 movb (%eax), %dl - 8048d24: 8b 4d 08 movl 8(%ebp), %ecx - 8048d27: 8b 45 fc movl -4(%ebp), %eax - 8048d2a: 01 c8 addl %ecx, %eax - 8048d2c: 8a 00 movb (%eax), %al - 8048d2e: 38 c2 cmpb %al, %dl - 8048d30: 74 13 je 19 - 8048d32: 8b 15 a4 cd 04 08 movl 134532516, %edx - 8048d38: a1 a8 cd 04 08 movl 134532520, %eax - 8048d3d: 01 d0 addl %edx, %eax - 8048d3f: 8a 00 movb (%eax), %al - 8048d41: 84 c0 testb %al, %al - 8048d43: 75 04 jne 4 - 8048d45: b0 00 movb $0, %al - 8048d47: eb 15 jmp 21 - 8048d49: ff 45 fc incl -4(%ebp) - 8048d4c: ff 75 08 pushl 8(%ebp) - 8048d4f: e8 1c fd ff ff calll -740 - 8048d54: 83 c4 04 addl $4, %esp - 8048d57: 39 45 fc cmpl %eax, -4(%ebp) - 8048d5a: 72 b9 jb -71 - 8048d5c: b0 01 movb $1, %al - 8048d5e: c9 leave - 8048d5f: c3 retl - -strtok: - 8048d60: 55 pushl %ebp - 8048d61: 89 e5 movl %esp, %ebp - 8048d63: 83 ec 18 subl $24, %esp - 8048d66: 83 7d 08 00 cmpl $0, 8(%ebp) - 8048d6a: 74 12 je 18 - 8048d6c: 8b 45 08 movl 8(%ebp), %eax - 8048d6f: a3 a4 cd 04 08 movl %eax, 134532516 - 8048d74: c7 05 a8 cd 04 08 00 00 00 00 movl $0, 134532520 - 8048d7e: a1 a4 cd 04 08 movl 134532516, %eax - 8048d83: 85 c0 testl %eax, %eax - 8048d85: 74 19 je 25 - 8048d87: a1 a4 cd 04 08 movl 134532516, %eax - 8048d8c: 50 pushl %eax - 8048d8d: e8 de fc ff ff calll -802 - 8048d92: 83 c4 04 addl $4, %esp - 8048d95: 89 c2 movl %eax, %edx - 8048d97: a1 a8 cd 04 08 movl 134532520, %eax - 8048d9c: 39 c2 cmpl %eax, %edx - 8048d9e: 73 0a jae 10 - 8048da0: b8 00 00 00 00 movl $0, %eax - 8048da5: e9 9b 00 00 00 jmp 155 - 8048daa: 83 ec 0c subl $12, %esp - 8048dad: 6a 20 pushl $32 - 8048daf: e8 eb f8 ff ff calll -1813 - 8048db4: 83 c4 10 addl $16, %esp - 8048db7: 89 45 f4 movl %eax, -12(%ebp) - 8048dba: 8b 45 f4 movl -12(%ebp), %eax - 8048dbd: c6 00 00 movb $0, (%eax) - 8048dc0: c7 45 f0 20 00 00 00 movl $32, -16(%ebp) - 8048dc7: eb 5c jmp 92 - 8048dc9: 83 ec 0c subl $12, %esp - 8048dcc: ff 75 f4 pushl -12(%ebp) - 8048dcf: e8 9c fc ff ff calll -868 - 8048dd4: 83 c4 10 addl $16, %esp - 8048dd7: 40 incl %eax - 8048dd8: 39 45 f0 cmpl %eax, -16(%ebp) - 8048ddb: 75 1c jne 28 - 8048ddd: 8b 45 f0 movl -16(%ebp), %eax - 8048de0: 83 c0 20 addl $32, %eax - 8048de3: 83 ec 08 subl $8, %esp - 8048de6: 50 pushl %eax - 8048de7: ff 75 f4 pushl -12(%ebp) - 8048dea: e8 c1 fa ff ff calll -1343 - 8048def: 83 c4 10 addl $16, %esp - 8048df2: 89 45 f4 movl %eax, -12(%ebp) - 8048df5: 83 45 f0 20 addl $32, -16(%ebp) - 8048df9: 8b 15 a4 cd 04 08 movl 134532516, %edx - 8048dff: a1 a8 cd 04 08 movl 134532520, %eax - 8048e04: 01 d0 addl %edx, %eax - 8048e06: 8a 00 movb (%eax), %al - 8048e08: 0f be c0 movsbl %al, %eax - 8048e0b: 83 ec 08 subl $8, %esp - 8048e0e: 50 pushl %eax - 8048e0f: ff 75 f4 pushl -12(%ebp) - 8048e12: e8 92 fe ff ff calll -366 - 8048e17: 83 c4 10 addl $16, %esp - 8048e1a: a1 a8 cd 04 08 movl 134532520, %eax - 8048e1f: 40 incl %eax - 8048e20: a3 a8 cd 04 08 movl %eax, 134532520 - 8048e25: 83 ec 0c subl $12, %esp - 8048e28: ff 75 0c pushl 12(%ebp) - 8048e2b: e8 d6 fe ff ff calll -298 - 8048e30: 83 c4 10 addl $16, %esp - 8048e33: 84 c0 testb %al, %al - 8048e35: 75 92 jne -110 - 8048e37: a1 a8 cd 04 08 movl 134532520, %eax - 8048e3c: 40 incl %eax - 8048e3d: a3 a8 cd 04 08 movl %eax, 134532520 - 8048e42: 8b 45 f4 movl -12(%ebp), %eax - 8048e45: c9 leave - 8048e46: c3 retl - -yield: - 8048e47: 55 pushl %ebp - 8048e48: 89 e5 movl %esp, %ebp - 8048e4a: b8 01 00 00 00 movl $1, %eax - 8048e4f: cd 50 int $80 - 8048e51: 90 nop - 8048e52: 5d popl %ebp - 8048e53: c3 retl - -createTask: - 8048e54: 55 pushl %ebp - 8048e55: 89 e5 movl %esp, %ebp - 8048e57: 53 pushl %ebx - 8048e58: 8b 45 08 movl 8(%ebp), %eax - 8048e5b: 89 c3 movl %eax, %ebx - 8048e5d: b8 02 00 00 00 movl $2, %eax - 8048e62: cd 50 int $80 - 8048e64: 90 nop - 8048e65: 5b popl %ebx - 8048e66: 5d popl %ebp - 8048e67: c3 retl - -createTaskCr3: - 8048e68: 55 pushl %ebp - 8048e69: 89 e5 movl %esp, %ebp - 8048e6b: 53 pushl %ebx - 8048e6c: 8b 45 08 movl 8(%ebp), %eax - 8048e6f: 8b 55 0c movl 12(%ebp), %edx - 8048e72: 89 c3 movl %eax, %ebx - 8048e74: 89 d1 movl %edx, %ecx - 8048e76: b8 09 00 00 00 movl $9, %eax - 8048e7b: cd 50 int $80 - 8048e7d: 90 nop - 8048e7e: 5b popl %ebx - 8048e7f: 5d popl %ebp - 8048e80: c3 retl - -createTaskCr3Param: - 8048e81: 55 pushl %ebp - 8048e82: 89 e5 movl %esp, %ebp - 8048e84: 56 pushl %esi - 8048e85: 53 pushl %ebx - 8048e86: 8b 45 08 movl 8(%ebp), %eax - 8048e89: 8b 4d 0c movl 12(%ebp), %ecx - 8048e8c: 8b 55 10 movl 16(%ebp), %edx - 8048e8f: 8b 75 14 movl 20(%ebp), %esi - 8048e92: 89 c3 movl %eax, %ebx - 8048e94: b8 0c 00 00 00 movl $12, %eax - 8048e99: cd 50 int $80 - 8048e9b: 90 nop - 8048e9c: 5b popl %ebx - 8048e9d: 5e popl %esi - 8048e9e: 5d popl %ebp - 8048e9f: c3 retl - -ceilf: - 8048ea0: 55 pushl %ebp - 8048ea1: 89 e5 movl %esp, %ebp - 8048ea3: 83 ec 18 subl $24, %esp - 8048ea6: d9 45 08 flds 8(%ebp) - 8048ea9: d9 7d ee fnstcw -18(%ebp) - 8048eac: 66 8b 45 ee movw -18(%ebp), %ax - 8048eb0: 80 cc 0c orb $12, %ah - 8048eb3: 66 89 45 ec movw %ax, -20(%ebp) - 8048eb7: d9 6d ec fldcw -20(%ebp) - 8048eba: db 5d fc fistpl -4(%ebp) - 8048ebd: d9 6d ee fldcw -18(%ebp) - 8048ec0: db 45 fc fildl -4(%ebp) - 8048ec3: d9 45 08 flds 8(%ebp) - 8048ec6: da e9 fucompp - 8048ec8: df e0 fnstsw %ax - 8048eca: 80 e4 45 andb $69, %ah - 8048ecd: 80 f4 40 xorb $64, %ah - 8048ed0: 75 05 jne 5 - 8048ed2: db 45 fc fildl -4(%ebp) - 8048ed5: eb 0a jmp 10 - 8048ed7: 8b 45 fc movl -4(%ebp), %eax - 8048eda: 40 incl %eax - 8048edb: 89 45 e8 movl %eax, -24(%ebp) - 8048ede: db 45 e8 fildl -24(%ebp) - 8048ee1: c9 leave - 8048ee2: c3 retl - -ceil: - 8048ee3: 55 pushl %ebp - 8048ee4: 89 e5 movl %esp, %ebp - 8048ee6: 83 ec 20 subl $32, %esp - 8048ee9: 8b 45 08 movl 8(%ebp), %eax - 8048eec: 89 45 e8 movl %eax, -24(%ebp) - 8048eef: 8b 45 0c movl 12(%ebp), %eax - 8048ef2: 89 45 ec movl %eax, -20(%ebp) - 8048ef5: dd 45 e8 fldl -24(%ebp) - 8048ef8: d9 7d e6 fnstcw -26(%ebp) - 8048efb: 66 8b 45 e6 movw -26(%ebp), %ax - 8048eff: 80 cc 0c orb $12, %ah - 8048f02: 66 89 45 e4 movw %ax, -28(%ebp) - 8048f06: d9 6d e4 fldcw -28(%ebp) - 8048f09: db 5d fc fistpl -4(%ebp) - 8048f0c: d9 6d e6 fldcw -26(%ebp) - 8048f0f: db 45 fc fildl -4(%ebp) - 8048f12: dd 45 e8 fldl -24(%ebp) - 8048f15: da e9 fucompp - 8048f17: df e0 fnstsw %ax - 8048f19: 80 e4 45 andb $69, %ah - 8048f1c: 80 f4 40 xorb $64, %ah - 8048f1f: 75 05 jne 5 - 8048f21: db 45 fc fildl -4(%ebp) - 8048f24: eb 0a jmp 10 - 8048f26: 8b 45 fc movl -4(%ebp), %eax - 8048f29: 40 incl %eax - 8048f2a: 89 45 e0 movl %eax, -32(%ebp) - 8048f2d: db 45 e0 fildl -32(%ebp) - 8048f30: c9 leave - 8048f31: c3 retl - -alloc_memory: - 8048f32: 55 pushl %ebp - 8048f33: 89 e5 movl %esp, %ebp - 8048f35: 53 pushl %ebx - 8048f36: 83 ec 10 subl $16, %esp - 8048f39: 8b 45 08 movl 8(%ebp), %eax - 8048f3c: 89 c3 movl %eax, %ebx - 8048f3e: b8 03 00 00 00 movl $3, %eax - 8048f43: cd 50 int $80 - 8048f45: 89 d8 movl %ebx, %eax - 8048f47: 89 45 f8 movl %eax, -8(%ebp) - 8048f4a: 8b 45 f8 movl -8(%ebp), %eax - 8048f4d: 83 c4 10 addl $16, %esp - 8048f50: 5b popl %ebx - 8048f51: 5d popl %ebp - 8048f52: c3 retl - -alloc_memory_virt: - 8048f53: 55 pushl %ebp - 8048f54: 89 e5 movl %esp, %ebp - 8048f56: 53 pushl %ebx - 8048f57: 8b 45 08 movl 8(%ebp), %eax - 8048f5a: 8b 55 0c movl 12(%ebp), %edx - 8048f5d: 89 c3 movl %eax, %ebx - 8048f5f: 89 d1 movl %edx, %ecx - 8048f61: b8 04 00 00 00 movl $4, %eax - 8048f66: cd 50 int $80 - 8048f68: 90 nop - 8048f69: 5b popl %ebx - 8048f6a: 5d popl %ebp - 8048f6b: c3 retl - -new_address_space: - 8048f6c: 55 pushl %ebp - 8048f6d: 89 e5 movl %esp, %ebp - 8048f6f: 53 pushl %ebx - 8048f70: 83 ec 10 subl $16, %esp - 8048f73: b8 08 00 00 00 movl $8, %eax - 8048f78: cd 50 int $80 - 8048f7a: 89 d8 movl %ebx, %eax - 8048f7c: 89 45 f8 movl %eax, -8(%ebp) - 8048f7f: 8b 45 f8 movl -8(%ebp), %eax - 8048f82: 83 c4 10 addl $16, %esp - 8048f85: 5b popl %ebx - 8048f86: 5d popl %ebp - 8048f87: c3 retl - -copy_data: - 8048f88: 55 pushl %ebp - 8048f89: 89 e5 movl %esp, %ebp - 8048f8b: 56 pushl %esi - 8048f8c: 53 pushl %ebx - 8048f8d: 8b 45 08 movl 8(%ebp), %eax - 8048f90: 8b 4d 0c movl 12(%ebp), %ecx - 8048f93: 8b 55 10 movl 16(%ebp), %edx - 8048f96: 8b 75 14 movl 20(%ebp), %esi - 8048f99: 89 c3 movl %eax, %ebx - 8048f9b: b8 0a 00 00 00 movl $10, %eax - 8048fa0: cd 50 int $80 - 8048fa2: 90 nop - 8048fa3: 5b popl %ebx - 8048fa4: 5e popl %esi - 8048fa5: 5d popl %ebp - 8048fa6: c3 retl - -put_data: - 8048fa7: 55 pushl %ebp - 8048fa8: 89 e5 movl %esp, %ebp - 8048faa: 53 pushl %ebx - 8048fab: 83 ec 10 subl $16, %esp - 8048fae: 8b 45 08 movl 8(%ebp), %eax - 8048fb1: 8b 4d 0c movl 12(%ebp), %ecx - 8048fb4: 8b 55 10 movl 16(%ebp), %edx - 8048fb7: 89 c3 movl %eax, %ebx - 8048fb9: b8 0d 00 00 00 movl $13, %eax - 8048fbe: cd 50 int $80 - 8048fc0: 89 d8 movl %ebx, %eax - 8048fc2: 89 45 f8 movl %eax, -8(%ebp) - 8048fc5: 8b 45 f8 movl -8(%ebp), %eax - 8048fc8: 83 c4 10 addl $16, %esp - 8048fcb: 5b popl %ebx - 8048fcc: 5d popl %ebp - 8048fcd: c3 retl - -map_phys: - 8048fce: 55 pushl %ebp - 8048fcf: 89 e5 movl %esp, %ebp - 8048fd1: 53 pushl %ebx - 8048fd2: 83 ec 10 subl $16, %esp - 8048fd5: 8b 45 08 movl 8(%ebp), %eax - 8048fd8: 8b 55 0c movl 12(%ebp), %edx - 8048fdb: 89 c3 movl %eax, %ebx - 8048fdd: 89 d1 movl %edx, %ecx - 8048fdf: b8 0b 00 00 00 movl $11, %eax - 8048fe4: cd 50 int $80 - 8048fe6: 89 d8 movl %ebx, %eax - 8048fe8: 89 45 f8 movl %eax, -8(%ebp) - 8048feb: 8b 45 f8 movl -8(%ebp), %eax - 8048fee: 83 c4 10 addl $16, %esp - 8048ff1: 5b popl %ebx - 8048ff2: 5d popl %ebp - 8048ff3: c3 retl diff --git a/init/main.c b/init/main.c index 5eb99f0..4a23575 100644 --- a/init/main.c +++ b/init/main.c @@ -171,7 +171,7 @@ int main() { uint32_t datapos=find_loc("vfs",initrd); load_task(datapos,initrd); yield(); // Bochs fails here - datapos=find_loc("fsdrv",initrd); + datapos=find_loc("devfs",initrd); load_task(datapos,initrd); free(initrd); yieldToPID(3);