⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.dmareservedarea

📁 神龙卡开发原代码
💻 DMARESERVEDAREA
字号:
Starting with release v1_6_93_16_SONY, RPK allows the user tocompile the kernel module with$ export REALMAGICHWL_FEATURES="-I... ... ... -DWITH_DMA_RESERVED_AREA=1" $ make allThis version does not use pci_alloc/free_consistent() to allocateDMA buffers but a static allocation strategy, making allocation success100% certain even on low-memory machines, provided some physical topram has been reserved at kernel startup.In this variation, realmagichwl_kernelland.o now has two mandatoryparameters at insmod:# insmod realmagichwl_kernelland.o dmareservedarea_physicaladdress=0x...dmareservedarea_size=...I assume you are able to compute the physical address of the first byte thatwill not be used by Linux.For instance, if hac/hvc has a physical memory of 128MB, kernel usable addresses are [0x0000 0000,0x0800 0000[After restriction:          [0x0000 0000,0x07f0 0000[ is for Linux                        and [0x07f0 0000,0x0800 0000[ is for Sigma driverby telling:insmod realmagichwl_kernelland.o dmareservedarea_physicaladdress=0x07f00000 dmareservedarea_size=1048576Real-life situation is not so easy if your BIOS or NVRAM uses somehigh address in physical RAM. You have to inspect carefully this issuewith your montavista-tiger team.Hopefully the ioremap() call will be rejected if memory areas aboveoverlap or overflow the actual memory.Note. There is no way to restrict the quantity of RAM used by a Linuxkernel once the startup has begun, since it will naturally expand tothe complete RAM for kernel code, data, buffers, and file cache.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -