[lkml]   [2002]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject__pa(vmalloc()) considered harmful?
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?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.036 / U:1.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site