All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] stubdom: use TARGET_PAGE_SIZE
@ 2009-07-20 16:13 Christoph Egger
  2009-07-21  9:57 ` Stefano Stabellini
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Egger @ 2009-07-20 16:13 UTC (permalink / raw)
  To: xen-devel, Ian Jackson

[-- Attachment #1: Type: text/plain, Size: 506 bytes --]


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 <Christoph.Egger@amd.com>

-- 
---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

[-- Attachment #2: xen_ioemu_xenfbfront.diff --]
[-- Type: text/x-diff, Size: 360 bytes --]

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);

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] stubdom: use TARGET_PAGE_SIZE
  2009-07-20 16:13 [PATCH] stubdom: use TARGET_PAGE_SIZE Christoph Egger
@ 2009-07-21  9:57 ` Stefano Stabellini
  2009-07-21 15:09   ` Ian Jackson
  0 siblings, 1 reply; 3+ messages in thread
From: Stefano Stabellini @ 2009-07-21  9:57 UTC (permalink / raw)
  To: Christoph Egger; +Cc: Ian, xen-devel@lists.xensource.com, Jackson

> 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);
> 
> On Mon, 20 Jul 2009, Christoph Egger wrote:
> 

I think the correct way to fix this is to substitute all the occurrences
of PAGE_SIZE with XC_PAGE_SIZE in xenfbfront.c.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] stubdom: use TARGET_PAGE_SIZE
  2009-07-21  9:57 ` Stefano Stabellini
@ 2009-07-21 15:09   ` Ian Jackson
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Jackson @ 2009-07-21 15:09 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: Christoph Egger, xen-devel@lists.xensource.com

Stefano Stabellini writes ("Re: [Xen-devel] [PATCH] stubdom: use TARGET_PAGE_SIZE"):
> [Christoph Egger]
> > +#undef PAGE_SIZE
> > +#define PAGE_SIZE TARGET_PAGE_SIZE
> > +#endif
> 
> I think the correct way to fix this is to substitute all the occurrences
> of PAGE_SIZE with XC_PAGE_SIZE in xenfbfront.c.

Thanks for the suggestion.  I agree so I've done that.

Ian.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-21 15:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-20 16:13 [PATCH] stubdom: use TARGET_PAGE_SIZE Christoph Egger
2009-07-21  9:57 ` Stefano Stabellini
2009-07-21 15:09   ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.