mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* __pa(vmalloc()) considered harmful?
@ 2002-09-04  1:07 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2002-09-04  1:07 UTC (permalink / raw)
  To: linux-kernel

It sure doesn't make sense to me, but that's effectively what 
elf_kcore_store_hdr does:

	for (m=vmlist; m; m=m->next) {
		[ snip ]
		phdr->p_paddr	= __pa(m->addr);
		[ snip ]
	}

This doesn't actually hurt when __pa(addr) == addr - $SOMETHING, but it
does produce meaningless numbers.

It does hurt when your __pa() is something more complicated and it can
tell that it's being asked to do something stupid.

So what's p_paddr supposed to be, anyway?

				Jeff


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-03 23:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-04  1:07 __pa(vmalloc()) considered harmful? Jeff Dike

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

all inboxes | Powered by JetHome®