Deleted Added
full compact
ppc64_elf_freebsd.c (332152) ppc64_elf_freebsd.c (332154)
1/*-
2 * Copyright (c) 2001 Benno Rice <benno@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

--- 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) 2001 Benno Rice <benno@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

--- 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: stable/11/stand/powerpc/ofw/ppc64_elf_freebsd.c 332152 2018-04-06 20:27:55Z kevans $");
28__FBSDID("$FreeBSD: stable/11/stand/powerpc/ofw/ppc64_elf_freebsd.c 332154 2018-04-06 21:37:25Z kevans $");
29
30#define __ELF_WORD_SIZE 64
31
32#include <sys/param.h>
33#include <sys/linker.h>
34
35#include <machine/metadata.h>
36#include <machine/elf.h>

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

41#include "bootstrap.h"
42#include "libofw.h"
43#include "openfirm.h"
44
45extern char end[];
46extern vm_offset_t reloc; /* From <arch>/conf.c */
47
48int
29
30#define __ELF_WORD_SIZE 64
31
32#include <sys/param.h>
33#include <sys/linker.h>
34
35#include <machine/metadata.h>
36#include <machine/elf.h>

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

41#include "bootstrap.h"
42#include "libofw.h"
43#include "openfirm.h"
44
45extern char end[];
46extern vm_offset_t reloc; /* From <arch>/conf.c */
47
48int
49ppc64_ofw_elf_loadfile(char *filename, u_int64_t dest,
49ppc64_ofw_elf_loadfile(char *filename, uint64_t dest,
50 struct preloaded_file **result)
51{
52 int r;
53
54 r = __elfN(loadfile)(filename, dest, result);
55 if (r != 0)
56 return (r);
57

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

--- 53 unchanged lines hidden ---