linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* diff to tonight's kaffe cvs tree to work on ppc
@ 2000-07-25  2:42 Kevin B. Hendricks
  0 siblings, 0 replies; 7+ messages in thread
From: Kevin B. Hendricks @ 2000-07-25  2:42 UTC (permalink / raw)
  To: linuxppc-dev, gback

[-- Attachment #1: Type: text/plain, Size: 444 bytes --]

To those of you who requested my kaffe patch, (and Godmar)
(and to get it stored in the mailing list archives!).

Attached is the patch to tonight's kaffe cvs tree to to work better with linux
ppc.
With this patch in place, kaffe can pass the CaffeineMark 3 benchmark test.

This patch should be clean enough to check right into the cvs tree if anyone has
write access.

The patch is attached.

Have fun!

Kevin Hendricks
khendricks@ivey.uwo.ca

[-- Attachment #2: kaffe_ppc.patch.gz --]
[-- Type: application/x-gzip, Size: 3792 bytes --]

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

* Re: diff to tonight's kaffe cvs tree to work on ppc
       [not found] <200007250345.VAA22028@faith.cs.utah.edu>
@ 2000-07-25 13:13 ` Kevin B. Hendricks
  2000-07-25 13:33   ` tom_gall
  2000-07-25 17:22   ` Kevin B. Hendricks
  0 siblings, 2 replies; 7+ messages in thread
From: Kevin B. Hendricks @ 2000-07-25 13:13 UTC (permalink / raw)
  To: Godmar Back, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 387 bytes --]

Hi Godmar,

> Is the stack alignment code 64bit safe?

As promised, here is the clean up patch.  It should be applied after my first
patch.

The only assumption I am making here is that sizeof(unsigned int) = sizeof(void
*).
This should be true on both 64 bit and 32 bit systems.

I have attached the patch.

Hope you will commit these changes to the official kaffe tree.

Thanks,

Kevin

[-- Attachment #2: kaffe_cleanups.patch.gz --]
[-- Type: application/x-gzip, Size: 553 bytes --]

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

* Re: diff to tonight's kaffe cvs tree to work on ppc
  2000-07-25 13:13 ` Kevin B. Hendricks
@ 2000-07-25 13:33   ` tom_gall
  2000-07-25 14:03     ` Kevin B. Hendricks
  2000-07-25 17:22   ` Kevin B. Hendricks
  1 sibling, 1 reply; 7+ messages in thread
From: tom_gall @ 2000-07-25 13:33 UTC (permalink / raw)
  To: Kevin B. Hendricks; +Cc: linuxppc-dev


"Kevin B. Hendricks" wrote:
>
> Hi Godmar,
>
> > Is the stack alignment code 64bit safe?
>
> As promised, here is the clean up patch.  It should be applied after my first
> patch.
>
> The only assumption I am making here is that sizeof(unsigned int) = sizeof(void
> *).

> This should be true on both 64 bit and 32 bit systems.

Hi Kevin,

  This is only true as far as the 64 bit systems running on the 32 bit kernel,
which is all there is at the moment.

  Work has started on the 64 bit PowerPC Linux kernel, if Kaffe is compiled as a
64 bit app for that kernel then sizeof(unsigned long) = sizeof(void *) will be
true. Certainly not a big deal at this stage, but thought you'd be interested
none the less.

  Regards,

  Tom

--
Tom Gall - PowerPC Linux Team    "Where's the ka-boom? There was
Linux Technology Center           supposed to be an earth
(w) tom_gall@vnet.ibm.com         shattering ka-boom!"
(w) 507-253-4558                 -- Marvin Martian
(h) tgall@uswest.net
http://oss.software.ibm.com/developerworks/opensource/linux

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: diff to tonight's kaffe cvs tree to work on ppc
  2000-07-25 13:33   ` tom_gall
@ 2000-07-25 14:03     ` Kevin B. Hendricks
  2000-07-25 14:31       ` tom_gall
  0 siblings, 1 reply; 7+ messages in thread
From: Kevin B. Hendricks @ 2000-07-25 14:03 UTC (permalink / raw)
  To: tom_gall; +Cc: linuxppc-dev


Hi Tom,

Good to hear from you again!

>   This is only true as far as the 64 bit systems running on the 32 bit kernel,
> which is all there is at the moment.

I am confused.  Which of the following is true on a 64 bit system running on a
32 bit kernel?

A).  sizeof(unsigned int) > sizeof(void *)

or

B). sizeof(unsigned int) < sizeof(void *)

If A) is true, then my stack alignment macro will still work.  If B) is true, I
am in trouble.

>   Work has started on the 64 bit PowerPC Linux kernel, if Kaffe is compiled as a
> 64 bit app for that kernel then sizeof(unsigned long) = sizeof(void *) will be
> true. Certainly not a big deal at this stage, but thought you'd be interested
> none the less.

