public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: David Gibson <david@gibson•dropbear.id.au>
To: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom•com>
Cc: Linux/PPC Development <linuxppc-dev@ozlabs•org>
Subject: Re: platform_ops.malloc() vs. realloc()
Date: Thu, 22 Feb 2007 21:25:53 +1100	[thread overview]
Message-ID: <20070222102553.GA11014@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.62.0702221112010.22848@pademelon.sonytel.be>

On Thu, Feb 22, 2007 at 11:14:36AM +0100, Geert Uytterhoeven wrote:
> 
> arch/powerpc/boot/ops.h has:
> 
> | /* Platform specific operations */
> | struct platform_ops {
> |         void    (*fixups)(void);
> |         void    (*image_hdr)(const void *);
> |         void *  (*malloc)(u32 size);
> |         void    (*free)(void *ptr);
> |         void *  (*realloc)(void *ptr, unsigned long size);
> |         void    (*exit)(void);
> | };
> 
> Is there a specific reason why the size parameters of malloc() and realloc()
> differ in type?

Not as far as I'm aware, I believe it's just a wart.  The zImage is
always compiler 32-bit, so they're actually the same thing.  I'm
actually hoping to get rid of malloc() and realloc() at some point.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

  reply	other threads:[~2007-02-22 10:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-22 10:14 platform_ops.malloc() vs. realloc() Geert Uytterhoeven
2007-02-22 10:25 ` David Gibson [this message]
2007-02-22 10:31 ` Segher Boessenkool

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070222102553.GA11014@localhost.localdomain \
    --to=david@gibson$(echo .)dropbear.id.au \
    --cc=Geert.Uytterhoeven@sonycom$(echo .)com \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox