Deleted Added
full compact
openfirm.c (124140) openfirm.c (131783)
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: head/sys/boot/ofw/libofw/openfirm.c 124140 2004-01-04 23:30:47Z obrien $");
59__FBSDID("$FreeBSD: head/sys/boot/ofw/libofw/openfirm.c 131783 2004-07-08 06:09:22Z grehan $");
60
61#include <machine/stdarg.h>
62
63#include <stand.h>
64
65#include "openfirm.h"
66
67int (*openfirmware)(void *);

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

893 0
894 };
895
896 openfirmware(&args);
897 for (;;); /* just in case */
898}
899
900/* Free <size> bytes starting at <virt>, then call <entry> with <arg>. */
60
61#include <machine/stdarg.h>
62
63#include <stand.h>
64
65#include "openfirm.h"
66
67int (*openfirmware)(void *);

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

893 0
894 };
895
896 openfirmware(&args);
897 for (;;); /* just in case */
898}
899
900/* Free <size> bytes starting at <virt>, then call <entry> with <arg>. */
901#ifdef __notyet__
901#if 0
902void
903OF_chain(void *virt, u_int size, void (*entry)(), void *arg, u_int len)
904{
905 static struct {
906 cell_t name;
907 cell_t nargs;
908 cell_t nreturns;
909 cell_t virt;

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

931}
932#else
933void
934OF_chain(void *virt, u_int size, void (*entry)(), void *arg, u_int len)
935{
936 /*
937 * This is a REALLY dirty hack till the firmware gets this going
938 */
902void
903OF_chain(void *virt, u_int size, void (*entry)(), void *arg, u_int len)
904{
905 static struct {
906 cell_t name;
907 cell_t nargs;
908 cell_t nreturns;
909 cell_t virt;

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

931}
932#else
933void
934OF_chain(void *virt, u_int size, void (*entry)(), void *arg, u_int len)
935{
936 /*
937 * This is a REALLY dirty hack till the firmware gets this going
938 */
939#if 0
939 if (size > 0)
940 OF_release(virt, size);
940 if (size > 0)
941 OF_release(virt, size);
942#endif
941
942 entry(0, 0, openfirmware, arg, len);
943}
944#endif
943
944 entry(0, 0, openfirmware, arg, len);
945}
946#endif