-/* $OpenBSD: exec_i386.c,v 1.25 2000/02/18 17:10:10 mickey Exp $ */
+/* $OpenBSD: exec_i386.c,v 1.26 2000/03/05 18:40:59 niklas Exp $ */
/*
* Copyright (c) 1997-1998 Michael Shalayeff
cd.conspeed = com_speed;
addbootarg(BOOTARG_CONSDEV, sizeof(cd), &cd);
+ /* Pass memory map to the kernel */
+ mem_pass();
+
makebootargs(av, &ac);
#ifdef EXEC_DEBUG
-/* $OpenBSD: libsa.h,v 1.29 1999/08/25 00:54:19 mickey Exp $ */
+/* $OpenBSD: libsa.h,v 1.30 2000/03/05 18:40:59 niklas Exp $ */
/*
* Copyright (c) 1996-1999 Michael Shalayeff
void apmcheck __P((void));
void pciprobe __P((void));
void dump_biosmem __P((bios_memmap_t *));
-int mem_delete __P((long, long));
int mem_add __P((long, long));
+int mem_delete __P((long, long));
+void mem_pass __P((void));
void devboot __P((dev_t, char *));
void machdep __P((void));
-/* $OpenBSD: memprobe.c,v 1.33 1999/09/30 06:29:57 downsj Exp $ */
+/* $OpenBSD: memprobe.c,v 1.34 2000/03/05 18:40:59 niklas Exp $ */
/*
* Copyright (c) 1997-1999 Michael Shalayeff
apmcheck();
- /* Register in global var */
- addbootarg(BOOTARG_MEMMAP,
- (pm - bios_memmap + 1) * sizeof(*bios_memmap), bios_memmap);
-
#ifdef DEBUG
printf(")[");
#endif
return 0;
}
+void
+mem_pass()
+{
+ bios_memmap_t *p;
+
+ for (p = bios_memmap; p->type != BIOS_MAP_END; p++)
+ ;
+ addbootarg(BOOTARG_MEMMAP, (p - bios_memmap + 1) * sizeof *bios_memmap,
+ bios_memmap);
+}