发明名称 METHOD OF OBTAINING A BUFFER OF CONTIGUOUS MEMORY AND BUILDING A PAGE TABLE
摘要 PURPOSE: A method of obtaining a buffer of contiguous memory and building a page table are provided to accesses a graphics buffer (GB) wherein the GB physical pages can be contiguous or discontiguous by a peripheral graphics device (PGD) in a computer system. CONSTITUTION: A request is received to allocate memory for a GB of a predetermined size and handle. The number of pages within the size parameter is determined based on the page size used by the computer system and the buffer size needed. A first memory block is allocated for storing the GB and locked to prevent swapping. A starting virtual address of a CPU page table (CPU/PT) is accessed and mapped to a starting logical address to allow traversal of the CPU/PT by a user application. A second memory block is allocated for building a graphics device page table (GDPT) that can be accessed by a PGD. The logical address of each GB page is sequentially accessed and the corresponding physical address of each GB page is determined from the CPU/PT. The logical and physical addresses of each GB page are stored into the GDPT. If all physical pages of the GB are contiguous, the logical and physical addresses of the GB are stored into a database indexed by a user handle. Otherwise, the starting address of the GDPT is stored into the database indexed by a user handle. Provided that all of the GB physical pages are contiguous, the PGD accesses the GB by its starting physical address. Otherwise, the PGD uses the GDPT to access the discontiguous physical pages of the GB.
申请公布号 KR20000048739(A) 申请公布日期 2000.07.25
申请号 KR19997002721 申请日期 1999.03.29
申请人 CIRRUS LOGIC, INC. 发明人 DEVIC, GORAN
分类号 G06F3/153;G06F12/00;G06F12/08;G06F12/10;G06T1/60;G09G5/00;(IPC1-7):G06F12/10 主分类号 G06F3/153
代理机构 代理人
主权项
地址