Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: fallen/NetBSD
base: 3688ab19af67
...
head fork: fallen/NetBSD
compare: 9d7eeea78db8
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 07, 2013
@fallen Fix mutex related link issue
lm32 port of NetBSD will use (at least for now)
generic C mutex implementation.

If more performance is needed, an lm32 assembly stub implementation
can be done.
461f181
@fallen Fix libcc related link issue, at last
lm32 arch does not support quad operations.
This is now well defined in libkern Makefile.
9d7eeea
View
2  sys/arch/lm32/include/mutex.h
@@ -52,8 +52,6 @@ struct kmutex {
#define mtx_ipl u.s.mtxs_ipl
#define mtx_lock u.s.mtxs_lock
-#define __HAVE_MUTEX_STUBS 1
-#define __HAVE_SPIN_MUTEX_STUBS 1
#define __HAVE_SIMPLE_MUTEXES 1
/*
View
3  sys/lib/libkern/Makefile.libkern
@@ -48,8 +48,7 @@ CPPFLAGS+= -I${KERNDIR}/../../../common/include
(${MACHINE_ARCH} != "mips64el" || !empty(CFLAGS:M-mabi=32)) && \
(${MACHINE_ARCH} != "powerpc64") && \
(${MACHINE_ARCH} != "sparc64") && \
- (${MACHINE_ARCH} != "x86_64" || !empty(CFLAGS:M-m32)) && \
- (${MACHINE_ARCH} != "lm32")
+ (${MACHINE_ARCH} != "x86_64" || !empty(CFLAGS:M-m32))
# Quad support
SRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
View
8 sys/lib/libkern/arch/lm32/libgcc2.c
@@ -510,6 +510,8 @@ __ffsSI2 (UWtype u)
return count + 1;
}
#endif
+
+#if 0
DWtype __muldi3 (DWtype u, DWtype v)
{
const DWunion uu = {.ll = u};
@@ -521,6 +523,7 @@ DWtype __muldi3 (DWtype u, DWtype v)
return w.ll;
}
+#endif
#if (defined (L_udivdi3) || defined (L_divdi3) || \
defined (L_umoddi3) || defined (L_moddi3))
#if defined (sdiv_qrnnd)
@@ -1066,6 +1069,7 @@ __moddi3 (DWtype u, DWtype v)
}
#endif
+#if 0
UDWtype
__umoddi3 (UDWtype u, UDWtype v)
{
@@ -1075,12 +1079,16 @@ __umoddi3 (UDWtype u, UDWtype v)
return w;
}
+#endif
+#if 0
UDWtype
__udivdi3 (UDWtype n, UDWtype d)
{
return __udivmoddi4 (n, d, (UDWtype *) 0);
}
+#endif
+
#ifdef L_cmpdi2
cmp_return_type
__cmpdi2 (DWtype a, DWtype b)
View
6 sys/lib/libkern/arch/lm32/libgcc_lm32.h
@@ -47,9 +47,9 @@ SItype __divsi3 (SItype a, SItype b);
SItype __modsi3 (SItype a, SItype b);
USItype __udivsi3 (USItype a, USItype b);
USItype __umodsi3 (USItype a, USItype b);
-DWtype __muldi3 (DWtype u, DWtype v);
-//DWtype __moddi3 (DWtype u, DWtype v);
-//UDWtype __udivmoddi4 (UDWtype n, UDWtype d, UDWtype *rp);
+extern DWtype __muldi3 (DWtype u, DWtype v);
+extern UDWtype __umoddi3 (UDWtype, UDWtype);
+extern UDWtype __udivdi3 (UDWtype, UDWtype);
// big endian
struct DWstruct {

No commit comments for this range

Something went wrong with that request. Please try again.