摘要 |
A method and an apparatus for allocating a memory space with a write-combine attribute. The method comprises: during resource scanning of devices, determining the type and the size of the resource required by each device(501); after completion of resource scanning of all devices, determining the total capacity of write-combine memory spaces required by all first devices, and determining an initial address used during allocation of the write-combine memory space to the first devices (502); allocating a memory space to all first devices (503); and allocating a sub-memory space to each first device from the memory space (504). The method can more reliably allocate the memory space with the write-combine attribute to the device, and the allocation manner is simple. |