From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH] stubdom: use TARGET_PAGE_SIZE Date: Mon, 20 Jul 2009 18:13:46 +0200 Message-ID: <200907201813.47155.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_7eJZK6X6gKreA/v" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, Ian Jackson List-Id: xen-devel@lists.xenproject.org --Boundary-00=_7eJZK6X6gKreA/v Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attached patch makes xenfbfront using TARGET_PAGE_SIZE instead of PAGE_SIZE. Found by build error on NetBSD (PAGE_SIZE isn't defined, but TARGET_PAGE_SIZE is). Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_7eJZK6X6gKreA/v Content-Type: text/x-diff; charset="us-ascii"; name="xen_ioemu_xenfbfront.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_ioemu_xenfbfront.diff" diff --git a/xenfbfront.c b/xenfbfront.c index 32761a5..743c065 100644 --- a/xenfbfront.c +++ b/xenfbfront.c @@ -28,6 +28,11 @@ static DisplayChangeListener *dcl; extern uint32_t vga_ram_size; +#ifdef CONFIG_STUBDOM +#undef PAGE_SIZE +#define PAGE_SIZE TARGET_PAGE_SIZE +#endif + int xenfb_connect_vkbd(const char *path) { kbd_path = strdup(path); --Boundary-00=_7eJZK6X6gKreA/v Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_7eJZK6X6gKreA/v--