Fixed various binary compatibility problems with R4.5.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11957 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-03-23 13:22:42 +00:00
parent c4472a00b1
commit d95383a3b9
3 changed files with 28 additions and 7 deletions
+3
View File
@@ -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)
+15 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2003-2004, Axel Dörfler, [email protected]. All rights reserved.
/*
* Copyright 2003-2005, Axel Dörfler, [email protected]. 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;
}
+10 -5
View File
@@ -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 -