Print this page
fakebop: use a memlist to keep track of physical memory
@@ -9,10 +9,11 @@
* http://www.illumos.org/license/CDDL.
*/
/*
* Copyright (c) 2013 Joyent, Inc. All rights reserved.
+ * Copyright (c) 2015 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
*/
#ifndef _SYS_BOOTCONF_H
#define _SYS_BOOTCONF_H
@@ -35,14 +36,19 @@
* and sun because they're used by the common kernel.
*/
#define BO_NO_ALIGN 0x00001000
#define BO_ALIGN_DONTCARE -1
+struct bsys_mem {
+ struct memlist physinstalled;
+};
+
#define BO_VERSION 1 /* bootops interface revision */
typedef struct bootops {
uint_t bsys_version;
+ struct bsys_mem boot_mem;
caddr_t (*bsys_alloc)(struct bootops *, caddr_t, size_t, int);
void (*bsys_free)(struct bootops *, caddr_t, size_t);
int (*bsys_getproplen)(struct bootops *, const char *);
int (*bsys_getprop)(struct bootops *, const char *, void *);
void (*bsys_printf)(struct bootops *, const char *, ...);