-/* $OpenBSD: Locore.c,v 1.17 2022/10/17 18:55:20 kettenis Exp $ */
+/* $OpenBSD: Locore.c,v 1.18 2023/06/01 17:24:56 krw Exp $ */
/* $NetBSD: Locore.c,v 1.1 2000/08/20 14:58:36 mrg Exp $ */
/*
cell_t phandle;
cell_t child;
} args;
-
+
args.name = ADR2CELL("child");
args.nargs = 1;
args.nreturns = 1;
cell_t phandle;
cell_t parent;
} args;
-
+
args.name = ADR2CELL("parent");
args.nargs = 1;
args.nreturns = 1;
cell_t buflen;
cell_t length;
} args;
-
+
if (buflen > PAGE_SIZE)
return -1;
args.name = ADR2CELL("package-to-path");
-/* $OpenBSD: boot.c,v 1.41 2023/04/13 02:19:05 jsg Exp $ */
+/* $OpenBSD: boot.c,v 1.42 2023/06/01 17:24:56 krw Exp $ */
/* $NetBSD: boot.c,v 1.3 2001/05/31 08:55:19 mrg Exp $ */
/*
* Copyright (c) 1997, 1999 Eduardo E. Horvath. All rights reserved.
bcopy(&machine_tag, args + l, sizeof(machine_tag));
l += sizeof(machine_tag);
- /*
+ /*
* Since we don't need the boot string (we can get it from /chosen)
* we won't pass it in. Just pass in esym and magic #
*/
bootdev_dip = NULL;
- /*
+ /*
* Look for softraid disks in bootline.
* E.g. 'sr0', 'sr0:bsd', or 'sr0a:/bsd'
*/
#endif
char **bootlp;
char *just_bootline[2];
-
+
printf(">> OpenBSD BOOT %s\n", version);
/*
printf("bootargs too long: %s\n",
bootline);
_rtt();
- }
+ }
}
}
if (!bootlp) {
-/* $OpenBSD: disk.h,v 1.3 2018/12/31 11:44:57 claudio Exp $ */
+/* $OpenBSD: disk.h,v 1.4 2023/06/01 17:24:56 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-/* $OpenBSD: diskprobe.c,v 1.6 2018/12/31 11:44:57 claudio Exp $ */
+/* $OpenBSD: diskprobe.c,v 1.7 2023/06/01 17:24:56 krw Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis <kettenis@openbsd.org>
bzero(dip, sizeof(*dip));
len = OF_package_to_path(node, dip->path, sizeof(dip->path));
- if (len < 0) {
+ if (len < 0) {
DPRINTF("could not get path for disk node %x\n", node);
goto bad;
} else if (len >= sizeof(dip->path)) {
if (node == 0 || node == -1) {
if (--depth < 0)
return;
-
+
stack[depth] = OF_peer(stack[depth]);
continue;
}
-/* $OpenBSD: elf64_exec.c,v 1.13 2023/04/13 02:19:05 jsg Exp $ */
+/* $OpenBSD: elf64_exec.c,v 1.14 2023/06/01 17:24:56 krw Exp $ */
/* $NetBSD: elfXX_exec.c,v 1.2 2001/08/15 20:08:15 eeh Exp $ */
/*
void syncicache(void *, int);
int
-elf64_exec(int fd, Elf_Ehdr *elf, u_int64_t *entryp, void **ssymp, void **esymp){
+elf64_exec(int fd, Elf_Ehdr *elf, u_int64_t *entryp, void **ssymp, void **esymp){
Elf_Shdr *shp;
Elf_Off off;
void *addr;
obd->len = BOOTDATA_LEN_SOFTRAID;
#ifdef SOFTRAID
- /*
+ /*
* If booting from softraid we must pass additional
* information to the kernel:
* 1) The uuid of the softraid volume we booted from.
(u_long)phdr.p_vaddr);
(void)lseek(fd, (size_t)phdr.p_offset, SEEK_SET);
- /*
+ /*
* If the segment's VA is aligned on a 4MB boundary, align its
* request 4MB aligned physical memory. Otherwise use default
* alignment. Make sure BSS is extended to a 4MB boundary, too.
-/* $OpenBSD: md5.h,v 1.3 2002/03/14 01:26:46 millert Exp $ */
+/* $OpenBSD: md5.h,v 1.4 2023/06/01 17:24:56 krw Exp $ */
/* $NetBSD: md5.h,v 1.1 2000/08/20 14:58:38 mrg Exp $ */
/*
* is identified as the "RSA Data Security, Inc. MD5 Message-Digest
* Algorithm" in all material mentioning or referencing this software
* or this function.
- *
+ *
* License is also granted to make and use derivative works provided
* that such works are identified as "derived from the RSA Data
* Security, Inc. MD5 Message-Digest Algorithm" in all material
* mentioning or referencing the derived work.
- *
+ *
* RSA Data Security, Inc. makes no representations concerning either
* the merchantability of this software or the suitability of this
* software for any particular purpose. It is provided "as is"
* without express or implied warranty of any kind.
- *
+ *
* These notices must be retained in any copies of any part of this
* documentation and/or software.
*/
-/* $OpenBSD: net.c,v 1.8 2021/01/30 21:06:45 deraadt Exp $ */
+/* $OpenBSD: net.c,v 1.9 2023/06/01 17:24:56 krw Exp $ */
/* $NetBSD: net.c,v 1.1 2000/08/20 14:58:38 mrg Exp $ */
/*
net_open(struct of_dev *op)
{
int error = 0;
-
+
/*
* On first open, do netif open, mount, etc.
*/
-/* $OpenBSD: netif_of.c,v 1.7 2014/08/21 14:24:08 mpi Exp $ */
+/* $OpenBSD: netif_of.c,v 1.8 2023/06/01 17:24:56 krw Exp $ */
/* $NetBSD: netif_of.c,v 1.1 2000/08/20 14:58:39 mrg Exp $ */
/*
struct iodesc *io;
int fd, error;
char addr[32];
-
+
DNPRINTF(BOOT_D_OFNET, "netif_open...");
/* find a free socket */
netif_of.nif_devdata = op;
io->io_netif = &netif_of;
-
+
/* Put our ethernet address in io->myea */
OF_getprop(OF_instance_to_package(op->handle),
"mac-address", io->myea, sizeof io->myea);
-/* $OpenBSD: ofdev.c,v 1.37 2023/05/31 13:49:56 krw Exp $ */
+/* $OpenBSD: ofdev.c,v 1.38 2023/06/01 17:24:56 krw Exp $ */
/* $NetBSD: ofdev.c,v 1.1 2000/08/20 14:58:41 mrg Exp $ */
/*
parent = OF_parent(dhandle);
if (parent && OF_getprop(parent, "device_type", buf,
sizeof(buf)) > 0 && strcmp(buf, "ide") == 0) {
- DNPRINTF(BOOT_D_OFDEV,
+ DNPRINTF(BOOT_D_OFDEV,
"devopen: Disable writing for IDE block device\n");
of->f_flags |= F_NOWRITE;
}
-/* $OpenBSD: softraid_sparc64.c,v 1.6 2022/09/02 08:13:03 kn Exp $ */
+/* $OpenBSD: softraid_sparc64.c,v 1.7 2023/06/01 17:24:56 krw Exp $ */
/*
* Copyright (c) 2012 Joel Sing <jsing@openbsd.org>
for (i = 0; i < sm->ssdi.ssd_opt_no; i++) {
#ifdef DEBUG
- printf("Found optional metadata of type %u, length %u\n",
+ printf("Found optional metadata of type %u, length %u\n",
omh->som_type, omh->som_length);
#endif