diff --git a/src/kernel/libroot/libroot_init.c b/src/kernel/libroot/libroot_init.c index 1d3d4006c3..cb6a21772a 100644 --- a/src/kernel/libroot/libroot_init.c +++ b/src/kernel/libroot/libroot_init.c @@ -25,6 +25,9 @@ char **argv_save; // needed for BeOS compatibility - they are set in the startup code // (have a look at the glue/ directory) +int _data_offset_main_; + // this is obviously needed for R4.5 compatiblity + void initialize_before(image_id imageID, struct uspace_program_args const *args) diff --git a/src/kernel/libroot/os/arch/x86/thread.c b/src/kernel/libroot/os/arch/x86/thread.c index 697bb0373c..3b4aed421a 100644 --- a/src/kernel/libroot/os/arch/x86/thread.c +++ b/src/kernel/libroot/os/arch/x86/thread.c @@ -1,5 +1,5 @@ -/* - * Copyright 2003-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +/* + * Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. * Distributed under the terms of the MIT License. */ @@ -18,3 +18,16 @@ _kfind_thread_(const char *name) { return _kern_find_thread(name); } + + +extern thread_id _kget_thread_stacks_(thread_id thread, uint32 *stacks); + +status_t +_kget_thread_stacks_(thread_id thread, uint32 *stacks) +{ + // This one is obviously called from the R4.5 startup code. I am not + // exactly sure how it returns its infos, but just returning an + // error seems to work fine as well + return B_ERROR; +} + diff --git a/src/kits/app/Handler.cpp b/src/kits/app/Handler.cpp index 94192fe937..6502ce95d3 100644 --- a/src/kits/app/Handler.cpp +++ b/src/kits/app/Handler.cpp @@ -745,11 +745,6 @@ BHandler::IsWatched() const } -void BHandler::_ReservedHandler2() {} -void BHandler::_ReservedHandler3() {} -void BHandler::_ReservedHandler4() {} - - void BHandler::InitData(const char *name) { @@ -785,6 +780,16 @@ BHandler::SetLooper(BLooper *loop) } +#ifdef __INTEL__ +// binary compatibility with R4.5 +extern "C" void _ReservedHandler1__8BHandler(void) {} +#endif + +void BHandler::_ReservedHandler2() {} +void BHandler::_ReservedHandler3() {} +void BHandler::_ReservedHandler4() {} + + // #pragma mark -