main.c (302408) | main.c (312318) |
---|---|
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: stable/11/sys/boot/pc98/loader/main.c 298230 2016-04-18 23:09:22Z allanjude $"); | 28__FBSDID("$FreeBSD: stable/11/sys/boot/pc98/loader/main.c 312318 2017-01-17 01:29:03Z emaste $"); |
29 30/* 31 * MD bootstrap main() and assorted miscellaneous 32 * commands. 33 */ 34 35#include <stand.h> 36#include <stddef.h> --- 24 unchanged lines hidden (view full) --- 61struct arch_switch archsw; /* MI/MD interface boundary */ 62 63static void extract_currdev(void); 64static int isa_inb(int port); 65static void isa_outb(int port, int value); 66void exit(int code); 67 68/* from vers.c */ | 29 30/* 31 * MD bootstrap main() and assorted miscellaneous 32 * commands. 33 */ 34 35#include <stand.h> 36#include <stddef.h> --- 24 unchanged lines hidden (view full) --- 61struct arch_switch archsw; /* MI/MD interface boundary */ 62 63static void extract_currdev(void); 64static int isa_inb(int port); 65static void isa_outb(int port, int value); 66void exit(int code); 67 68/* from vers.c */ |
69extern char bootprog_name[], bootprog_rev[], bootprog_date[], bootprog_maker[]; | 69extern char bootprog_info[]; |
70 71/* XXX debugging */ 72extern char end[]; 73 74static void *heap_top; 75static void *heap_bottom; 76 77static uint64_t --- 103 unchanged lines hidden (view full) --- 181 if (devsw[i]->dv_init != NULL) 182 (devsw[i]->dv_init)(); 183 printf("BIOS %dkB/%dkB available memory\n", bios_basemem / 1024, bios_extmem / 1024); 184 if (initial_bootinfo != NULL) { 185 initial_bootinfo->bi_basemem = bios_basemem / 1024; 186 initial_bootinfo->bi_extmem = bios_extmem / 1024; 187 } 188 | 70 71/* XXX debugging */ 72extern char end[]; 73 74static void *heap_top; 75static void *heap_bottom; 76 77static uint64_t --- 103 unchanged lines hidden (view full) --- 181 if (devsw[i]->dv_init != NULL) 182 (devsw[i]->dv_init)(); 183 printf("BIOS %dkB/%dkB available memory\n", bios_basemem / 1024, bios_extmem / 1024); 184 if (initial_bootinfo != NULL) { 185 initial_bootinfo->bi_basemem = bios_basemem / 1024; 186 initial_bootinfo->bi_extmem = bios_extmem / 1024; 187 } 188 |
189 printf("\n"); 190 printf("%s, Revision %s\n", bootprog_name, bootprog_rev); 191 printf("(%s, %s)\n", bootprog_maker, bootprog_date); | 189 printf("\n%s", bootprog_info); |
192 193 extract_currdev(); /* set $currdev and $loaddev */ 194 setenv("LINES", "24", 1); /* optional */ 195 196 interact(NULL); /* doesn't return */ 197 198 /* if we ever get here, it is an error */ 199 return (1); --- 125 unchanged lines hidden --- | 190 191 extract_currdev(); /* set $currdev and $loaddev */ 192 setenv("LINES", "24", 1); /* optional */ 193 194 interact(NULL); /* doesn't return */ 195 196 /* if we ever get here, it is an error */ 197 return (1); --- 125 unchanged lines hidden --- |