Added a command line application that officially ends the boot process
(for the "launch_speedup" module). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13895 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,9 +4,11 @@ UsePrivateHeaders app ;
|
|||||||
UsePrivateHeaders kernel ;
|
UsePrivateHeaders kernel ;
|
||||||
UsePrivateHeaders shared ;
|
UsePrivateHeaders shared ;
|
||||||
UsePrivateHeaders storage ;
|
UsePrivateHeaders storage ;
|
||||||
|
SubDirHdrs $(OBOS_TOP) src add-ons kernel file_cache ;
|
||||||
|
|
||||||
# standard commands that don't need any additional library
|
# standard commands that don't need any additional library
|
||||||
StdBinCommands
|
StdBinCommands
|
||||||
|
boot_process_done.cpp
|
||||||
catattr.cpp
|
catattr.cpp
|
||||||
chop.c
|
chop.c
|
||||||
clear.c
|
clear.c
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2005, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "launch_speedup.h"
|
||||||
|
|
||||||
|
#include <OS.h>
|
||||||
|
#include <syscalls.h>
|
||||||
|
#include <generic_syscall.h>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user