Skip to content

memmgr_heap_page_allocn() return non-present page #420

@msdx321

Description

@msdx321

Code

blk *ram_backend;

ram_backend = (blk *)memmgr_heap_page_allocn(4096); // return 0x546000
memcpy(&ram_backend[offset], smem_table[i].__blockdev_s_smem_pool,
			       length * BLOCKDEV_RAMDISK_BSIZE); // at 0x404c7e

Console Output

(CPU0:) registers:
(CPU0:) General registers-> EAX: 546000, EBX: 0, ECX: 400, EDX: 1000
(CPU0:) Segment registers-> CS: 1b, DS: 23, ES: 23, FS: 23, GS: 33, SS: 23
(CPU0:) Index registers-> ESI: 455000, EDI: 546000, EIP: 404c7e, ESP: 41afa8, EBP: 41afcc
(CPU0:) Indicator-> EFLAGS: 3206
(CPU0:) (Exception Error Code-> ORIG_AX: 6)
(0) FAULT: Page Fault in thd 8 (not-present write-fault user-mode  ) @ 0x546000, ip 0x404c7e

Link to the function

memmgr_heap_page_allocn(unsigned long num_pages)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions