VirtualBox

source: vbox/trunk/src/VBox/VMM/testcase/tstProg-2.c@ 552

Last change on this file since 552 was 23, checked in by vboxsync, 18 years ago

string.h & stdio.h + header cleanups.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
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
30DECLASM(int) tstProg2ForeverAsm(uint32_t *pEflags1, uint32_t *pEflags2);
31
32CPUMCTX ctx1;
33CPUMCTX ctx2;
34
35
36int 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}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette