Updated to match the changes in the boot loader.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7291 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-04-21 22:58:02 +00:00
parent 9fac193453
commit b747c3b791
3 changed files with 17 additions and 4 deletions
+4 -1
View File
@@ -18,6 +18,7 @@ ObjectsDefines
elf.cpp
menu.cpp
loader.cpp
kernel_args.cpp
# partitions
amiga_rdb.cpp
@@ -49,7 +50,7 @@ ObjectsDefines
# SubDirC++Flags -include /usr/include/stdio.h ;
} else {
# SubDirC++Flags -include /boot/develop/headers/posix/stdio.h ;
SubDirC++Flags $(defines) -DHAVE_READ_POS=1 ; # -fcheck-memory-usage -D_NO_INLINE_ASM ;
SubDirC++Flags $(defines) -DHAVE_READ_POS=1 -fcheck-memory-usage -D_NO_INLINE_ASM ;
}
}
@@ -71,6 +72,7 @@ SimpleTest BootLoaderTest :
elf.cpp
menu.cpp
loader.cpp
kernel_args.cpp
# partitioning systems
amiga_rdb.cpp
@@ -97,6 +99,7 @@ SEARCH on [ FGristFiles
main.cpp vfs.cpp partitions.cpp
heap.cpp RootFileSystem.cpp
elf.cpp menu.cpp loader.cpp
kernel_args.cpp
] = [ FDirName $(OBOS_TOP) src kernel boot loader ] ;
# partitioning system modules
@@ -91,8 +91,8 @@ platform_get_boot_device(struct stage2_args *args, Node **_device)
status_t
platform_get_boot_partition(struct stage2_args *args, NodeList *list,
boot::Partition **_partition)
platform_get_boot_partition(struct stage2_args *args, Node *device,
NodeList *list, boot::Partition **_partition)
{
NodeIterator iterator = list->Iterator();
boot::Partition *partition = NULL;
@@ -1,13 +1,23 @@
/*
** Copyright 2003, Axel Dörfler, [email protected]. All rights reserved.
** Copyright 2003-2004, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#include <boot/platform.h>
#include <stdio.h>
extern "C" int boot_main(struct stage2_args *args);
extern addr_t gKernelEntry;
void
platform_start_kernel(void)
{
printf("*** jump to kernel at %p ***\n*** program exits.\n", (void *)gKernelEntry);
exit(0);
}
int