view 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
line source
1 #include <stdio.h>
2 #include <unistd.h>
4 int main(void) {
5 sleep(2);
6 printf("Hello, world!\n");
7 return 0;
8 }