public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] - Update function prototype for sn_io_addr
@ 2004-07-23 12:29 Jack Steiner
  2004-07-23 17:15 ` David Mosberger
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jack Steiner @ 2004-07-23 12:29 UTC (permalink / raw)
  To: linux-ia64

Add "const" to function prototype for sn_io_addr. Cuts boot time
on simulator in half.

Signed-off-by: Jack Steiner <steiner@sgi.com>



Index: linux/include/asm-ia64/sn/sn2/io.h
=================================--- linux.orig/include/asm-ia64/sn/sn2/io.h
+++ linux/include/asm-ia64/sn/sn2/io.h
@@ -9,7 +9,7 @@
 #ifndef _ASM_SN_SN2_IO_H
 #define _ASM_SN_SN2_IO_H
 
-extern void * sn_io_addr(unsigned long port); /* Forward definition */
+extern void * sn_io_addr(unsigned long port) __attribute__ ((__const__)); /* Forward definition */
 extern void sn_mmiob(void); /* Forward definition */
 #include <asm/intrinsics.h>
 
-- 
Thanks

Jack Steiner (steiner@sgi.com)          651-683-5302
Principal Engineer                      SGI - Silicon Graphics, Inc.



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

* Re: [PATCH] - Update function prototype for sn_io_addr
  2004-07-23 12:29 [PATCH] - Update function prototype for sn_io_addr Jack Steiner
@ 2004-07-23 17:15 ` David Mosberger
  2004-07-23 21:56 ` Jack Steiner
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: David Mosberger @ 2004-07-23 17:15 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Fri, 23 Jul 2004 07:29:08 -0500, Jack Steiner <steiner@sgi.com> said:

  Jack> Add "const" to function prototype for sn_io_addr. Cuts boot
  Jack> time on simulator in half.

  Jack> Signed-off-by: Jack Steiner <steiner@sgi.com>

  Jack> __attribute__ ((__const__));

I think you're supposed to use __attribute_const__.

	--david

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

* Re: [PATCH] - Update function prototype for sn_io_addr
  2004-07-23 12:29 [PATCH] - Update function prototype for sn_io_addr Jack Steiner
  2004-07-23 17:15 ` David Mosberger
@ 2004-07-23 21:56 ` Jack Steiner
  2004-07-24  7:05 ` Peter Chubb
  2004-07-24  8:27 ` Chris Wedgwood
  3 siblings, 0 replies; 5+ messages in thread
From: Jack Steiner @ 2004-07-23 21:56 UTC (permalink / raw)
  To: linux-ia64

On Fri, Jul 23, 2004 at 10:15:44AM -0700, David Mosberger wrote:
> >>>>> On Fri, 23 Jul 2004 07:29:08 -0500, Jack Steiner <steiner@sgi.com> said:
> 
>   Jack> Add "const" to function prototype for sn_io_addr. Cuts boot
>   Jack> time on simulator in half.
> 
>   Jack> Signed-off-by: Jack Steiner <steiner@sgi.com>
> 
>   Jack> __attribute__ ((__const__));
> 
> I think you're supposed to use __attribute_const__.

Right..

Add "const" to function prototype for sn_io_addr. Cuts boot time
on simulator in half.


Signed-off-by: Jack Steiner <steiner@sgi.com>


Index: linux/include/asm-ia64/sn/sn2/io.h
=================================--- linux.orig/include/asm-ia64/sn/sn2/io.h
+++ linux/include/asm-ia64/sn/sn2/io.h
@@ -8,10 +8,11 @@
 
 #ifndef _ASM_SN_SN2_IO_H
 #define _ASM_SN_SN2_IO_H
+#include <linux/compiler.h>
+#include <asm/intrinsics.h>
 
-extern void * sn_io_addr(unsigned long port); /* Forward definition */
+extern void * sn_io_addr(unsigned long port) __attribute_const__; /* Forward definition */
 extern void sn_mmiob(void); /* Forward definition */
-#include <asm/intrinsics.h>
 
 #define __sn_mf_a()   ia64_mfa()
 
-- 
Thanks

Jack Steiner (steiner@sgi.com)          651-683-5302
Principal Engineer                      SGI - Silicon Graphics, Inc.



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

* Re: [PATCH] - Update function prototype for sn_io_addr
  2004-07-23 12:29 [PATCH] - Update function prototype for sn_io_addr Jack Steiner
  2004-07-23 17:15 ` David Mosberger
  2004-07-23 21:56 ` Jack Steiner
@ 2004-07-24  7:05 ` Peter Chubb
  2004-07-24  8:27 ` Chris Wedgwood
  3 siblings, 0 replies; 5+ messages in thread
From: Peter Chubb @ 2004-07-24  7:05 UTC (permalink / raw)
  To: linux-ia64

>>>>> "Jack" = Jack Steiner <steiner@sgi.com> writes:

Jack> Add "const" to function prototype for sn_io_addr. Cuts boot time
Jack> on simulator in half.

Is this the SKI simulator?  I can't currently build Linux in
CONFIG_GENERIC mode to run on the simulator (you can't build the
bootloader, and if you work around that by compiling the bootloader
with CONFIG_HP_SIM the result hangs in very early boot).   And
sn_io_addr isn't included if you compile with CONFIG_HP_SIM.

So I'm interested to know what you're doing.

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
The technical we do immediately,  the political takes *forever*

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

* Re: [PATCH] - Update function prototype for sn_io_addr
  2004-07-23 12:29 [PATCH] - Update function prototype for sn_io_addr Jack Steiner
                   ` (2 preceding siblings ...)
  2004-07-24  7:05 ` Peter Chubb
@ 2004-07-24  8:27 ` Chris Wedgwood
  3 siblings, 0 replies; 5+ messages in thread
From: Chris Wedgwood @ 2004-07-24  8:27 UTC (permalink / raw)
  To: linux-ia64

On Sat, Jul 24, 2004 at 05:05:10PM +1000, Peter Chubb wrote:

> Is this the SKI simulator?

I'm sure it's Medusa (SGI's internal ia64 simulator which has SN
support amongst other things).


   --cw

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

end of thread, other threads:[~2004-07-24  8:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-23 12:29 [PATCH] - Update function prototype for sn_io_addr Jack Steiner
2004-07-23 17:15 ` David Mosberger
2004-07-23 21:56 ` Jack Steiner
2004-07-24  7:05 ` Peter Chubb
2004-07-24  8:27 ` Chris Wedgwood

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