Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/pc98/libpc98/biosmem.c
Show All 34 Lines | |||||
#include "btxv86.h" | #include "btxv86.h" | ||||
vm_offset_t memtop, memtop_copyin, high_heap_base; | vm_offset_t memtop, memtop_copyin, high_heap_base; | ||||
uint32_t bios_basemem, bios_extmem, high_heap_size; | uint32_t bios_basemem, bios_extmem, high_heap_size; | ||||
/* | /* | ||||
* The minimum amount of memory to reserve in bios_extmem for the heap. | * The minimum amount of memory to reserve in bios_extmem for the heap. | ||||
*/ | */ | ||||
#define HEAP_MIN (3 * 1024 * 1024) | #define HEAP_MIN (64 * 1024 * 1024) | ||||
void | void | ||||
bios_getmem(void) | bios_getmem(void) | ||||
{ | { | ||||
bios_basemem = ((*(u_char *)PTOV(0xA1501) & 0x07) + 1) * 128 * 1024; | bios_basemem = ((*(u_char *)PTOV(0xA1501) & 0x07) + 1) * 128 * 1024; | ||||
bios_extmem = *(u_char *)PTOV(0xA1401) * 128 * 1024 + | bios_extmem = *(u_char *)PTOV(0xA1401) * 128 * 1024 + | ||||
*(u_int16_t *)PTOV(0xA1594) * 1024 * 1024; | *(u_int16_t *)PTOV(0xA1594) * 1024 * 1024; | ||||
Show All 13 Lines |