summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/bootstrap.h
diff options
context:
space:
mode:
authordcs <dcs@FreeBSD.org>1999-02-04 17:06:46 +0000
committerdcs <dcs@FreeBSD.org>1999-02-04 17:06:46 +0000
commit755c131c9f9186c9e5988ecd80463ebaf5736541 (patch)
tree58e08046a8f6ce1037ca20ede61682ebb6aa8c16 /sys/boot/common/bootstrap.h
parent60ace12c39d160ce8ffa553ba201f1f6ea1edc97 (diff)
downloadFreeBSD-src-755c131c9f9186c9e5988ecd80463ebaf5736541.zip
FreeBSD-src-755c131c9f9186c9e5988ecd80463ebaf5736541.tar.gz
Make use of prototypes to silence warnings.
Change include() so it will be able to load files with forth code, instead of just builtins. Remove #@- from the include section of the help file, since they don't work in the new version of include, unless BOOT_FORTH is not defined. Change bf_run() so it will return the result returned by ficlExec(). Also, make bf_run() push "interpret" to be executed by ficlExec(), since ficlExec() doesn't do it by itself. (Things worked previously because nothing recursed through ficlExec() by the way of bf_run()). Change/extend comments on builtin behavior. Search for "interpret" at the end of bf_init(), so /boot/boot.4th can provide it's own version. Remove dead code.
Diffstat (limited to 'sys/boot/common/bootstrap.h')
-rw-r--r--sys/boot/common/bootstrap.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/boot/common/bootstrap.h b/sys/boot/common/bootstrap.h
index cc207dc..996c07e 100644
--- a/sys/boot/common/bootstrap.h
+++ b/sys/boot/common/bootstrap.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bootstrap.h,v 1.18 1999/01/16 03:25:24 jdp Exp $
+ * $Id: bootstrap.h,v 1.19 1999/01/22 23:50:13 msmith Exp $
*/
#include <sys/types.h>
@@ -61,6 +61,10 @@ extern int include(char *filename);
/* interp_parse.c */
extern int parse(int *argc, char ***argv, char *str);
+/* interp_forth.c */
+extern void bf_init(void);
+extern int bf_run(char *line);
+
/* boot.c */
extern int autoboot(int delay, char *prompt);
extern void autoboot_maybe(void);
@@ -71,6 +75,9 @@ extern void hexdump(caddr_t region, size_t len);
extern size_t strlenout(vm_offset_t str);
extern char *strdupout(vm_offset_t str);
+/* bcache.c */
+extern int bcache_init(int nblks, size_t bsize);
+
/*
* Disk block cache
*/
OpenPOWER on IntegriCloud