Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > d62a6237612bf4aa60fc9a7b2a2255c1 > files > 1

etherboot-5.4.3-2mdv2008.0.src.rpm

--- etherboot-5.4.0/src/arch/i386/firmware/pcbios/basemem.c.gcc4	2005-02-10 23:43:32.000000000 +0100
+++ etherboot-5.4.0/src/arch/i386/firmware/pcbios/basemem.c	2005-08-30 17:05:43.000000000 +0200
@@ -86,7 +86,7 @@
  * counter.  Returns NULL if memory cannot be allocated.
  */
 
-static void * _allot_base_memory ( size_t size ) 
+void * _allot_base_memory ( size_t size ) 
 {
 	uint16_t size_kb = ( size + 1023 ) >> 10;
 	void *ptr = NULL;
@@ -156,7 +156,7 @@
  * API to be a feature! :-)
  */
 
-static void _forget_base_memory ( void *ptr, size_t size ) 
+void _forget_base_memory ( void *ptr, size_t size ) 
 {
 	uint16_t remainder = virt_to_phys(ptr) & 1023;
 	uint16_t size_kb = ( size + remainder + 1023 ) >> 10;
@@ -221,7 +221,7 @@
  * entity (if we can detect that it has done so) so that we get the
  * chance to free up our own blocks.
  */
-static void free_unused_base_memory ( void ) {
+void free_unused_base_memory ( void ) {
 	free_base_memory_block_t *free_block = NULL;
 
 	/* Try to release memory back to the BIOS.  Free all
--- etherboot-5.4.0/src/drivers/net/natsemi.c.gcc4	2004-06-01 15:14:04.000000000 +0200
+++ etherboot-5.4.0/src/drivers/net/natsemi.c	2005-08-30 17:05:43.000000000 +0200
@@ -646,7 +646,7 @@
 
     to = currticks() + TX_TIMEOUT;
 
-    while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
+    while ((tx_status=txd.cmdsts & OWN) && (currticks() < to))
         /* wait */ ;
 
     if (currticks() >= to) {
--- etherboot-5.4.0/src/drivers/net/sis900.c.gcc4	2005-08-30 17:14:55.000000000 +0200
+++ etherboot-5.4.0/src/drivers/net/sis900.c	2005-08-30 17:15:24.000000000 +0200
@@ -1132,7 +1132,7 @@
 
     to = currticks() + TX_TIMEOUT;
 
-    while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
+    while ((tx_status=txd.cmdsts & OWN) && (currticks() < to))
         /* wait */ ;
 
     if (currticks() >= to) {