Deleted Added
full compact
libefi.c (294769) libefi.c (298230)
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

--- 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) 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

--- 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: head/sys/boot/efi/libefi/libefi.c 294769 2016-01-26 06:26:56Z imp $");
28__FBSDID("$FreeBSD: head/sys/boot/efi/libefi/libefi.c 298230 2016-04-18 23:09:22Z allanjude $");
29
30#include <efi.h>
31#include <eficonsctl.h>
32#include <efilib.h>
33#include <stand.h>
34
35EFI_HANDLE IH;
36EFI_SYSTEM_TABLE *ST;

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

97 RS = ST->RuntimeServices;
98
99 status = BS->LocateProtocol(&console_control_protocol, NULL,
100 (VOID **)&console_control);
101 if (status == EFI_SUCCESS)
102 (void)console_control->SetMode(console_control,
103 EfiConsoleControlScreenText);
104
29
30#include <efi.h>
31#include <eficonsctl.h>
32#include <efilib.h>
33#include <stand.h>
34
35EFI_HANDLE IH;
36EFI_SYSTEM_TABLE *ST;

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

97 RS = ST->RuntimeServices;
98
99 status = BS->LocateProtocol(&console_control_protocol, NULL,
100 (VOID **)&console_control);
101 if (status == EFI_SUCCESS)
102 (void)console_control->SetMode(console_control,
103 EfiConsoleControlScreenText);
104
105 heapsize = 3 * 1024 * 1024;
105 heapsize = 64 * 1024 * 1024;
106 status = BS->AllocatePages(AllocateAnyPages, EfiLoaderData,
107 EFI_SIZE_TO_PAGES(heapsize), &heap);
108 if (status != EFI_SUCCESS)
109 BS->Exit(IH, status, 0, NULL);
110
111 setheap((void *)(uintptr_t)heap, (void *)(uintptr_t)(heap + heapsize));
112
113 /* Use exit() from here on... */

--- 85 unchanged lines hidden ---
106 status = BS->AllocatePages(AllocateAnyPages, EfiLoaderData,
107 EFI_SIZE_TO_PAGES(heapsize), &heap);
108 if (status != EFI_SUCCESS)
109 BS->Exit(IH, status, 0, NULL);
110
111 setheap((void *)(uintptr_t)heap, (void *)(uintptr_t)(heap + heapsize));
112
113 /* Use exit() from here on... */

--- 85 unchanged lines hidden ---