u@home:~$

  • rootfs_init_fs_context

    在执行到alloc_fs_context() /** * alloc_fs_context - Create a filesystem context. * @fs_type: The filesystem type. * @reference: The dentry from which this one derives (or NULL) * @sb_flags: Filesystem/superblock flags (SB_*) * @sb_flags_mask: Applicable members of @sb_flags * @purpose: The purpose that this configuration shall be used for. * * Open...

  • Loongarch32 Linux phys virt address

    现在是到这了,问题是__request_resource第2个参数地址有问题,0xa2800000。物理内存从dtb里写的就是从0x2800000开始,前面的a是多出来的。 这个第二个参数是memblock_alloc()分配出来的。 for_each_mem_range(i, &start, &end) { struct resource *res; res = memblock_alloc(sizeof(struct resource), SMP_CACHE_BYTES); if (!res) panic("%s: Failed to allocate %zu bytes\n", __func__, sizeof(struct resource)); res->start = start; /* * In memblock, end points to the first byte after the * range while in resourses, end points to the last...

  • Prototype on UP Squared Pro board, all 4 cores, works for x64 Windows 10

    RAM space: u@u-Squared:~/prjs/lib-micro$ ./build/cmps_static core 0 patching addr: 00007dbc - ram: 000001bc jump_target return value: 0x7dbc 7dbc: 11890b8279c8 11890b8279c8 11890b826988 018000c0 7dc0: 11890b826988 000000000000 000000000000 018000c0 7dc4: 100500021861 237d3f000e88 0fff00000000 030000f2 0x3cc8 uop 0x1c0000231027 0x3cc8 uop 0x1c0000630026 0x3cc8 uop 0x108501034d08 seqw 0x18000c0 Patching 3de8 -> 7dc8 7dc8: 000000000000 1c0000231027 0008901f000d...