]> git.neil.brown.name Git - history.git/commit
[PATCH] ppc64: fix some issues with mem_reserve
authorAnton Blanchard <anton@samba.org>
Sat, 16 Oct 2004 08:03:14 +0000 (01:03 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Oct 2004 08:03:14 +0000 (01:03 -0700)
commit3e306fcdfa8d93d9f0abb2b7a0469496e96d507c
treec872f5bf076e3e96d6c24e331a20b0ddd66a0421
parent722d9361ce52a0d6972e17fa5ed4b5a849197486
[PATCH] ppc64: fix some issues with mem_reserve

I found a couple of issues with reserve_mem:

- If we try and mem_reserve something of zero length, everything
  reserved after it would get ignored. This is because early_reserve_mem
  sees a zero length as a terminator.
- The code rounded the top down instead of up.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/prom_init.c