]> git.karo-electronics.de Git - karo-tx-linux.git/commit
parisc: fix kernel BUG at arch/parisc/include/asm/mmzone.h:50 (part 2)
authorHelge Deller <deller@gmx.de>
Wed, 5 Jun 2013 20:50:01 +0000 (20:50 +0000)
committerHelge Deller <deller@gmx.de>
Wed, 5 Jun 2013 22:21:57 +0000 (00:21 +0200)
commitf1a86f7f3b96676c0172364db9843b4c40471e7e
treec222dee5e65011087607e06d4c53a30f5777d82c
parent89507470ed109c2d1e9dabec139e3aae30b1bb47
parisc: fix kernel BUG at arch/parisc/include/asm/mmzone.h:50 (part 2)

Make sure that we really return -1 (instead of 0x00ff) as node id for
page frame numbers which are not physically available.

This finally fixes the kernel panic when running
cat /proc/kpageflags /proc/kpagecount.

Theoretically this patch now limits the number of physical memory ranges
to 127 instead of 254, but currently we have MAX_PHYSMEM_RANGES
hardcoded to 8 which is sufficient for all existing parisc machines.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/mmzone.h
arch/parisc/mm/init.c