diff options
author | iedowse <iedowse@FreeBSD.org> | 2004-08-28 14:57:34 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2004-08-28 14:57:34 +0000 |
commit | 1057ee343cee3ac0157a20aa450988d1e301c5f5 (patch) | |
tree | f9fe9b68204fea3bc9f22c81ede496d28832dd0a /sys/boot/common/bootstrap.h | |
parent | d4a1defb3987ee2058cf2db8fae47ee3f74136cb (diff) | |
download | FreeBSD-src-1057ee343cee3ac0157a20aa450988d1e301c5f5.zip FreeBSD-src-1057ee343cee3ac0157a20aa450988d1e301c5f5.tar.gz |
Add a few helper functions for zeroing kernel space and reading
from specified file offsets. Make use of these in load_elf.c.
Diffstat (limited to 'sys/boot/common/bootstrap.h')
-rw-r--r-- | sys/boot/common/bootstrap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/boot/common/bootstrap.h b/sys/boot/common/bootstrap.h index 6e17be7..21845ce 100644 --- a/sys/boot/common/bootstrap.h +++ b/sys/boot/common/bootstrap.h @@ -76,6 +76,9 @@ char *unargv(int argc, char *argv[]); void hexdump(caddr_t region, size_t len); size_t strlenout(vm_offset_t str); char *strdupout(vm_offset_t str); +void kern_bzero(vm_offset_t dest, size_t len); +int kern_pread(int fd, vm_offset_t dest, size_t len, off_t off); +void *alloc_pread(int fd, off_t off, size_t len); /* bcache.c */ int bcache_init(u_int nblks, size_t bsize); |