diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/mvdm/softpc.new/base/bios/build_id.c | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/mvdm/softpc.new/base/bios/build_id.c')
-rw-r--r-- | private/mvdm/softpc.new/base/bios/build_id.c | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/private/mvdm/softpc.new/base/bios/build_id.c b/private/mvdm/softpc.new/base/bios/build_id.c new file mode 100644 index 000000000..9fc778ba4 --- /dev/null +++ b/private/mvdm/softpc.new/base/bios/build_id.c @@ -0,0 +1,77 @@ +/*[ + * ======================================================================= + * + * Name: build_id.c + * + * Derived from: (original) + * + * Author: John Box + * + * Created on: May 26th 1994 + * + * SccsID: @(#)build_id.c 1.2 07/18/94 + * + * Coding Stds: 2.2 + * + * Purpose: This file contains the routine required for returning + * Build ID Nos. + * + * + * (c)Copyright Insignia Solutions Ltd., 1990. All rights reserved. + * + * ======================================================================= +]*/ +#include "insignia.h" +#include "host_def.h" +#include "xt.h" +#include CpuH +#include "sas.h" + +#include "build_id.h" +enum +{ + BASE_MODULE = 1 +}; +/* + * The following module names must be terminated by a '$'. The Dos print utility + * recognises this as end of string. The length should include the '$'. + */ +LOCAL char base_name[] = {"Base$"}; +#define base_name_len 5 +/*( +=======================================Get_build_id ============================ +PURPOSE: + Returns a modules' Build IDs + +INPUT: + Module No. passed in AL. + +OUTPUT: + Module name written to DS:CX + The BUILD ID is returned in BX in the form YMMDD + (See build_id.h for details) + Next Module No. returned in AH. ( 0 if AL is the last one ). + 0 returned in AL to indicate no errors. + (Note: A SoftPC that doesn't support this Bop will leave AL set to the + INPUT module Number, thus indicating an error in the call ). +================================================================================ +)*/ +GLOBAL void Get_build_id IFN0( ) + +{ + +/* + * The name of the module needs to be written to Intel space at DS:CX + */ + + switch( getAL() ) + { + case BASE_MODULE: + write_intel_byte_string( getDS(), getCX(), (host_addr)base_name, base_name_len ); + setBX( BUILD_ID_CODE ); + setAX( 0 ); + break; + } + return; +} + |