.file "mem.c" .text .Ltext0: .globl memory_copy .type memory_copy, @function memory_copy: .LFB0: .file 1 "./libc/mem.c" .loc 1 3 0 .cfi_startproc pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 subl $16, %esp .loc 1 5 0 movl $0, -4(%ebp) jmp .L2 .L3: .loc 1 6 0 discriminator 3 movl -4(%ebp), %edx movl 12(%ebp), %eax addl %eax, %edx movl -4(%ebp), %ecx movl 8(%ebp), %eax addl %ecx, %eax movzbl (%eax), %eax movb %al, (%edx) .loc 1 5 0 discriminator 3 addl $1, -4(%ebp) .L2: .loc 1 5 0 is_stmt 0 discriminator 1 movl -4(%ebp), %eax cmpl 16(%ebp), %eax jl .L3 .loc 1 8 0 is_stmt 1 nop leave .cfi_restore 5 .cfi_def_cfa 4, 4 ret .cfi_endproc .LFE0: .size memory_copy, .-memory_copy .globl memory_set .type memory_set, @function memory_set: .LFB1: .loc 1 10 0 .cfi_startproc pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 subl $20, %esp movl 12(%ebp), %eax movb %al, -20(%ebp) .loc 1 11 0 movl 8(%ebp), %eax movl %eax, -4(%ebp) .loc 1 12 0 jmp .L5 .L6: .loc 1 12 0 is_stmt 0 discriminator 2 movl -4(%ebp), %eax leal 1(%eax), %edx movl %edx, -4(%ebp) movzbl -20(%ebp), %edx movb %dl, (%eax) subl $1, 16(%ebp) .L5: .loc 1 12 0 discriminator 1 cmpl $0, 16(%ebp) jne .L6 .loc 1 13 0 is_stmt 1 nop leave .cfi_restore 5 .cfi_def_cfa 4, 4 ret .cfi_endproc .LFE1: .size memory_set, .-memory_set .section .rodata .LC0: .string "Inside kmalloc phys_addr = " .LC1: .string "\n" .text .globl kmalloc .type kmalloc, @function kmalloc: .LFB2: .loc 1 18 0 .cfi_startproc pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 subl $40, %esp .loc 1 20 0 cmpl $1, 12(%ebp) jne .L8 .loc 1 20 0 is_stmt 0 discriminator 1 movl free_mem_addr, %eax andl $-4096, %eax testl %eax, %eax je .L8 .loc 1 21 0 is_stmt 1 movl free_mem_addr, %eax andl $-4096, %eax movl %eax, free_mem_addr .loc 1 22 0 movl free_mem_addr, %eax addl $4096, %eax movl %eax, free_mem_addr .L8: .loc 1 27 0 movl 16(%ebp), %eax movl (%eax), %eax movl %eax, %edx subl $8, %esp leal -28(%ebp), %eax pushl %eax pushl %edx call hex_to_ascii addl $16, %esp .loc 1 28 0 subl $12, %esp pushl $.LC0 call kprint addl $16, %esp .loc 1 29 0 subl $12, %esp leal -28(%ebp), %eax pushl %eax call kprint addl $16, %esp .loc 1 30 0 subl $12, %esp pushl $.LC1 call kprint addl $16, %esp .loc 1 33 0 movl free_mem_addr, %edx movl 16(%ebp), %eax movl %edx, (%eax) .loc 1 35 0 movl 16(%ebp), %eax movl (%eax), %eax movl %eax, %edx subl $8, %esp leal -28(%ebp), %eax pushl %eax pushl %edx call hex_to_ascii addl $16, %esp .loc 1 36 0 subl $12, %esp pushl $.LC0 call kprint addl $16, %esp .loc 1 37 0 subl $12, %esp leal -28(%ebp), %eax pushl %eax call kprint addl $16, %esp .loc 1 38 0 subl $12, %esp pushl $.LC1 call kprint addl $16, %esp .loc 1 40 0 movl free_mem_addr, %eax movl %eax, -12(%ebp) .loc 1 41 0 movl free_mem_addr, %edx movl 8(%ebp), %eax addl %edx, %eax movl %eax, free_mem_addr .loc 1 42 0 movl -12(%ebp), %eax .loc 1 43 0 leave .cfi_restore 5 .cfi_def_cfa 4, 4 ret .cfi_endproc .LFE2: .size kmalloc, .-kmalloc .Letext0: .file 2 "./libc/../cpu/types.h" .file 3 "./libc/globals.h" .section .debug_info,"",@progbits .Ldebug_info0: .long 0x187 .value 0x4 .long .Ldebug_abbrev0 .byte 0x4 .uleb128 0x1 .long .LASF15 .byte 0xc .long .LASF16 .long .LASF17 .long .Ltext0 .long .Letext0-.Ltext0 .long .Ldebug_line0 .uleb128 0x2 .string "u32" .byte 0x2 .byte 0x6 .long 0x30 .uleb128 0x3 .byte 0x4 .byte 0x7 .long .LASF0 .uleb128 0x4 .byte 0x4 .byte 0x5 .string "int" .uleb128 0x3 .byte 0x2 .byte 0x7 .long .LASF1 .uleb128 0x3 .byte 0x2 .byte 0x5 .long .LASF2 .uleb128 0x2 .string "u8" .byte 0x2 .byte 0xa .long 0x56 .uleb128 0x3 .byte 0x1 .byte 0x8 .long .LASF3 .uleb128 0x3 .byte 0x1 .byte 0x6 .long .LASF4 .uleb128 0x5 .long .LASF8 .byte 0x1 .byte 0x3 .long .LFB0 .long .LFE0-.LFB0 .uleb128 0x1 .byte 0x9c .long 0xb0 .uleb128 0x6 .long .LASF5 .byte 0x1 .byte 0x3 .long 0xb0 .uleb128 0x2 .byte 0x91 .sleb128 0 .uleb128 0x6 .long .LASF6 .byte 0x1 .byte 0x3 .long 0xb0 .uleb128 0x2 .byte 0x91 .sleb128 4 .uleb128 0x6 .long .LASF7 .byte 0x1 .byte 0x3 .long 0x37 .uleb128 0x2 .byte 0x91 .sleb128 8 .uleb128 0x7 .string "i" .byte 0x1 .byte 0x4 .long 0x37 .uleb128 0x2 .byte 0x91 .sleb128 -12 .byte 0 .uleb128 0x8 .byte 0x4 .long 0x4c .uleb128 0x5 .long .LASF9 .byte 0x1 .byte 0xa .long .LFB1 .long .LFE1-.LFB1 .uleb128 0x1 .byte 0x9c .long 0x104 .uleb128 0x6 .long .LASF6 .byte 0x1 .byte 0xa .long 0xb0 .uleb128 0x2 .byte 0x91 .sleb128 0 .uleb128 0x9 .string "val" .byte 0x1 .byte 0xa .long 0x4c .uleb128 0x2 .byte 0x91 .sleb128 -28 .uleb128 0x9 .string "len" .byte 0x1 .byte 0xa .long 0x25 .uleb128 0x2 .byte 0x91 .sleb128 8 .uleb128 0xa .long .LASF10 .byte 0x1 .byte 0xb .long 0xb0 .uleb128 0x2 .byte 0x91 .sleb128 -12 .byte 0 .uleb128 0xb .long .LASF18 .byte 0x1 .byte 0x12 .long 0x25 .long .LFB2 .long .LFE2-.LFB2 .uleb128 0x1 .byte 0x9c .long 0x162 .uleb128 0x6 .long .LASF11 .byte 0x1 .byte 0x12 .long 0x25 .uleb128 0x2 .byte 0x91 .sleb128 0 .uleb128 0x6 .long .LASF12 .byte 0x1 .byte 0x12 .long 0x37 .uleb128 0x2 .byte 0x91 .sleb128 4 .uleb128 0x6 .long .LASF13 .byte 0x1 .byte 0x12 .long 0x162 .uleb128 0x2 .byte 0x91 .sleb128 8 .uleb128 0x7 .string "c" .byte 0x1 .byte 0x1a .long 0x168 .uleb128 0x2 .byte 0x91 .sleb128 -36 .uleb128 0x7 .string "ret" .byte 0x1 .byte 0x28 .long 0x25 .uleb128 0x2 .byte 0x91 .sleb128 -20 .byte 0 .uleb128 0x8 .byte 0x4 .long 0x25 .uleb128 0xc .long 0x5d .long 0x178 .uleb128 0xd .long 0x178 .byte 0xf .byte 0 .uleb128 0x3 .byte 0x4 .byte 0x7 .long .LASF14 .uleb128 0xe .long .LASF19 .byte 0x3 .byte 0x5 .long 0x25 .byte 0 .section .debug_abbrev,"",@progbits .Ldebug_abbrev0: .uleb128 0x1 .uleb128 0x11 .byte 0x1 .uleb128 0x25 .uleb128 0xe .uleb128 0x13 .uleb128 0xb .uleb128 0x3 .uleb128 0xe .uleb128 0x1b .uleb128 0xe .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x6 .uleb128 0x10 .uleb128 0x17 .byte 0 .byte 0 .uleb128 0x2 .uleb128 0x16 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x3 .uleb128 0x24 .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0xe .byte 0 .byte 0 .uleb128 0x4 .uleb128 0x24 .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x3e .uleb128 0xb .uleb128 0x3 .uleb128 0x8 .byte 0 .byte 0 .uleb128 0x5 .uleb128 0x2e .byte 0x1 .uleb128 0x3f .uleb128 0x19 .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x27 .uleb128 0x19 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x6 .uleb128 0x40 .uleb128 0x18 .uleb128 0x2117 .uleb128 0x19 .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x6 .uleb128 0x5 .byte 0 .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0x18 .byte 0 .byte 0 .uleb128 0x7 .uleb128 0x34 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0x18 .byte 0 .byte 0 .uleb128 0x8 .uleb128 0xf .byte 0 .uleb128 0xb .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0x9 .uleb128 0x5 .byte 0 .uleb128 0x3 .uleb128 0x8 .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0x18 .byte 0 .byte 0 .uleb128 0xa .uleb128 0x34 .byte 0 .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x2 .uleb128 0x18 .byte 0 .byte 0 .uleb128 0xb .uleb128 0x2e .byte 0x1 .uleb128 0x3f .uleb128 0x19 .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x27 .uleb128 0x19 .uleb128 0x49 .uleb128 0x13 .uleb128 0x11 .uleb128 0x1 .uleb128 0x12 .uleb128 0x6 .uleb128 0x40 .uleb128 0x18 .uleb128 0x2116 .uleb128 0x19 .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0xc .uleb128 0x1 .byte 0x1 .uleb128 0x49 .uleb128 0x13 .uleb128 0x1 .uleb128 0x13 .byte 0 .byte 0 .uleb128 0xd .uleb128 0x21 .byte 0 .uleb128 0x49 .uleb128 0x13 .uleb128 0x2f .uleb128 0xb .byte 0 .byte 0 .uleb128 0xe .uleb128 0x34 .byte 0 .uleb128 0x3 .uleb128 0xe .uleb128 0x3a .uleb128 0xb .uleb128 0x3b .uleb128 0xb .uleb128 0x49 .uleb128 0x13 .uleb128 0x3f .uleb128 0x19 .uleb128 0x3c .uleb128 0x19 .byte 0 .byte 0 .byte 0 .section .debug_aranges,"",@progbits .long 0x1c .value 0x2 .long .Ldebug_info0 .byte 0x4 .byte 0 .value 0 .value 0 .long .Ltext0 .long .Letext0-.Ltext0 .long 0 .long 0 .section .debug_line,"",@progbits .Ldebug_line0: .section .debug_str,"MS",@progbits,1 .LASF7: .string "nbytes" .LASF16: .string "./libc/mem.c" .LASF0: .string "unsigned int" .LASF6: .string "dest" .LASF3: .string "unsigned char" .LASF10: .string "temp" .LASF17: .string "/home/os/OS_Project/Part4/10_scheduler" .LASF19: .string "free_mem_addr" .LASF4: .string "char" .LASF8: .string "memory_copy" .LASF12: .string "align" .LASF18: .string "kmalloc" .LASF13: .string "phys_addr" .LASF5: .string "source" .LASF15: .string "GNU C11 5.4.0 20160609 -m32 -mtune=generic -march=i686 -g -fno-pie -ffreestanding -fno-builtin -fno-stack-protector" .LASF1: .string "short unsigned int" .LASF11: .string "size" .LASF9: .string "memory_set" .LASF2: .string "short int" .LASF14: .string "sizetype" .ident "GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609" .section .note.GNU-stack,"",@progbits