Hi guys,
In the loader command line, I loaded the kernel as follow
load /boot/kernel/kernel
then lsmod show the following line
In the loader command line, I loaded the kernel as follow
load /boot/kernel/kernel
then lsmod show the following line
which means that kernel is loaded at address 0x200000, but later after the kernel has up, the sysctl debug.dump_modinfo shows a different address as followOK lsmod
0x200000: /boot/kernel/kernel (elf kernel , 0x1f3e2d0)
...
what confused me is MODINFO_ADDR. Its value is 0xffffffff80200000 , which does not match the previous load address 0x200000. Is there any chance that the load address is changed when it is copied ? Or what I've missed ? Many thanks. (BTW I'm running amd64 GENERIC kernel)root@freebsd132:~ # sysctl debug.dump_modinfo
debug.dump_modinfo:
0xffffffff82906168:
type: (0x01) MODINFO_NAME
len: 20
value: /boot/kernel/kernel
0xffffffff82906188:
type: (0x02) MODINFO_TYPE
len: 11
value: elf kernel
0xffffffff829061a0:
type: (0x03) MODINFO_ADDR
len: 8
value: 0xffffffff80200000
...