Date: Sun, 3 Apr 2011 22:31:51 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/boot/common bootstrap.h load_elf.c load_elf_obj.c module.c src/sys/boot/pc98/loader main.c Message-ID: <201104032232.p33MWCdB086439@repoman.freebsd.org>
index | next in thread | raw e-mail
marcel 2011-04-03 22:31:51 UTC
FreeBSD src repository
Modified files:
sys/boot/common bootstrap.h load_elf.c load_elf_obj.c
module.c
sys/boot/pc98/loader main.c
Log:
SVN rev 220311 on 2011-04-03 22:31:51Z by marcel
Add 2 new archsw interfaces:
1. arch_loadaddr - used by platform code to adjust the address at which
the object gets loaded. Implement PC98 using this new interface instead
of using conditional compilation. For ELF objects the ELF header is
passed as the data pointer. For raw files it's the filename. Note that
ELF objects are first considered as raw files.
2. arch_loadseg - used by platform code to keep track of actual segments,
so that (instruction) caches can be flushed or translations can be
created. Both the ELF header as well as the program header are passed
to allow platform code to treat the kernel proper differently from any
additional modules and to have all the relevant details of the loaded
segment (e.g. protection).
Revision Changes Path
1.49 +18 -0 src/sys/boot/common/bootstrap.h
1.42 +10 -9 src/sys/boot/common/load_elf.c
1.4 +4 -2 src/sys/boot/common/load_elf_obj.c
1.31 +6 -19 src/sys/boot/common/module.c
1.31 +17 -0 src/sys/boot/pc98/loader/main.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104032232.p33MWCdB086439>
