summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/module.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2013-02-26 01:05:25 +0000
committerattilio <attilio@FreeBSD.org>2013-02-26 01:05:25 +0000
commit756a9b3e47fbf2ace170ae77caa02eed2c059ec1 (patch)
tree68506ced6483bc7d8c7699530ea0c979e53d9ae4 /sys/boot/common/module.c
parent2ad8e10333f151d4744c8dfc21f28ed627d114f5 (diff)
parentcb47f0509be0470c174870a68ed3c1d94eb52ed7 (diff)
downloadFreeBSD-src-756a9b3e47fbf2ace170ae77caa02eed2c059ec1.zip
FreeBSD-src-756a9b3e47fbf2ace170ae77caa02eed2c059ec1.tar.gz
MFC
Diffstat (limited to 'sys/boot/common/module.c')
-rw-r--r--sys/boot/common/module.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c
index 3b74ab7..5808587 100644
--- a/sys/boot/common/module.c
+++ b/sys/boot/common/module.c
@@ -422,42 +422,6 @@ file_loadraw(char *type, char *name)
}
/*
- * Load a chunk of data as if it had been read from a file.
- */
-struct preloaded_file *
-mem_load_raw(char *type, char *name, const void *p, size_t len)
-{
- struct preloaded_file *fp;
-
- /* We can't load first */
- if ((file_findfile(NULL, NULL)) == NULL) {
- command_errmsg = "can't load file before kernel";
- return(NULL);
- }
-
- if (archsw.arch_loadaddr != NULL)
- loadaddr = archsw.arch_loadaddr(LOAD_RAW, name, loadaddr);
- archsw.arch_copyin(p, loadaddr, len);
-
- /* Looks OK so far; create & populate control structure */
- fp = file_alloc();
- fp->f_name = strdup(name);
- fp->f_type = strdup(type);
- fp->f_args = NULL;
- fp->f_metadata = NULL;
- fp->f_loader = -1;
- fp->f_addr = loadaddr;
- fp->f_size = len;
-
- /* recognise space consumption */
- loadaddr += len;
-
- /* Add to the list of loaded files */
- file_insert_tail(fp);
- return fp;
-}
-
-/*
* Load the module (name), pass it (argc),(argv), add container file
* to the list of loaded files.
* If module is already loaded just assign new argc/argv.
OpenPOWER on IntegriCloud