Sounds good!  When IBM is ready to start giving 64bit systems to help
developers, let me know! ;-)

Take care,

Kevin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: diff to tonight's kaffe cvs tree to work on ppc
  2000-07-25 14:03     ` Kevin B. Hendricks
@ 2000-07-25 14:31       ` tom_gall
  0 siblings, 0 replies; 7+ messages in thread
From: tom_gall @ 2000-07-25 14:31 UTC (permalink / raw)
  To: Kevin B. Hendricks; +Cc: linuxppc-dev


"Kevin B. Hendricks" wrote:
>
> Hi Tom,
>
> Good to hear from you again!

Hi Kevin!

  Good to see you too!

> >   This is only true as far as the 64 bit systems running on the 32 bit kernel,
> > which is all there is at the moment.
>
> I am confused.  Which of the following is true on a 64 bit system running on a
> 32 bit kernel?
>
> A).  sizeof(unsigned int) > sizeof(void *)
>
> or
>
> B). sizeof(unsigned int) < sizeof(void *)

B is true. On the 64 bit kernel int is 32, long is 64, void * is 64.

> If A) is true, then my stack alignment macro will still work.  If B) is true, I
> am in trouble.

I wouldn't say you are in trouble. We're going to try to put in 32 bit binary
compatibility so current 32 bit apps should run on the 64 bit kernel without a
recompile. I think there's only potential trouble for someone who would
recompile Kaffe for the 64 bit kernel... but that doesn't exactly quite exist
yet...

> >   Work has started on the 64 bit PowerPC Linux kernel, if Kaffe is compiled as a
> > 64 bit app for that kernel then sizeof(unsigned long) = sizeof(void *) will be
> > true. Certainly not a big deal at this stage, but thought you'd be interested
> > none the less.
>
> Sounds good!  When IBM is ready to start giving 64bit systems to help
> developers, let me know! ;-)

Actually this sort of thing is starting to happen. While I can't promise
machines, it is possible to get a few out there here and there....

Regards,

Tom

--
Tom Gall - PowerPC Linux Team    "Where's the ka-boom? There was
Linux Technology Center           supposed to be an earth
(w) tom_gall@vnet.ibm.com         shattering ka-boom!"
(w) 507-253-4558                 -- Marvin Martian
(h) tgall@uswest.net
http://oss.software.ibm.com/developerworks/opensource/linux

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: diff to tonight's kaffe cvs tree to work on ppc
  2000-07-25 13:13 ` Kevin B. Hendricks
  2000-07-25 13:33   ` tom_gall
@ 2000-07-25 17:22   ` Kevin B. Hendricks
  2000-07-25 18:42     ` Geert Uytterhoeven
  1 sibling, 1 reply; 7+ messages in thread
From: Kevin B. Hendricks @ 2000-07-25 17:22 UTC (permalink / raw)
  To: Godmar Back, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 309 bytes --]

Hi Godmar,

Will you you replace the kaffe_cleanups.patch I just sent you with the slightly
revised one attached.

After some discussions with Tom Gall (of IBM for Linux and 64bit ppc and Linux),
it would be better to change the unsigned int types I used in the align with
unsigned long.

Thanks again,

Kevin

[-- Attachment #2: kaffe_cleanups.rev2.patch.gz --]
[-- Type: application/x-gzip, Size: 555 bytes --]

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

* Re: diff to tonight's kaffe cvs tree to work on ppc
  2000-07-25 17:22   ` Kevin B. Hendricks
@ 2000-07-25 18:42     ` Geert Uytterhoeven
  0 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2000-07-25 18:42 UTC (permalink / raw)
  To: Kevin B. Hendricks; +Cc: Godmar Back, linuxppc-dev


On Tue, 25 Jul 2000, Kevin B. Hendricks wrote:
> Will you you replace the kaffe_cleanups.patch I just sent you with the slightly
> revised one attached.
>
> After some discussions with Tom Gall (of IBM for Linux and 64bit ppc and Linux),
> it would be better to change the unsigned int types I used in the align with
> unsigned long.

Which has been a general remark since ages (the first 64-bit Linux port (AXP)
was started in 1995): _never_ put pointers in an int, use long.

To catch more bugs, use SPARC64: it is big endian and 64-bit. Or better, use
64-bit PPC when available, since it also has chars that are unsigned by
default.

So far for the 3 most occurring portability problems with Linux.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2000-07-25 18:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-25  2:42 diff to tonight's kaffe cvs tree to work on ppc Kevin B. Hendricks
     [not found] <200007250345.VAA22028@faith.cs.utah.edu>
2000-07-25 13:13 ` Kevin B. Hendricks
2000-07-25 13:33   ` tom_gall
2000-07-25 14:03     ` Kevin B. Hendricks
2000-07-25 14:31       ` tom_gall
2000-07-25 17:22   ` Kevin B. Hendricks
2000-07-25 18:42     ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).