summaryrefslogtreecommitdiff
path: root/stand/common
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-09-01 02:23:45 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-09-01 02:23:45 +0000
commitd3d381b2b194b4d24853e92eecef55f262688d1a (patch)
treee7447cdb72105a45516fd5f60f404431858ae952 /stand/common
parent162ec569493ba1919857c22a957c97700246da14 (diff)
downloadsrc-test2-d3d381b2b194b4d24853e92eecef55f262688d1a.tar.gz
src-test2-d3d381b2b194b4d24853e92eecef55f262688d1a.zip
Notes
Diffstat (limited to 'stand/common')
-rw-r--r--stand/common/bootstrap.h8
-rw-r--r--stand/common/interp_forth.c1
-rw-r--r--stand/common/interp_lua.c1
-rw-r--r--stand/common/interp_simple.c2
4 files changed, 12 insertions, 0 deletions
diff --git a/stand/common/bootstrap.h b/stand/common/bootstrap.h
index 41037b999c5e..47e6c3d056a2 100644
--- a/stand/common/bootstrap.h
+++ b/stand/common/bootstrap.h
@@ -164,6 +164,14 @@ extern int isapnp_readport;
extern char bootprog_info[];
/*
+ * Interpreter information
+ */
+extern const char bootprog_interp[];
+#define INTERP_DEFINE(interpstr) \
+const char bootprog_interp[] = "$Interpreter:" interpstr
+
+
+/*
* Preloaded file metadata header.
*
* Metadata are allocated on our heap, and copied into kernel space
diff --git a/stand/common/interp_forth.c b/stand/common/interp_forth.c
index f3a97e3b13b0..31ba1f7c2967 100644
--- a/stand/common/interp_forth.c
+++ b/stand/common/interp_forth.c
@@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$");
#include "ficl.h"
extern unsigned bootprog_rev;
+INTERP_DEFINE("4th");
/* #define BFORTH_DEBUG */
diff --git a/stand/common/interp_lua.c b/stand/common/interp_lua.c
index 0356040700d2..3c6691a7d10e 100644
--- a/stand/common/interp_lua.c
+++ b/stand/common/interp_lua.c
@@ -60,6 +60,7 @@ static struct interp_lua_softc lua_softc;
#define LDBG(...)
#endif
+INTERP_DEFINE("lua");
static void *
interp_lua_realloc(void *ud __unused, void *ptr, size_t osize __unused, size_t nsize)
diff --git a/stand/common/interp_simple.c b/stand/common/interp_simple.c
index 83eb83ce5272..439f63fa966e 100644
--- a/stand/common/interp_simple.c
+++ b/stand/common/interp_simple.c
@@ -35,6 +35,8 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#include "bootstrap.h"
+INTERP_DEFINE("simp");
+
void
interp_init(void)
{