aboutsummaryrefslogtreecommitdiff
path: root/stand/i386/libi386/bootinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'stand/i386/libi386/bootinfo.c')
-rw-r--r--stand/i386/libi386/bootinfo.c50
1 files changed, 0 insertions, 50 deletions
diff --git a/stand/i386/libi386/bootinfo.c b/stand/i386/libi386/bootinfo.c
index bdf409b00ec0..b81d181a75bd 100644
--- a/stand/i386/libi386/bootinfo.c
+++ b/stand/i386/libi386/bootinfo.c
@@ -24,9 +24,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include <stand.h>
#include <sys/param.h>
#include <sys/reboot.h>
@@ -38,25 +35,6 @@ __FBSDID("$FreeBSD$");
#include "vbe.h"
#include "btxv86.h"
-void
-bi_load_vbe_data(struct preloaded_file *kfp)
-{
- if (!kfp->f_tg_kernel_support) {
- /*
- * Loaded kernel does not have vt/vbe backend,
- * switch console to text mode.
- */
- if (vbe_available())
- bios_set_text_mode(VGA_TEXT_MODE);
- return;
- }
-
- if (vbe_available()) {
- file_addmetadata(kfp, MODINFOMD_VBE_FB,
- sizeof(gfx_state.tg_fb), &gfx_state.tg_fb);
- }
-}
-
int
bi_getboothowto(char *kargs)
{
@@ -103,31 +81,3 @@ bi_setboothowto(int howto)
boot_howto_to_env(howto);
}
-
-/*
- * Copy the environment into the load area starting at (addr).
- * Each variable is formatted as <name>=<value>, with a single nul
- * separating each variable, and a double nul terminating the environment.
- */
-vm_offset_t
-bi_copyenv(vm_offset_t addr)
-{
- struct env_var *ep;
-
- /* traverse the environment */
- for (ep = environ; ep != NULL; ep = ep->ev_next) {
- i386_copyin(ep->ev_name, addr, strlen(ep->ev_name));
- addr += strlen(ep->ev_name);
- i386_copyin("=", addr, 1);
- addr++;
- if (ep->ev_value != NULL) {
- i386_copyin(ep->ev_value, addr, strlen(ep->ev_value));
- addr += strlen(ep->ev_value);
- }
- i386_copyin("", addr, 1);
- addr++;
- }
- i386_copyin("", addr, 1);
- addr++;
- return(addr);
-}