1 | /* $Id: tstProg-2.c 23 2007-01-15 14:08:28Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VMM - Test program no.2.
|
---|
4 | *
|
---|
5 | * This program will loop for ever constantly checking its state.
|
---|
6 | */
|
---|
7 |
|
---|
8 | /*
|
---|
9 | * Copyright (C) 2006 InnoTek Systemberatung GmbH
|
---|
10 | *
|
---|
11 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
12 | * available from http://www.virtualbox.org. This file is free software;
|
---|
13 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
14 | * General Public License as published by the Free Software Foundation,
|
---|
15 | * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
16 | * distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
17 | * be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
18 | *
|
---|
19 | * If you received this file as part of a commercial VirtualBox
|
---|
20 | * distribution, then only the terms of your commercial VirtualBox
|
---|
21 | * license agreement apply instead of the previous paragraph.
|
---|
22 | */
|
---|
23 |
|
---|
24 | /*******************************************************************************
|
---|
25 | * Header Files *
|
---|
26 | *******************************************************************************/
|
---|
27 | #include "tstHelp.h"
|
---|
28 | #include <stdio.h>
|
---|
29 |
|
---|
30 | DECLASM(int) tstProg2ForeverAsm(uint32_t *pEflags1, uint32_t *pEflags2);
|
---|
31 |
|
---|
32 | CPUMCTX ctx1;
|
---|
33 | CPUMCTX ctx2;
|
---|
34 |
|
---|
35 |
|
---|
36 | int main(int argc, char **argv)
|
---|
37 | {
|
---|
38 | int i;
|
---|
39 | uint32_t eflags1, eflags2;
|
---|
40 |
|
---|
41 | /*
|
---|
42 | * Dump input and name and such.
|
---|
43 | */
|
---|
44 | printf("*** tstProg-2\n");
|
---|
45 | printf("%d Arguments:\n", argc);
|
---|
46 | for (i = 0; i < argc; i++)
|
---|
47 | printf("%d: %s\n", i, argv[i]);
|
---|
48 |
|
---|
49 | /*
|
---|
50 | * This test program loops for ever doing 'nop'.
|
---|
51 | */
|
---|
52 | eflags1 = 0;
|
---|
53 | eflags2 = 0;
|
---|
54 | i = tstProg2ForeverAsm(&eflags1, &eflags2);
|
---|
55 | printf("eflags1=%#x eflags2=%#x i=%d\n", eflags1, eflags2, i);
|
---|
56 | return 1;
|
---|
57 | }
|
---|