diff --git a/src/bin/Jamfile b/src/bin/Jamfile index 34a63a3a53..4613aa9473 100644 --- a/src/bin/Jamfile +++ b/src/bin/Jamfile @@ -4,9 +4,11 @@ UsePrivateHeaders app ; UsePrivateHeaders kernel ; UsePrivateHeaders shared ; UsePrivateHeaders storage ; +SubDirHdrs $(OBOS_TOP) src add-ons kernel file_cache ; # standard commands that don't need any additional library StdBinCommands + boot_process_done.cpp catattr.cpp chop.c clear.c diff --git a/src/bin/boot_process_done.cpp b/src/bin/boot_process_done.cpp new file mode 100644 index 0000000000..4419281650 --- /dev/null +++ b/src/bin/boot_process_done.cpp @@ -0,0 +1,32 @@ +/* + * Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Distributed under the terms of the MIT License. + */ + + +#include "launch_speedup.h" + +#include +#include +#include + +#include + + +int +main(int argc, char **argv) +{ + uint32 version = 0; + status_t status = _kern_generic_syscall(LAUNCH_SPEEDUP_SYSCALLS, B_SYSCALL_INFO, + &version, sizeof(version)); + if (status != B_OK) { + // the launch speedup module is not available + fprintf(stderr, "\"launch_speedup\" module not available.\n"); + return 1; + } + + _kern_generic_syscall(LAUNCH_SPEEDUP_SYSCALLS, LAUNCH_SPEEDUP_STOP_SESSION, + (void *)"system boot", strlen("system boot")); + return 0; +} +