From: miod Date: Wed, 24 Aug 2022 17:35:15 +0000 (+0000) Subject: Add prototype declarations for a bunch of functions. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=664fb24ad1b857a54a994c2700f7700887e153cb;p=openbsd Add prototype declarations for a bunch of functions. --- diff --git a/sys/arch/landisk/stand/boot/getsecs.c b/sys/arch/landisk/stand/boot/getsecs.c index 0e236d6761d..445278e1e87 100644 --- a/sys/arch/landisk/stand/boot/getsecs.c +++ b/sys/arch/landisk/stand/boot/getsecs.c @@ -1,12 +1,9 @@ +/* $OpenBSD: getsecs.c,v 1.5 2022/08/24 17:35:15 miod Exp $ */ /* $NetBSD: getsecs.c,v 1.2 2006/09/11 13:48:57 nonaka Exp $ */ #include -#include - -#include -#include -#include +#include #include #include diff --git a/sys/arch/landisk/stand/boot/libsa.h b/sys/arch/landisk/stand/boot/libsa.h index f1b0787df57..e356858acf1 100644 --- a/sys/arch/landisk/stand/boot/libsa.h +++ b/sys/arch/landisk/stand/boot/libsa.h @@ -1,4 +1,4 @@ -/* $OpenBSD: libsa.h,v 1.8 2020/12/09 18:10:19 krw Exp $ */ +/* $OpenBSD: libsa.h,v 1.9 2022/08/24 17:35:15 miod Exp $ */ /* * Copyright (c) 2006 Michael Shalayeff @@ -39,3 +39,10 @@ void scif_cninit(struct consdev *); int scif_cngetc(dev_t); void scif_cnputc(dev_t, int); void scif_init(unsigned int); + +int tick_init(); +void delay(int); + +void devboot(dev_t, char *); +void machdep(); +void run_loadfile(uint64_t *, int); diff --git a/sys/arch/landisk/stand/xxboot/boot1.c b/sys/arch/landisk/stand/xxboot/boot1.c index b4e0c6e492b..fb671b02412 100644 --- a/sys/arch/landisk/stand/xxboot/boot1.c +++ b/sys/arch/landisk/stand/xxboot/boot1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot1.c,v 1.10 2021/10/24 17:49:19 deraadt Exp $ */ +/* $OpenBSD: boot1.c,v 1.11 2022/08/24 17:35:15 miod Exp $ */ /* $NetBSD: boot1.c,v 1.1 2006/09/01 21:26:19 uwe Exp $ */ /*- @@ -47,7 +47,7 @@ int raise(int sig); int blkdevstrategy(void *, int, daddr_t, size_t, void *, size_t *); int blkdevopen(struct open_file *, ...); int blkdevclose(struct open_file *); - +int readsects(int dev, uint32_t lba, void *buf, size_t size); extern struct disklabel ptn_disklabel; diff --git a/sys/arch/landisk/stand/xxboot/pbr.S b/sys/arch/landisk/stand/xxboot/pbr.S index 2729f648048..8a101f3d9e6 100644 --- a/sys/arch/landisk/stand/xxboot/pbr.S +++ b/sys/arch/landisk/stand/xxboot/pbr.S @@ -1,4 +1,4 @@ -/* $OpenBSD: pbr.S,v 1.1 2006/11/08 17:46:56 deraadt Exp $ */ +/* $OpenBSD: pbr.S,v 1.2 2022/08/24 17:35:15 miod Exp $ */ /* $NetBSD: pbr.S,v 1.1 2006/09/01 21:26:19 uwe Exp $ */ /*- @@ -116,7 +116,7 @@ next_part: add #16, r12 ptn_error: - /* Not found NetBSD partition */ + /* no OpenBSD partition found */ mova ERR_PTN, r0 error: bsr message_crlf