在linux中通过/proc/ioport
和/proc/iomem
可以获取系统的IO端口和内存的布局信息,在crash中需要使用dev命令来获取。
crash> dev -i
RESOURCE RANGE NAME
ffffffff822668c0 0000-ffff PCI IO
ffff88deafffd5a0 0000-0cf7 PCI Bus 0000:00
ffffffff82240700 0000-001f dma1
ffffffff82240760 0020-0021 pic1
ffffffff822407c0 0040-0043 timer0
ffffffff82240820 0050-0053 timer1
ffffffff82240880 0060-0060 keyboard
ffff893eae909000 0061-0061 PNP0800:00
ffffffff822408e0 0064-0064 keyboard
ffff88deb1331de0 0070-0071 rtc0
ffffffff82240940 0080-008f dma page reg
ffffffff822409a0 00a0-00a1 pic2
ffff88deaa8b7cc0 00b2-00b2 APEI ERST
ffffffff82240a00 00c0-00df dma2
ffff893eafaa1c00 00e4-00e4 IPMI Address 1
...
RESOURCE RANGE NAME
ffffffff82266860 00000000-3fffffffffff PCI mem
ffff89403fd8f940 00000000-00000fff Reserved
ffff89403fd8f9a0 00001000-0006dfff System RAM
ffff89403fd8fa00 0006e000-0006ffff Reserved
ffff89403fd8fa60 00070000-0009ffff System RAM
ffff89403fd8fac0 000a0000-000fffff Reserved
ffff88deafffd520 000a0000-000bffff PCI Bus 0000:00
ffff88deafffd9a0 000c4000-000c7fff PCI Bus 0000:00
ffffffff82242300 000f0000-000fffff System ROM
ffff89403fd8fb20 00100000-60efefff System RAM
ffffffff82240b20 03600000-042013f0 Kernel code
ffffffff82240b80 042013f1-05028fff Kernel data
ffffffff82240ac0 059fd000-05ffffff Kernel bss
ffffffff828a4760 13000000-2f1fffff Crash kernel
...
标签:00,0000,System,PCI,IO,memory,crash
From: https://www.cnblogs.com/pengdonglin137/p/17725160.html