PERFORCE change 111019 for review

Todd Miller millert at FreeBSD.org
Mon Dec 4 08:45:54 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=111019

Change 111019 by millert at millert_g5tower on 2006/12/04 16:35:12

	Revert to vendor versions.  Changes were from Panther and
	are not needed any longer.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/osfmk/ppc/ppc_init.c#3 edit
.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/pexpert/pexpert/ppc/boot.h#3 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/osfmk/ppc/ppc_init.c#3 (text+ko) ====

@@ -30,12 +30,6 @@
 /*
  * @OSF_COPYRIGHT@
  */
-/*
- * NOTICE: This file was modified by McAfee Research in 2004 to introduce
- * support for mandatory and extensible security protections.  This notice
- * is included in support of clause 2.2 (b) of the Apple Public License,
- * Version 2.0.
- */
 
 #include <debug.h>
 #include <mach_ldebug.h>
@@ -144,30 +138,6 @@
 void	ppc_init_cpu(
 			struct per_proc_info *proc_info);
 
-static int    *boot_exdata = 0;
-static size_t  boot_exdatalen = 0;
-
-int preload_find_data (const char *name, size_t *size, void **ptr)
-{
-  size_t  rlen = boot_exdatalen;
-  int    *exp = boot_exdata;
-
-  while (rlen > 0) {
-    size_t esize = (exp[0] + sizeof (int) * 5 + 0xfff) & ~0xfff;
-    if (strcmp ((char *) (exp + 1), name)) {
-      rlen -= esize;
-      exp = (int *) (((char*)exp) + esize);
-    }
-    else {
-      *size = exp[0];
-      *ptr = exp + 5;
-      return 1;
-    }
-  }
-
-  return 0;
-}
-
 /*
  *		Routine:		ppc_init
  *		Function:
@@ -309,10 +279,7 @@
 			}
 		}
 	}
-
-	boot_exdata = args->exdata;
-	boot_exdatalen = args->exdatalen;
-
+		
 	machine_startup(args);
 }
 

==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/pexpert/pexpert/ppc/boot.h#3 (text+ko) ====

@@ -30,12 +30,6 @@
 /*
  * @OSF_COPYRIGHT@
  */
-/*
- * NOTICE: This file was modified by McAfee Research in 2004 to introduce
- * support for mandatory and extensible security protections.  This notice
- * is included in support of clause 2.2 (b) of the Apple Public License,
- * Version 2.0.
- */
 
 #ifndef _PEXPERT_PPC_BOOT_H_
 #define _PEXPERT_PPC_BOOT_H_
@@ -71,7 +65,7 @@
 
 /* Boot argument structure - passed into Mach kernel at boot time.
  */
-#define kBootArgsRevision		2
+#define kBootArgsRevision		1
 #define kBootArgsVersion1		1
 #define kBootArgsVersion2		2
 
@@ -85,8 +79,6 @@
     void		*deviceTreeP;	/* Base of flattened device tree */
     unsigned long	deviceTreeLength;/* Length of flattened tree */
     unsigned long	topOfKernelData;/* Highest address used in kernel data area */
-  void                  *exdata;
-  unsigned long         exdatalen;
 } boot_args;
 
 extern boot_args passed_args;


More information about the trustedbsd-cvs mailing list