metadata.c (209920) | metadata.c (263005) |
---|---|
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 --- 13 unchanged lines hidden (view full) --- 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 * from: FreeBSD: src/sys/boot/sparc64/loader/metadata.c,v 1.6 27 */ 28 29#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 --- 13 unchanged lines hidden (view full) --- 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 * from: FreeBSD: src/sys/boot/sparc64/loader/metadata.c,v 1.6 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/boot/powerpc/ofw/metadata.c 209920 2010-07-12 00:49:22Z nwhitehorn $"); | 30__FBSDID("$FreeBSD: head/sys/boot/powerpc/ofw/metadata.c 263005 2014-03-11 10:13:06Z royger $"); |
31 32#include <stand.h> 33#include <sys/param.h> 34#include <sys/reboot.h> 35#include <sys/linker.h> | 31 32#include <stand.h> 33#include <sys/param.h> 34#include <sys/reboot.h> 35#include <sys/linker.h> |
36#include <sys/boot.h> |
|
36 37#include <machine/metadata.h> 38 39#include "bootstrap.h" 40#include "libofw.h" 41 | 37 38#include <machine/metadata.h> 39 40#include "bootstrap.h" 41#include "libofw.h" 42 |
42/* 43 * Return a 'boothowto' value corresponding to the kernel arguments in 44 * (kargs) and any relevant environment variables. 45 */ 46static struct 47{ 48 const char *ev; 49 int mask; 50} howto_names[] = { 51 {"boot_askname", RB_ASKNAME}, 52 {"boot_cdrom", RB_CDROM}, 53 {"boot_ddb", RB_KDB}, 54 {"boot_dfltroot", RB_DFLTROOT}, 55 {"boot_gdb", RB_GDB}, 56 {"boot_multicons", RB_MULTIPLE}, 57 {"boot_mute", RB_MUTE}, 58 {"boot_pause", RB_PAUSE}, 59 {"boot_serial", RB_SERIAL}, 60 {"boot_single", RB_SINGLE}, 61 {"boot_verbose", RB_VERBOSE}, 62 {NULL, 0} 63}; 64 | |
65int 66md_getboothowto(char *kargs) 67{ 68 char *cp; 69 int howto; 70 int active; 71 int i; 72 --- 284 unchanged lines hidden --- | 43int 44md_getboothowto(char *kargs) 45{ 46 char *cp; 47 int howto; 48 int active; 49 int i; 50 --- 284 unchanged lines hidden --- |