Функцией kmalloc выделяю блок памяти.
Фкнкция virt_to_phys возвращает физический адрес блока памяти.
В системе 16 ГБ памяти - адресное пространство 0x00000000_00000000 - 0x00000003_FFFFFFFF.
Иногда функция virt_to_phys возвращает значение 0х00000004_0c012000 (0x00000004_09911000 и др).
Как такое получилось?
Из "Linux Device Drivers":
Цитата
Physical addresses
The addresses used between the processor and the system’s memory. Physical
addresses are 32- or 64-bit quantities; even 32-bit systems can use larger physical addresses in some situations.
The addresses used between the processor and the system’s memory. Physical
addresses are 32- or 64-bit quantities; even 32-bit systems can use larger physical addresses in some situations.
Из "Understanding the Linux Kernel":
Цитата
Physical address
Used to address memory cells in memory chips. They correspond to the electrical signals sent along the address pins of the microprocessor to the memory bus. Physical addresses are represented as 32-bit or 36-bit unsigned integers.
Used to address memory cells in memory chips. They correspond to the electrical signals sent along the address pins of the microprocessor to the memory bus. Physical addresses are represented as 32-bit or 36-bit unsigned integers.
Как получается, что физический адрес блока памяти вышел за пределы диапазона памяти системы?