]> xenbits.xensource.com Git - people/pauldu/mini-os.git/commit
mini-os: correct first free pfn
authorJuergen Gross <jgross@suse.com>
Tue, 12 Jul 2016 11:43:54 +0000 (13:43 +0200)
committerJuergen Gross <jgross@suse.com>
Thu, 11 Aug 2016 11:03:43 +0000 (13:03 +0200)
commitcc52fbe9ab5f1042c514f8b148069725ecaece8b
tree8c61c77fdf8c5135380d138af1308f51ff9810ad
parentfbe3767c03cab5de8566a4d9978dfc76320f4a4e
mini-os: correct first free pfn

The first free pfn available for allocation is calculated by adding the
number of page table frames to the pfn of the first page table and
then the magic number 3 to account for start info page et al.

As the start info page, xenstore page and console page are allocated
_before_ the page tables leaving room for these pages behind the page
tables makes no sense.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
arch/x86/mm.c