- devfs.vp: string.split 传 PATH_BUFFER_SIZE(配合 split 新增容量参数) - fat32_types.vp: lfn_extract 越界钳制(base+i > MAX_LFN 返回 -1) - sheet.vp: gfx.Renderer 实参修正为 (fb, zb, w, h)(原单参导致 w/h=0 渲染空操作) - 同批包含 VKernel 其余既有移植改动与 vpsdk/Apps/Libs 工作区内容
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
import t, c
|
|
|
|
|
|
MEMORY_TYPE_AVAILABLE: uint64 = 7
|
|
MEMORY_TYPE_RESERVED: uint64 = 0
|
|
MEMORY_TYPE_LOADER_CODE: uint64 = 1
|
|
MEMORY_TYPE_LOADER_DATA: uint64 = 2
|
|
MEMORY_TYPE_BOOT_SERVICES_CODE: uint64 = 3
|
|
MEMORY_TYPE_BOOT_SERVICES_DATA: uint64 = 4
|
|
MEMORY_TYPE_RUNTIME_SERVICES_CODE: uint64 = 5
|
|
MEMORY_TYPE_RUNTIME_SERVICES_DATA: uint64 = 6
|
|
MEMORY_TYPE_ACPI_RECLAIMABLE: uint64 = 9
|
|
MEMORY_TYPE_ACPI_NVS: uint64 = 10
|
|
MEMORY_TYPE_BAD_MEMORY: uint64 = 8
|
|
|
|
@c.Attribute(t.attr.packed)
|
|
class memory_map_entry:
|
|
type: t.CUnsignedInt
|
|
_pad: t.CUnsignedInt
|
|
physical_start: t.CUnsignedLong
|
|
virtual_start: t.CUnsignedLong
|
|
num_pages: t.CUnsignedLong
|
|
attribute: t.CUnsignedLong
|
|
|
|
class bootinfo:
|
|
MemmapAddr: t.CUnsignedLong
|
|
MemmapSize: t.CUnsignedLong
|
|
MemmapDescSize: t.CUnsignedLong
|
|
kernel_PhysAddr: t.CUnsignedLong
|
|
framebuffer_addr: t.CUnsignedLong
|
|
framebuffer_size: t.CUnsignedLong
|
|
framebuffer_width: t.CUnsignedLong
|
|
framebuffer_height: t.CUnsignedLong
|
|
framebuffer_pitch: t.CUnsignedLong
|
|
framebuffer_format: t.CUnsignedLong
|
|
system_table: t.CUnsignedLong
|