if(checkA20()) printf(" [A20 on]"); else printf(" [A20 off!]");
memprobe(){	static bios_memmap_t bm[32];	/* This is easier */	bios_memmap_t *pm = bm, *im;#ifdef DEBUG	printf("Probing memory: ");#endif	if(!(pm = bios_E820(bm))) {		im = bios_int12(bm);		pm = bios_E801(im);		if (!pm)			pm = bios_8800(im);		if (!pm)			pm = badprobe(im);		if (!pm) {			printf ("No Extended memory detected.");			pm = im;		}	}#ifdef DEBUG	printf("\n");#endif	pm->type = BIOS_MAP_END;	/* Register in global var */	addbootarg(BOOTARG_MEMMAP, (pm - bm + 1) * sizeof(*bm), bm);	memory_map = bm; /* XXX for 'machine mem' command only */	printf("memory:");	/* XXX - Compatibility, remove later */	extmem = cnvmem = 0;	for(im = bm; im->type != BIOS_MAP_END; im++) {		if (im->type == BIOS_MAP_FREE) {			printf(" %luK", (u_long)im->size);			if(im->addr < 0x100000)				cnvmem += im->size;			else				extmem += im->size;		}	}	printf("\n");}