Plan 9 from Bell Labs’s /usr/web/sources/contrib/quanstro/root/sys/src/boot/pc-e820/multiboot.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#include "u.h"
#include "lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "io.h"

MMap mmap[20];
int nmmap;

Mbi multibootheader;

void
mkmultiboot(void)
{
	if(nmmap != 0){
		multibootheader.cmdline = PADDR(BOOTLINE);
		multibootheader.flags |= Fcmdline;
		multibootheader.mmapaddr = PADDR(mmap);
		multibootheader.mmaplength = nmmap*sizeof(MMap);
		multibootheader.flags |= Fmmap;
		if(debug)
			print("&multibootheader %#p\n", &multibootheader);
	}
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.