Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Re: [MIPS] Sibyte: Fix race in sb1250_gettimeoffset().
       [not found] <S8133620AbWCPM6I/20060316125808Z+139@ftp.linux-mips.org>
@ 2006-03-16 14:11 ` Martin Michlmayr
  2006-03-16 14:14   ` Martin Michlmayr
  2006-05-24 12:51   ` Martin Michlmayr
  0 siblings, 2 replies; 3+ messages in thread
From: Martin Michlmayr @ 2006-03-16 14:11 UTC (permalink / raw)
  To: linux-mips

* linux-mips@linux-mips.org <linux-mips@linux-mips.org> [2006-03-16 12:57]:
> Commit: 186326fa1e0360450b927ee5b21fb8db028fe7ba
> 
> +void __init swarm_time_init(void)
> +{
> +	/* Setup HPT */
> +	sb1250_hpt_setup();
> +}

This leads to compiler errors on 1480 because sb1250_hpt_setup() is
not defined.  We need something like the patch below (or possibly a
proper fix?):


[MIPS] don't call sb1250_hpt_setup on 1480

sb1250_hpt_setup() should not be called on the 1480 board since it's
note defined there, leading to a linking error.

Signed-off-by: Martin Michlmayr <tbm@cyrius.com>


diff --git a/arch/mips/sibyte/swarm/setup.c b/arch/mips/sibyte/swarm/setup.c
index b661d24..4a93f1d 100644
--- a/arch/mips/sibyte/swarm/setup.c
+++ b/arch/mips/sibyte/swarm/setup.c
@@ -72,8 +72,10 @@ const char *get_system_type(void)
 
 void __init swarm_time_init(void)
 {
+#if defined(CONFIG_SIBYTE_SB1250) || defined(CONFIG_SIBYTE_BCM112X)
 	/* Setup HPT */
 	sb1250_hpt_setup();
+#endif
 }
 
 void __init swarm_timer_setup(struct irqaction *irq)

-- 
Martin Michlmayr
http://www.cyrius.com/

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [MIPS] Sibyte: Fix race in sb1250_gettimeoffset().
  2006-03-16 14:11 ` [MIPS] Sibyte: Fix race in sb1250_gettimeoffset() Martin Michlmayr
@ 2006-03-16 14:14   ` Martin Michlmayr
  2006-05-24 12:51   ` Martin Michlmayr
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Michlmayr @ 2006-03-16 14:14 UTC (permalink / raw)
  To: linux-mips

* Martin Michlmayr <tbm@cyrius.com> [2006-03-16 14:11]:
> This leads to compiler errors on 1480 because sb1250_hpt_setup() is

linker

> [MIPS] don't call sb1250_hpt_setup on 1480
> 
> sb1250_hpt_setup() should not be called on the 1480 board since it's
> note defined there, leading to a linking error.

s/note/not/

-- 
Martin Michlmayr
http://www.cyrius.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [MIPS] Sibyte: Fix race in sb1250_gettimeoffset().
  2006-03-16 14:11 ` [MIPS] Sibyte: Fix race in sb1250_gettimeoffset() Martin Michlmayr
  2006-03-16 14:14   ` Martin Michlmayr
@ 2006-05-24 12:51   ` Martin Michlmayr
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Michlmayr @ 2006-05-24 12:51 UTC (permalink / raw)
  To: linux-mips

* Martin Michlmayr <tbm@cyrius.com> [2006-03-16 14:11]:
> > +	/* Setup HPT */
> > +	sb1250_hpt_setup();
> > +}
> This leads to compiler errors on 1480 because sb1250_hpt_setup() is
> not defined.  We need something like the patch below (or possibly a
> proper fix?):

This problem is still there.  Anyone working on a fix?

The problem is the following when building a kernel for BigSur:

> arch/mips/sibyte/swarm/lib.a(setup.o): In function `swarm_time_init':
> setup.c:(.init.text+0x0): undefined reference to `sb1250_hpt_setup'

-- 
Martin Michlmayr
http://www.cyrius.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-24 12:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <S8133620AbWCPM6I/20060316125808Z+139@ftp.linux-mips.org>
2006-03-16 14:11 ` [MIPS] Sibyte: Fix race in sb1250_gettimeoffset() Martin Michlmayr
2006-03-16 14:14   ` Martin Michlmayr
2006-05-24 12:51   ` Martin Michlmayr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox