Thu Apr 23 00:12:28 2020 UTC ()
bootfile is owned by libsa


(joerg)
diff -r1.29 -r1.30 src/sys/arch/macppc/stand/ofwboot/boot.c

cvs diff -r1.29 -r1.30 src/sys/arch/macppc/stand/ofwboot/boot.c (expand / switch to unified diff)

--- src/sys/arch/macppc/stand/ofwboot/boot.c 2018/06/06 22:56:25 1.29
+++ src/sys/arch/macppc/stand/ofwboot/boot.c 2020/04/23 00:12:28 1.30
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: boot.c,v 1.29 2018/06/06 22:56:25 uwe Exp $ */ 1/* $NetBSD: boot.c,v 1.30 2020/04/23 00:12:28 joerg Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1997 The NetBSD Foundation, Inc. 4 * Copyright (c) 1997 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Jason R. Thorpe. 8 * by Jason R. Thorpe.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -83,27 +83,27 @@ @@ -83,27 +83,27 @@
83#include "ofdev.h" 83#include "ofdev.h"
84#include "openfirm.h" 84#include "openfirm.h"
85 85
86extern void __syncicache(void *, size_t); /* in libkern */ 86extern void __syncicache(void *, size_t); /* in libkern */
87 87
88 88
89#ifdef DEBUG 89#ifdef DEBUG
90# define DPRINTF printf 90# define DPRINTF printf
91#else 91#else
92# define DPRINTF while (0) printf 92# define DPRINTF while (0) printf
93#endif 93#endif
94 94
95char bootdev[MAXBOOTPATHLEN]; 95char bootdev[MAXBOOTPATHLEN];
96char bootfile[MAXBOOTPATHLEN]; 96extern char bootfile[MAXBOOTPATHLEN];
97int boothowto; 97int boothowto;
98bool floppyboot; 98bool floppyboot;
99int ofw_version = 0; 99int ofw_version = 0;
100 100
101static const char *kernels[] = { "/netbsd", "/netbsd.gz", "/netbsd.macppc", NULL }; 101static const char *kernels[] = { "/netbsd", "/netbsd.gz", "/netbsd.macppc", NULL };
102 102
103static void 103static void
104prom2boot(char *dev) 104prom2boot(char *dev)
105{ 105{
106 char *cp; 106 char *cp;
107 107
108 cp = dev + strlen(dev) - 1; 108 cp = dev + strlen(dev) - 1;
109 for (; *cp; cp--) { 109 for (; *cp; cp--) {