From: Jaswinder S. <jas...@ya...> - 2001-02-11 03:42:38
|
Dear niibe-san , linux-sh and linuxsh-dev mailing list, I made some changes in arch/sh/lib/memcpy.S old errors get resolved but now i am getting new errors :- sh-linux-gnu-gcc -D__ASSEMBLY__ -D__KERNEL__ -I/home/jsrsh/linux/include -ml -m4 -c -o memset.o memset.S memset.S:21: unterminated character constant memset.S:25: unterminated character constant make[2]: *** [memset.o] Error 1 make[2]: Leaving directory `/home/jsrsh/linux/arch/sh/lib' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/home/jsrsh/linux/arch/sh/lib' make: *** [_dir_arch/sh/lib] Error 2 Thanks, Jaswinder. --- Jaswinder Singh <jas...@ya...> wrote: > Dear niibe-san , linux-sh and linuxsh-dev mailing > list, > > I made some changes in include/asm-sh/rtc.h and > arch/sh/kernel/time.c > > old errors get resolved but now i am getting new > errors :- > > sh-linux-gnu-gcc -D__ASSEMBLY__ -D__KERNEL__ > -I/home/jsrsh/linux/include -ml -m4 -c -o memcpy.o > memcpy.S > memcpy.S:23: unterminated character constant > make[2]: *** [memcpy.o] Error 1 > make[2]: Leaving directory > `/home/jsrsh/linux/arch/sh/lib' > make[1]: *** [first_rule] Error 2 > make[1]: Leaving directory > `/home/jsrsh/linux/arch/sh/lib' > make: *** [_dir_arch/sh/lib] Error 2 > > Thanks , > > Jaswinder. > > > > > --- Jaswinder Singh <jas...@ya...> > wrote: > > Dear niibe-san , linux-sh and linuxsh-dev mailing > > list > > :) > > > > By commenting comments in entry.S old errors are > > resolved ,but now i am getting new errors :- > > > > sh-linux-gnu-gcc -D__KERNEL__ > > -I/home/jsrsh/linux/include -Wall > > -Wstrict-prototypes > > -O2 -fomit-frame-pointer -fno-strict-aliasing -ml > > -m4 > > -pipe -c -o time.o time.c > > In file included from > > /home/jsrsh/linux/include/linux/fs.h:632, > > from > > /home/jsrsh/linux/include/linux/capability.h:17, > > from > > /home/jsrsh/linux/include/linux/binfmts.h:5, > > from > > /home/jsrsh/linux/include/linux/sched.h:9, > > from time.c:14: > > /home/jsrsh/linux/include/linux/udf_fs_sb.h:21: > > warning: ignoring pragma: pack > > /home/jsrsh/linux/include/linux/udf_fs_sb.h:76: > > warning: ignoring pragma: pack > > time.c: In function `do_timer_interrupt': > > time.c:194: structure has no member named > > `mv_rtc_settimeofday' > > time.c: In function `get_timer_frequency': > > time.c:243: structure has no member named > > `mv_rtc_gettimeofday' > > time.c:246: structure has no member named > > `mv_rtc_gettimeofday' > > time.c:253: structure has no member named > > `mv_rtc_gettimeofday' > > time.c: In function `time_init': > > time.c:294: structure has no member named > > `mv_rtc_gettimeofday' > > make[1]: *** [time.o] Error 1 > > make[1]: Leaving directory > > `/home/jsrsh/linux/arch/sh/kernel' > > make: *** [_dir_arch/sh/kernel] Error 2 > > > > I am enclosing my changed entry.S > > > > Thanks for your help , > > > > Best Regards, > > > > Jaswinder. > > > > --- Jaswinder Singh <jas...@ya...> > > wrote: > > > Dear Niibe-san , linux-sh and linuxsh-dev, > > > > > > I am trying to build linux-2.4.1 kernel with > > > sh-linux-gnu toolchain . > > > > > > But i am getting followings errors :- > > > > > > make[1]: Entering directory > > > `/home/jsrsh/linux/arch/sh/kernel' > > > sh-linux-gnu-gcc -D__ASSEMBLY__ -D__KERNEL__ > > > -I/home/jsrsh/linux/include -ml -m4 -c -o > > entry.o > > > entry.S > > > entry.S:136: unterminated character constant > > > entry.S:138: unterminated character constant > > > entry.S:360: unterminated character constant > > > entry.S:372: unterminated character constant > > > entry.S:385: unterminated character constant > > > entry.S:390: unterminated character constant > > > entry.S:510: unterminated character constant > > > entry.S:521: unterminated character constant > > > entry.S:638: unterminated character constant > > > entry.S:744: unterminated character constant > > > entry.S:781: unterminated string or character > > > constant > > > make[1]: *** [entry.o] Error 1 > > > make[1]: Leaving directory > > > `/home/jsrsh/linux/arch/sh/kernel' > > > make: *** [_dir_arch/sh/kernel] Error 2 > > > > > > Thanks for your help. > > > > > > Best Reagards, > > > > > > Jaswinder. > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Get personalized email addresses from Yahoo! Mail > - > > only $35 > > a year! http://personal.mail.yahoo.com/ > > > ATTACHMENT part 2 application/octet-stream > name=entry.S > > > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - > only $35 > a year! http://personal.mail.yahoo.com/> #ifndef _ASM_RTC_H > #define _ASM_RTC_H > > #include <asm/machvec.h> > > /*jsr#define rtc_gettimeofday > sh_mv.mv_rtc_gettimeofday > #define rtc_settimeofday sh_mv.mv_rtc_settimeofday > */ > #define rtc_gettimeofday sh_rtc_gettimeofday > #define rtc_settimeofday sh_rtc_settimeofday > > extern void sh_rtc_gettimeofday(struct timeval *tv); > extern int sh_rtc_settimeofday(const struct timeval > *tv); > > #endif /* _ASM_RTC_H */ > > /* $Id: time.c,v 1.20 2000/02/28 12:42:51 gniibe Exp > $ > * > * linux/arch/sh/kernel/time.c > * > * Copyright (C) 1999 Tetsuya Okada & Niibe Yutaka > * Copyright (C) 2000 Philipp Rumpf > <pr...@tu...> > * > * Some code taken from i386 version. > * Copyright (C) 1991, 1992, 1995 Linus Torvalds > */ > > #include <linux/config.h> > #include <linux/errno.h> > #include <linux/sched.h> > #include <linux/kernel.h> > #include <linux/param.h> > #include <linux/string.h> > #include <linux/mm.h> > #include <linux/interrupt.h> > #include <linux/time.h> > #include <linux/delay.h> > #include <linux/init.h> > #include <linux/smp.h> > > #include <asm/processor.h> > #include <asm/uaccess.h> > #include <asm/io.h> > #include <asm/irq.h> > #include <asm/delay.h> > #include <asm/machvec.h> > #include <asm/rtc.h> > > #include <linux/timex.h> > #include <linux/irq.h> > > #define TMU_TOCR_INIT 0x00 > #define TMU0_TCR_INIT 0x0020 > #define TMU_TSTR_INIT 1 > > #define TMU0_TCR_CALIB 0x0000 > > #if defined(__sh3__) > #define TMU_TOCR 0xfffffe90 /* Byte access */ > #define TMU_TSTR 0xfffffe92 /* Byte access */ > > #define TMU0_TCOR 0xfffffe94 /* Long access */ > #define TMU0_TCNT 0xfffffe98 /* Long access */ > #define TMU0_TCR 0xfffffe9c /* Word access */ > > #define FRQCR 0xffffff80 > #elif defined(__SH4__) > #define TMU_TOCR 0xffd80000 /* Byte access */ > #define TMU_TSTR 0xffd80004 /* Byte access */ > > #define TMU0_TCOR 0xffd80008 /* Long access */ > #define TMU0_TCNT 0xffd8000c /* Long access */ > #define TMU0_TCR 0xffd80010 /* Word access */ > > #define FRQCR 0xffc00000 > #endif > > extern rwlock_t xtime_lock; > extern unsigned long wall_jiffies; > #define TICK_SIZE tick > > static unsigned long do_gettimeoffset(void) > { > int count; > > static int count_p = 0x7fffffff; /* for the > first call after boot */ > static unsigned long jiffies_p = 0; > > /* > * cache volatile jiffies temporarily; we have IRQs > turned off. > */ > unsigned long jiffies_t; > > /* timer count may underflow right here */ > count = ctrl_inl(TMU0_TCNT); /* read the latched > count */ > > jiffies_t = jiffies; > > /* > * avoiding timer inconsistencies (they are rare, > but they happen)... > * there is one kind of problem that must be > avoided here: > * 1. the timer counter underflows > */ > > if( jiffies_t == jiffies_p ) { > if( count > count_p ) { > /* the nutcase */ > > if(ctrl_inw(TMU0_TCR) & 0x100) { /* Check UNF bit > */ > /* > * We cannot detect lost timer interrupts ... > * well, that's why we call them lost, don't we? > :) > * [hmm, on the Pentium and Alpha we can ... > sort of] > */ > count -= LATCH; > } else { > printk("do_slow_gettimeoffset(): hardware timer > problem?\n"); > } > } > } else > jiffies_p = jiffies_t; > > count_p = count; > > count = ((LATCH-1) - count) * TICK_SIZE; > count = (count + LATCH/2) / LATCH; > > return count; > } > > void do_gettimeofday(struct timeval *tv) > { > unsigned long flags; > unsigned long usec, sec; > > read_lock_irqsave(&xtime_lock, flags); > usec = do_gettimeoffset(); > { > unsigned long lost = jiffies - wall_jiffies; > if (lost) > usec += lost * (1000000 / HZ); > } > sec = xtime.tv_sec; > usec += xtime.tv_usec; > read_unlock_irqrestore(&xtime_lock, flags); > > while (usec >= 1000000) { > usec -= 1000000; > sec++; > } > > tv->tv_sec = sec; > tv->tv_usec = usec; > } > > void do_settimeofday(struct timeval *tv) > { > write_lock_irq(&xtime_lock); > /* > * This is revolting. We need to set "xtime" > correctly. However, the > * value in this location is the value at the most > recent update of > * wall time. Discover what correction > gettimeofday() would have > * made, and then undo it! > */ > tv->tv_usec -= do_gettimeoffset(); > tv->tv_usec -= (jiffies - wall_jiffies) * (1000000 > / HZ); > > while (tv->tv_usec < 0) { > tv->tv_usec += 1000000; > tv->tv_sec--; > } > > xtime = *tv; > time_adjust = 0; /* stop active adjtime() */ > time_status |= STA_UNSYNC; > time_maxerror = NTP_PHASE_LIMIT; > time_esterror = NTP_PHASE_LIMIT; > write_unlock_irq(&xtime_lock); > } > > /* last time the RTC clock got updated */ > static long last_rtc_update; > > /* > * timer_interrupt() needs to keep up the real-time > clock, > * as well as call the "do_timer()" routine every > clocktick > */ > static inline void do_timer_interrupt(int irq, void > *dev_id, struct pt_regs *regs) > { > do_timer(regs); > #if 0 > if (!user_mode(regs)) > sh_do_profile(regs->pc); > #endif > > #ifdef CONFIG_HEARTBEAT > if (sh_mv.mv_heartbeat != NULL) > sh_mv.mv_heartbeat(); > #endif > === message truncated === __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ |