metadata.c (262694) | metadata.c (263005) |
---|---|
1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 3 * Copyright (C) 2006 Semihalf, Piotr Kruszynski <ppk@semihalf.com> 4 * Copyright (C) 2007-2008 Semihalf, Rafal Jaworowski <raj@semihalf.com> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 3 * Copyright (C) 2006 Semihalf, Piotr Kruszynski <ppk@semihalf.com> 4 * Copyright (C) 2007-2008 Semihalf, Rafal Jaworowski <raj@semihalf.com> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/boot/uboot/common/metadata.c 262694 2014-03-02 17:19:19Z ian $"); | 30__FBSDID("$FreeBSD: head/sys/boot/uboot/common/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/elf.h> 38#include <machine/metadata.h> 39 40#include "api_public.h" 41#include "bootstrap.h" 42#include "glue.h" 43 44#if defined(LOADER_FDT_SUPPORT) 45#include "libuboot.h" 46#endif 47 | 37 38#include <machine/elf.h> 39#include <machine/metadata.h> 40 41#include "api_public.h" 42#include "bootstrap.h" 43#include "glue.h" 44 45#if defined(LOADER_FDT_SUPPORT) 46#include "libuboot.h" 47#endif 48 |
48/* 49 * Return a 'boothowto' value corresponding to the kernel arguments in 50 * (kargs) and any relevant environment variables. 51 */ 52static struct 53{ 54 const char *ev; 55 int mask; 56} howto_names[] = { 57 {"boot_askname", RB_ASKNAME}, 58 {"boot_cdrom", RB_CDROM}, 59 {"boot_ddb", RB_KDB}, 60 {"boot_dfltroot", RB_DFLTROOT}, 61 {"boot_gdb", RB_GDB}, 62 {"boot_multicons", RB_MULTIPLE}, 63 {"boot_mute", RB_MUTE}, 64 {"boot_pause", RB_PAUSE}, 65 {"boot_serial", RB_SERIAL}, 66 {"boot_single", RB_SINGLE}, 67 {"boot_verbose", RB_VERBOSE}, 68 {NULL, 0} 69}; 70 | |
71static int 72md_getboothowto(char *kargs) 73{ 74 char *cp; 75 char *p; 76 int howto; 77 int active; 78 int i; --- 310 unchanged lines hidden --- | 49static int 50md_getboothowto(char *kargs) 51{ 52 char *cp; 53 char *p; 54 int howto; 55 int active; 56 int i; --- 310 unchanged lines hidden --- |