diff options
author | msmith <msmith@FreeBSD.org> | 1998-09-14 18:27:06 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1998-09-14 18:27:06 +0000 |
commit | 97d5b830761c0a62490a16c2f4942930afcbba94 (patch) | |
tree | 9b227328959ed217910f704d659822fa67002976 /sys/boot/common/load_aout.c | |
parent | 34e8f6424cbf5128e7dc3149486965dd4e17c6fe (diff) | |
download | FreeBSD-src-97d5b830761c0a62490a16c2f4942930afcbba94.zip FreeBSD-src-97d5b830761c0a62490a16c2f4942930afcbba94.tar.gz |
Resynch with working sources before BTX integration.
- Use format-independant module allocator.
- Conditionalise ISA PnP support.
- Simplify PnP enumerator interface.
- Improve module/object searching.
- Add missing depend/install targets in BTX makefiles.
- Pass the kernel environment and module data in extended bootinfo fields.
- Add a pointer to the end of the kernel + modules in bootinfo.
- Fix parsing of old-style kernel arguments.
Diffstat (limited to 'sys/boot/common/load_aout.c')
-rw-r--r-- | sys/boot/common/load_aout.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/boot/common/load_aout.c b/sys/boot/common/load_aout.c index 5c59372..3ecba66 100644 --- a/sys/boot/common/load_aout.c +++ b/sys/boot/common/load_aout.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: load_aout.c,v 1.1 1998/08/31 21:10:42 msmith Exp $ + * $Id: load_aout.c,v 1.2 1998/09/03 02:10:07 msmith Exp $ */ #include <sys/param.h> @@ -126,11 +126,11 @@ aout_loadmodule(char *filename, vm_offset_t dest, struct loaded_module **result) /* * Ok, we think we should handle this. */ - mp = malloc(sizeof(struct loaded_module)); - mp->m_name = kernel ? strdup(filename) : NULL; /* XXX should we prune the name? */ + mp = mod_allocmodule(); + if (kernel) + mp->m_name = strdup(filename); /* XXX should we prune the name? */ mp->m_type = strdup(kernel ? aout_kerneltype : aout_moduletype); - mp->m_args = NULL; /* filled in by parent */ - mp->m_metadata = NULL; + /* Page-align the load address */ addr = dest; pad = (u_int)addr & PAGE_MASK; |