[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Remove the test functions from HVM highmem 32-bit BIOS.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxxx
# Date 1169829578 0
# Node ID edbff1762a550277be45d1a65798203e05dd662f
# Parent  c07326324f8dea5b60e6a85383a562b4b12d1d9d
Remove the test functions from HVM highmem 32-bit BIOS.
Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
---
 tools/firmware/rombios/32bit/32bitbios.c |   24 -----------
 tools/firmware/rombios/32bitgateway.c    |   67 -------------------------------
 tools/firmware/rombios/32bitprotos.h     |   36 ++++++----------
 tools/firmware/rombios/rombios.c         |    1 
 4 files changed, 14 insertions(+), 114 deletions(-)

diff -r c07326324f8d -r edbff1762a55 tools/firmware/rombios/32bit/32bitbios.c
--- a/tools/firmware/rombios/32bit/32bitbios.c  Fri Jan 26 16:38:32 2007 +0000
+++ b/tools/firmware/rombios/32bit/32bitbios.c  Fri Jan 26 16:39:38 2007 +0000
@@ -23,26 +23,6 @@
 #include "jumptable.h"
 #include "32bitprotos.h"
 
-/* same prototypes as in the 16bit BIOS */
-Bit32u multiply(Bit32u a, Bit32u b)
-{
-       return a*b;
-}
-
-Bit32u add(Bit32u a, Bit32u b)
-{
-       return a+b;
-}
-
-static Bit32u stat_a = 0x1;
-Bit32u set_static(Bit32u a)
-{
-       Bit32u _a = stat_a;
-       stat_a = a;
-       return _a;
-}
-
-
 /*
    the jumptable that will be copied into the rombios in the 0xf000 segment
    for every function that is to be called from the lower BIOS, make an entry
@@ -51,10 +31,6 @@ Bit32u set_static(Bit32u a)
 #define TABLE_ENTRY(idx, func) [idx] = (uint32_t)func
 uint32_t jumptable[IDX_LAST+1] __attribute__((section 
(JUMPTABLE_SECTION_NAME))) =
 {
-       TABLE_ENTRY(IDX_MULTIPLY   , multiply),
-       TABLE_ENTRY(IDX_ADD        , add),
-       TABLE_ENTRY(IDX_SET_STATIC , set_static),
-
        TABLE_ENTRY(IDX_TCPA_ACPI_INIT, tcpa_acpi_init),
        TABLE_ENTRY(IDX_TCPA_EXTEND_ACPI_LOG, tcpa_extend_acpi_log),
 
diff -r c07326324f8d -r edbff1762a55 tools/firmware/rombios/32bitgateway.c
--- a/tools/firmware/rombios/32bitgateway.c     Fri Jan 26 16:38:32 2007 +0000
+++ b/tools/firmware/rombios/32bitgateway.c     Fri Jan 26 16:39:38 2007 +0000
@@ -418,71 +418,4 @@ ASM_END
 #include "32bitprotos.h"
 #include "32bitgateway.h"
 
-/********************************************************************
-  Collection of stub functions for functions executed in 32bit space
- *******************************************************************/
-
-Bit32u multiply(a, b) /* for testing */
-   Bit32u a;
-   Bit32u b;
-{
-       ASM_START
-       DoUpcall IDX_MULTIPLY
-       ASM_END
-}
-
-Bit32u add(a, b) /* for testing */
-   Bit32u a;
-   Bit32u b;
-{
-       ASM_START
-       DoUpcall IDX_ADD
-       ASM_END
-}
-
-Bit32u set_static(a, b) /* for testing */
-   Bit32u a;
-   Bit32u b;
-{
-       ASM_START
-       DoUpcall IDX_SET_STATIC
-       ASM_END
-}
-
-/* a function to test the gateway */
-void
-test_gateway()
-{
-       Bit32u res;
-       Bit16u err = 0;
-
-       printf("32bit gateway ");
-       res = multiply(11111L,222L);
-       if (err = 0 && res != 11111L * 222L) {
-               printf("not working correctly: multiply\n");
-               err = 1;
-       }
-
-       res = add(111111L, 222222L);
-       if (err = 0 && res != 111111L + 222222L) {
-               printf("not working correctly: add\n");
-               err = 1;
-       }
-
-       res = set_static(0x12345678L);
-       if (err = 0 && res != 0x1L) {
-               printf("not working correctly: set_static (1)\n");
-               err = 1;
-       }
-       res = set_static(0x11111111L);
-       if (err = 0 && res != 0x12345678L) {
-               printf("not working correctly: set_static (2)\n");
-               err = 1;
-       }
-
-       if (err == 0) {
-               printf("working correctly\n");
-       }
-}
-
 #include "tcgbios.c"
diff -r c07326324f8d -r edbff1762a55 tools/firmware/rombios/32bitprotos.h
--- a/tools/firmware/rombios/32bitprotos.h      Fri Jan 26 16:38:32 2007 +0000
+++ b/tools/firmware/rombios/32bitprotos.h      Fri Jan 26 16:39:38 2007 +0000
@@ -5,25 +5,21 @@
 /* shared include file for bcc and gcc */
 
 /* bcc does not like 'enum' */
-#define IDX_MULTIPLY                       0
-#define IDX_ADD                            1
-#define IDX_SET_STATIC                     2
+#define IDX_TCGINTERRUPTHANDLER            0
+#define IDX_TCPA_ACPI_INIT                 1
+#define IDX_TCPA_EXTEND_ACPI_LOG           2
+#define IDX_TCPA_CALLING_INT19H            3
+#define IDX_TCPA_RETURNED_INT19H           4
+#define IDX_TCPA_ADD_EVENT_SEPARATORS      5
+#define IDX_TCPA_WAKE_EVENT                6
+#define IDX_TCPA_ADD_BOOTDEVICE            7
+#define IDX_TCPA_START_OPTION_ROM_SCAN     8
+#define IDX_TCPA_OPTION_ROM                9
+#define IDX_TCPA_IPL                       10
+#define IDX_TCPA_INITIALIZE_TPM            11
+#define IDX_TCPA_MEASURE_POST              12
 
-#define IDX_TCGINTERRUPTHANDLER            3
-#define IDX_TCPA_ACPI_INIT                 4
-#define IDX_TCPA_EXTEND_ACPI_LOG           5
-#define IDX_TCPA_CALLING_INT19H            6
-#define IDX_TCPA_RETURNED_INT19H           7
-#define IDX_TCPA_ADD_EVENT_SEPARATORS      8
-#define IDX_TCPA_WAKE_EVENT                9
-#define IDX_TCPA_ADD_BOOTDEVICE            10
-#define IDX_TCPA_START_OPTION_ROM_SCAN     11
-#define IDX_TCPA_OPTION_ROM                12
-#define IDX_TCPA_IPL                       13
-#define IDX_TCPA_INITIALIZE_TPM            14
-#define IDX_TCPA_MEASURE_POST              15
-
-#define IDX_LAST                           16 /* keep last! */
+#define IDX_LAST                           13 /* keep last! */
 
 
 #ifdef GCC_PROTOS
@@ -32,10 +28,6 @@
   /* bcc doesn't want any parameter types in prototypes */
   #define PARMS(x...)
 #endif
-
-Bit32u multiply( PARMS(Bit32u a, Bit32u b) );
-Bit32u add( PARMS(Bit32u a, Bit32u b) );
-Bit32u set_static( PARMS(Bit32u) );
 
 Bit32u TCGInterruptHandler( PARMS(pushad_regs_t *regs, Bit32u esds, Bit32u 
flags_ptr));
 
diff -r c07326324f8d -r edbff1762a55 tools/firmware/rombios/rombios.c
--- a/tools/firmware/rombios/rombios.c  Fri Jan 26 16:38:32 2007 +0000
+++ b/tools/firmware/rombios/rombios.c  Fri Jan 26 16:39:38 2007 +0000
@@ -1860,7 +1860,6 @@ print_bios_banner()
   printf("TCG-enabled BIOS.\n");
 #endif
   printf("\n");
-  test_gateway();
 }
 
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.