From a3e2598d906aa619fb28fd02f2180da11cd29e20 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 9 May 2014 11:09:43 -0600 Subject: [PATCH] Move P-Code execution logic from interpreters/prun to system/prun --- binfmt/Kconfig | 2 +- binfmt/libpcode/README.txt | 4 ++++ binfmt/pcode.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/binfmt/Kconfig b/binfmt/Kconfig index aaf296c5b8..0575cd3694 100644 --- a/binfmt/Kconfig +++ b/binfmt/Kconfig @@ -72,7 +72,7 @@ endif config PCODE bool "Support P-Code Applications" default n - depends on INTERPRETERS_PCODE && INTERPRETERS_PRUN && (!NUTTX_KERNEL || EXPERIMENTAL) + depends on INTERPRETERS_PCODE && SYSTEM_PRUN && (!NUTTX_KERNEL || EXPERIMENTAL) ---help--- Enable support for interpreted P-Code binaries. P-Code binaries are generated by the NuttX Pascal compiler. diff --git a/binfmt/libpcode/README.txt b/binfmt/libpcode/README.txt index 7c6ae8ff2a..f42a4f54f6 100644 --- a/binfmt/libpcode/README.txt +++ b/binfmt/libpcode/README.txt @@ -74,6 +74,10 @@ Here is a simple test configuration using the NuttX simulator: CONFIG_INTERPRETERS_PCODE=y + And the P-Code runtime support: + + CONFIG_SYSTEM_PRUN=y + This enables building the PCODE binary format CONFIG_PCODE=y diff --git a/binfmt/pcode.c b/binfmt/pcode.c index 261042c8d4..bd476b4f29 100644 --- a/binfmt/pcode.c +++ b/binfmt/pcode.c @@ -47,7 +47,7 @@ #include #include -#include +#include #include #include