2 * Copyright 2006-2008, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Axel Dörfler, axeld@pinc-software.de
14 #include <r5_compatibility.h>
22 while (get_next_image_info(B_CURRENT_TEAM
, &cookie
, &info
) == B_OK
) {
23 if (((addr_t
)info
.text
<= (addr_t
)find_own_image
24 && (addr_t
)info
.text
+ (size_t)info
.text_size
> (addr_t
)find_own_image
)) {
26 __gNetAPIStart
= (addr_t
)min_c(info
.text
, info
.data
);
27 __gNetAPIEnd
= min_c((addr_t
)info
.text
+ info
.text_size
,
28 (addr_t
)info
.data
+ info
.data_size
);
38 // If in compatibility mode get our code address range.
39 if (__gR5Compatibility
)