Add __aeabi_ulcmp to allow building of the LINT kernel.

This commit is contained in:
Andrew Turner 2013-01-23 09:18:18 +00:00
parent 009f7b425d
commit 31735bf308
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245840
2 changed files with 17 additions and 0 deletions

View File

@ -110,4 +110,9 @@ u_quad_t __udivdi3(u_quad_t a, u_quad_t b);
u_quad_t __umoddi3(u_quad_t a, u_quad_t b);
int __ucmpdi2(u_quad_t a, u_quad_t b);
/* ARM EABI support functions. */
#ifdef __ARM_EABI__
int __aeabi_ulcmp(unsigned long long, unsigned long long);
#endif
#endif /* !_LIBKERN_QUAD_H_ */

View File

@ -51,3 +51,15 @@ __ucmpdi2(a, b)
return (aa.ul[H] < bb.ul[H] ? 0 : aa.ul[H] > bb.ul[H] ? 2 :
aa.ul[L] < bb.ul[L] ? 0 : aa.ul[L] > bb.ul[L] ? 2 : 1);
}
#ifdef __ARM_EABI__
/*
* Return -1, 0 or 1 as a <, =, > b respectively.
*/
int
__aeabi_ulcmp(unsigned long long a, unsigned long long b)
{
return __ucmpdi2(a, b) - 1;
}
#endif