Deleted Added
full compact
openfirm.c (329175) openfirm.c (332154)
1/* $NetBSD: Locore.c,v 1.7 2000/08/20 07:04:59 tsubai Exp $ */
2
3/*-
4 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
5 * Copyright (C) 1995, 1996 TooLs GmbH.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

51 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
52 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
53 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
54 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
55 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
56 */
57
58#include <sys/cdefs.h>
1/* $NetBSD: Locore.c,v 1.7 2000/08/20 07:04:59 tsubai Exp $ */
2
3/*-
4 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
5 * Copyright (C) 1995, 1996 TooLs GmbH.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

51 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
52 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
53 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
54 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
55 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
56 */
57
58#include <sys/cdefs.h>
59__FBSDID("$FreeBSD: stable/11/stand/ofw/libofw/openfirm.c 329175 2018-02-12 17:44:35Z kevans $");
59__FBSDID("$FreeBSD: stable/11/stand/ofw/libofw/openfirm.c 332154 2018-04-06 21:37:25Z kevans $");
60
61#include <machine/stdarg.h>
62
63#include <stand.h>
64
65#include "openfirm.h"
66
67int (*openfirmware)(void *);

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

593 args.len = len;
594 if (openfirmware(&args) == -1)
595 return (-1);
596 return (args.actual);
597}
598
599/* Seek to a position. */
600int
60
61#include <machine/stdarg.h>
62
63#include <stand.h>
64
65#include "openfirm.h"
66
67int (*openfirmware)(void *);

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

593 args.len = len;
594 if (openfirmware(&args) == -1)
595 return (-1);
596 return (args.actual);
597}
598
599/* Seek to a position. */
600int
601OF_seek(ihandle_t instance, u_int64_t pos)
601OF_seek(ihandle_t instance, uint64_t pos)
602{
603 static struct {
604 cell_t name;
605 cell_t nargs;
606 cell_t nreturns;
607 cell_t instance;
608 cell_t poshi;
609 cell_t poslo;

--- 223 unchanged lines hidden ---
602{
603 static struct {
604 cell_t name;
605 cell_t nargs;
606 cell_t nreturns;
607 cell_t instance;
608 cell_t poshi;
609 cell_t poslo;

--- 223 unchanged lines hidden ---