Deleted Added
full compact
libefi.c (107723) libefi.c (107733)
1/*-
2 * Copyright (c) 2000 Doug Rabson
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

--- 12 unchanged lines hidden (view full) ---

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#ifndef lint
28static const char rcsid[] =
1/*-
2 * Copyright (c) 2000 Doug Rabson
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

--- 12 unchanged lines hidden (view full) ---

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#ifndef lint
28static const char rcsid[] =
29 "$FreeBSD: head/sys/boot/efi/libefi/libefi.c 107723 2002-12-10 06:22:25Z marcel $";
29 "$FreeBSD: head/sys/boot/efi/libefi/libefi.c 107733 2002-12-10 20:11:20Z marcel $";
30#endif /* not lint */
31
32#include <efi.h>
33#include <efilib.h>
34#include <stand.h>
35
36EFI_HANDLE IH;
37EFI_SYSTEM_TABLE *ST;

--- 16 unchanged lines hidden (view full) ---

54arg_skipword(CHAR16 *argp)
55{
56
57 while (*argp && *argp != ' ' && *argp != '\t')
58 argp++;
59 return (argp);
60}
61
30#endif /* not lint */
31
32#include <efi.h>
33#include <efilib.h>
34#include <stand.h>
35
36EFI_HANDLE IH;
37EFI_SYSTEM_TABLE *ST;

--- 16 unchanged lines hidden (view full) ---

54arg_skipword(CHAR16 *argp)
55{
56
57 while (*argp && *argp != ' ' && *argp != '\t')
58 argp++;
59 return (argp);
60}
61
62void *
63efi_get_table(EFI_GUID *tbl)
64{
65 EFI_GUID *id;
66 int i;
67
68 for (i = 0; i < ST->NumberOfTableEntries; i++) {
69 id = &ST->ConfigurationTable[i].VendorGuid;
70 if (!memcmp(id, tbl, sizeof(EFI_GUID)))
71 return (ST->ConfigurationTable[i].VendorTable);
72 }
73 return (NULL);
74}
75
62void exit(EFI_STATUS exit_code)
63{
64
65 BS->FreePages(heap, EFI_SIZE_TO_PAGES(heapsize));
66 BS->Exit(IH, exit_code, 0, NULL);
67}
68
69void

--- 107 unchanged lines hidden ---
76void exit(EFI_STATUS exit_code)
77{
78
79 BS->FreePages(heap, EFI_SIZE_TO_PAGES(heapsize));
80 BS->Exit(IH, exit_code, 0, NULL);
81}
82
83void

--- 107 unchanged lines hidden ---