biosmem.c (292486) | biosmem.c (298230) |
---|---|
1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/boot/i386/libi386/biosmem.c 292486 2015-12-20 02:46:51Z ngie $"); | 28__FBSDID("$FreeBSD: head/sys/boot/i386/libi386/biosmem.c 298230 2016-04-18 23:09:22Z allanjude $"); |
29 30/* 31 * Obtain memory configuration information from the BIOS 32 */ 33#include <stand.h> 34#include <machine/pc/bios.h> 35#include "bootstrap.h" 36#include "libi386.h" --- 14 unchanged lines hidden (view full) --- 51#define B_BASEMEM_12 0x2 52#define B_EXTMEM_E820 0x4 53#define B_EXTMEM_E801 0x8 54#define B_EXTMEM_8800 0x10 55 56/* 57 * The minimum amount of memory to reserve in bios_extmem for the heap. 58 */ | 29 30/* 31 * Obtain memory configuration information from the BIOS 32 */ 33#include <stand.h> 34#include <machine/pc/bios.h> 35#include "bootstrap.h" 36#include "libi386.h" --- 14 unchanged lines hidden (view full) --- 51#define B_BASEMEM_12 0x2 52#define B_EXTMEM_E820 0x4 53#define B_EXTMEM_E801 0x8 54#define B_EXTMEM_8800 0x10 55 56/* 57 * The minimum amount of memory to reserve in bios_extmem for the heap. 58 */ |
59#define HEAP_MIN (3 * 1024 * 1024) | 59#define HEAP_MIN (64 * 1024 * 1024) |
60 61/* 62 * Products in this list need quirks to detect 63 * memory correctly. You need both maker and product as 64 * reported by smbios. 65 */ 66#define BQ_DISTRUST_E820_EXTMEM 0x1 /* e820 might not return useful 67 extended memory */ --- 175 unchanged lines hidden --- | 60 61/* 62 * Products in this list need quirks to detect 63 * memory correctly. You need both maker and product as 64 * reported by smbios. 65 */ 66#define BQ_DISTRUST_E820_EXTMEM 0x1 /* e820 might not return useful 67 extended memory */ --- 175 unchanged lines hidden --- |