| @@ -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 | |
86 | extern void __syncicache(void *, size_t); /* in libkern */ | | 86 | extern 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 | |
95 | char bootdev[MAXBOOTPATHLEN]; | | 95 | char bootdev[MAXBOOTPATHLEN]; |
96 | char bootfile[MAXBOOTPATHLEN]; | | 96 | extern char bootfile[MAXBOOTPATHLEN]; |
97 | int boothowto; | | 97 | int boothowto; |
98 | bool floppyboot; | | 98 | bool floppyboot; |
99 | int ofw_version = 0; | | 99 | int ofw_version = 0; |
100 | | | 100 | |
101 | static const char *kernels[] = { "/netbsd", "/netbsd.gz", "/netbsd.macppc", NULL }; | | 101 | static const char *kernels[] = { "/netbsd", "/netbsd.gz", "/netbsd.macppc", NULL }; |
102 | | | 102 | |
103 | static void | | 103 | static void |
104 | prom2boot(char *dev) | | 104 | prom2boot(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--) { |