Explorar o código

- preliminary gcc-3.0 sparc654 support
- removed some annoying debugging information from timer.c

Andrei Pelinescu-Onciul %!s(int64=23) %!d(string=hai) anos
pai
achega
5936ea9bcc
Modificáronse 2 ficheiros con 13 adicións e 3 borrados
  1. 13 2
      Makefile.defs
  2. 0 1
      modules/tm/timer.c

+ 13 - 2
Makefile.defs

@@ -113,9 +113,20 @@ ifeq ($(mode), release)
 			#-Wmissing-prototypes \
 	
 ifneq (,$(findstring 3.0, $(CC_VER)))
-	CFLAGS+=-minline-all-stringops -malign-double \
-				-march=athlon \
+# gcc 3.0.x specific optimizations
+	ifeq ($(ARCH), i386)
+		CFLAGS+=-minline-all-stringops -malign-double -march=athlon \
 				#-mcpu=athlon
+	endif
+	ifeq ($(ARCH), sparc64)
+		# sparc64 specific options, using 32bit for now
+		CFLAGS+= -mcpu=v9 -mtune=ultrasparc  -m32  \
+				# -mcpu=v9 or ultrasparc? # -mtune implied by -mcpu
+				#-mno-epilogue #try to inline function exit code
+				#-mflat # omit save/restore
+				#-,faster-structs #faster non Sparc ABI structure copy ops
+				
+	endif
 endif
 	LDFLAGS+=-Wl,-O2 -Wl,-E $(PROFILE)
 	# we need -fPIC -DPIC only for shared objects, we don't need them for

+ 0 - 1
modules/tm/timer.c

@@ -134,7 +134,6 @@ void timer_routine(unsigned int ticks , void * attr)
 	struct timer_link  *tl, *tmp_tl;
 	int                           id;
 
-	DBG("%d\n", ticks);
 
 	for( id=0 ; id<NR_OF_TIMER_LISTS ; id++ )
 	{