summaryrefslogtreecommitdiffstats
path: root/src/core/exec.c
diff options
context:
space:
mode:
authorSimon Rettberg2026-01-28 12:53:53 +0100
committerSimon Rettberg2026-01-28 12:53:53 +0100
commit8e82785c584dc13e20f9229decb95bd17bbe9cd1 (patch)
treea8b359e59196be5b2e3862bed189107f4bc9975f /src/core/exec.c
parentMerge branch 'master' into openslx (diff)
parent[prefix] Make unlzma.S compatible with 386 class CPUs (diff)
downloadipxe-openslx.tar.gz
ipxe-openslx.tar.xz
ipxe-openslx.zip
Merge branch 'master' into openslxopenslx
Diffstat (limited to 'src/core/exec.c')
-rw-r--r--src/core/exec.c26
1 files changed, 6 insertions, 20 deletions
diff --git a/src/core/exec.c b/src/core/exec.c
index a13884b68..4db1248b0 100644
--- a/src/core/exec.c
+++ b/src/core/exec.c
@@ -22,6 +22,7 @@
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+FILE_SECBOOT ( PERMITTED );
#include <stdint.h>
#include <string.h>
@@ -428,10 +429,7 @@ static int echo_exec ( int argc, char **argv ) {
}
/** "echo" command */
-struct command echo_command __command = {
- .name = "echo",
- .exec = echo_exec,
-};
+COMMAND ( echo, echo_exec );
/** "exit" options */
struct exit_options {};
@@ -472,10 +470,7 @@ static int exit_exec ( int argc, char **argv ) {
}
/** "exit" command */
-struct command exit_command __command = {
- .name = "exit",
- .exec = exit_exec,
-};
+COMMAND ( exit, exit_exec );
/** "isset" options */
struct isset_options {};
@@ -507,10 +502,7 @@ static int isset_exec ( int argc, char **argv ) {
}
/** "isset" command */
-struct command isset_command __command = {
- .name = "isset",
- .exec = isset_exec,
-};
+COMMAND ( isset, isset_exec );
/** "iseq" options */
struct iseq_options {};
@@ -544,10 +536,7 @@ static int iseq_exec ( int argc, char **argv ) {
}
/** "iseq" command */
-struct command iseq_command __command = {
- .name = "iseq",
- .exec = iseq_exec,
-};
+COMMAND ( iseq, iseq_exec );
/** "sleep" options */
struct sleep_options {};
@@ -587,7 +576,4 @@ static int sleep_exec ( int argc, char **argv ) {
}
/** "sleep" command */
-struct command sleep_command __command = {
- .name = "sleep",
- .exec = sleep_exec,
-};
+COMMAND ( sleep, sleep_exec );