#pragma module C_TEST_ROUTINES "X-4" // ************************************************************************* // * * // * © Copyright 2005 Hewlett-Packard Development Company, L.P. * // * * // * Confidential computer software. Valid license from HP and/or * // * its subsidiaries required for possession, use, or copying. * // * * // * Consistent with FAR 12.211 and 12.212, Commercial Computer Software, * // * Computer Software Documentation, and Technical Data for Commercial * // * Items are licensed to the U.S. Government under vendor's standard * // * commercial license. * // * * // * Neither HP nor any of its subsidiaries shall be liable for technical * // * or editorial errors or omissions contained herein. The information * // * in this document is provided "as is" without warranty of any kind and * // * is subject to change without notice. The warranties for HP products * // * are set forth in the express limited warranty statements accompanying * // * such products. Nothing herein should be construed as constituting an * // * additional warranty. * // * * // ************************************************************************* // //FACILITY // // XDELTA // //ABSTRACT // // This module contains CUSTOMER DOCUMENTED routines. The // customer can set break on and step in these routines in // order to get used to using XDELTA and SCD. // //ENVIRONMENT // // Kernel mode, any IPL. // // AUTHOR // // Unknown // // CREATED // Unknown // // MODIFIED BY // // X-4 RAB Richard A. Bishop 01-Mar-2005 // Remove all differences between Alpha and IA64 so // that ARCH_DEFS.H isn't needed and the line numbers // match between platforms. Also remove the need for // INTS.H, fix the copyright, and remove some historical // baggage. // // X-3 JEN Jeff E. Nelson 15-Apr-2002 // Added comments and ported to IPF. // Previous comments unknown. /* This is a totally functionless set of routines, used to show off the debug system only. They will be called on the third init by XDELTA itself. The point is merely to have some call frames, some variables, and some C code to debug using the hll debugger. */ #pragma noinline(test_c_code,test_c_code2,test_c_code3) /* We want some global data cells */ volatile __int64 c_test_array[34]; void test_c_code5(int *k) { int i; char str[100]; for(i=0;i<100;i++) str[i]= 'a'; str[99]=0; *k = 9; } void test_c_code4(void) { int i,k; for(k=0;k<1000;k++) { test_c_code5(&i); } return; } int test_c_code3(int subrtnCount) { subrtnCount = subrtnCount - 1; if (subrtnCount != 0) subrtnCount = test_c_code3(subrtnCount); return subrtnCount; } int test_c_code2(__int64 in64,int in32, __int64 test, __int64* pVar) { c_test_array[5] = in64; c_test_array[6] = in32; if (c_test_array[9] > 0) *pVar = (*pVar + c_test_array[17]) & c_test_array[9]; else *pVar = (*pVar + c_test_array[17]); c_test_array[7] = test_c_code3(10); c_test_array[3] = test; return c_test_array[23]; } void test_c_code(void) { int x,y; __int64 x64,y64; x = c_test_array[0]; y = c_test_array[1]; x64 = c_test_array[2]; y64 = c_test_array[3]; c_test_array[14] = test_c_code2(x64+y64,x+y,x64+x,&y64); test_c_code4(); return; }