Subject: Re: evbppc reserved-tlb cleanup
To: Jachym Holecek <freza@dspfpga.com>
From: Simon Burge <simonb@NetBSD.org>
List: port-powerpc
Date: 10/27/2006 21:05:40
Simon Burge wrote:

>         /* Map console just after RAM */
>         /* XXX magic number here!!! */
>         ppc4xx_tlb_reserve(0xef000000, board_data.mem_size, TLB_PG_SIZE,
>             TLB_I | TLB_G);

That "board_data.mem_size" should be something like
"roundup(board_data.mem_size, TLB_PG_SIZE)" so that it works
properly with non-multiple-of-TLB_PG_SIZE RAM sizes.

Simon.