Deleted Added
full compact
elf_freebsd.c (332150) elf_freebsd.c (332154)
1/*-
2 * Copyright (c) 2001 Benno Rice <benno@FreeBSD.org>
3 * Copyright (c) 2007 Semihalf, Rafal Jaworowski <raj@semihalf.com>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 Benno Rice <benno@FreeBSD.org>
3 * Copyright (c) 2007 Semihalf, Rafal Jaworowski <raj@semihalf.com>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: stable/11/stand/uboot/lib/elf_freebsd.c 332150 2018-04-06 20:24:50Z kevans $");
29__FBSDID("$FreeBSD: stable/11/stand/uboot/lib/elf_freebsd.c 332154 2018-04-06 21:37:25Z kevans $");
30
31#include <sys/param.h>
32#include <sys/linker.h>
33
34#ifdef __mips__
35#include <sys/proc.h>
36#include <machine/frame.h>
37#endif

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

42#include <stand.h>
43
44#include "bootstrap.h"
45#include "libuboot.h"
46
47extern vm_offset_t md_load(char *, vm_offset_t *, vm_offset_t *);
48
49int
30
31#include <sys/param.h>
32#include <sys/linker.h>
33
34#ifdef __mips__
35#include <sys/proc.h>
36#include <machine/frame.h>
37#endif

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

42#include <stand.h>
43
44#include "bootstrap.h"
45#include "libuboot.h"
46
47extern vm_offset_t md_load(char *, vm_offset_t *, vm_offset_t *);
48
49int
50__elfN(uboot_load)(char *filename, u_int64_t dest,
50__elfN(uboot_load)(char *filename, uint64_t dest,
51 struct preloaded_file **result)
52{
53 int r;
54
55 r = __elfN(loadfile)(filename, dest, result);
56 if (r != 0)
57 return (r);
58

--- 42 unchanged lines hidden ---
51 struct preloaded_file **result)
52{
53 int r;
54
55 r = __elfN(loadfile)(filename, dest, result);
56 if (r != 0)
57 return (r);
58

--- 42 unchanged lines hidden ---