ia64/xen-unstable

annotate stubdom/c/main.c @ 19244:e5c696aaf2a6

x86, hvm: gcc44 build fix.

Broken constrain in inline asm. Bytewise access works with a, b, c, d
registers only, thus "r" is wrong, it must be "q". gcc 4.4 tries to
use the si register, which doesn't work and thus fails the build.

From: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sun Mar 01 14:58:07 2009 +0000 (2009-03-01)
parents 460f72ca97b6
children
rev   line source
keir@17278 1 #include <stdio.h>
keir@17744 2 #include <unistd.h>
keir@17744 3
keir@17278 4 int main(void) {
keir@17278 5 sleep(2);
keir@17278 6 printf("Hello, world!\n");
keir@17278 7 return 0;
keir@17278 8 }