]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/dev/ppc/kern_machdep.c
xnu-1456.1.26.tar.gz
[apple/xnu.git] / bsd / dev / ppc / kern_machdep.c
index 833069e9cac7760e21a2447b07e42bd42c97a179..1f45bd1311a6fff2f4d07b0b94565f0de93ce097 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
@@ -43,6 +43,9 @@
 #include       <kern/cpu_number.h>
 #include       <machine/exec.h>
 
+boolean_t kernacc(off_t, size_t );
+
+
 /*
  * Routine: grade_binary()
  *
@@ -226,6 +229,8 @@ grade_binary(cpu_type_t exectype, cpu_subtype_t execsubtype)
        /* NOTREACHED */
 }
 
+extern vm_map_offset_t kvtophys64(vm_map_offset_t);
+
 boolean_t
 kernacc(
     off_t      start,
@@ -239,7 +244,7 @@ kernacc(
        end = start + len;
        
        while (base < end) {
-               if(kvtophys((vm_offset_t)base) == NULL)
+               if(kvtophys64((vm_map_offset_t)base) == (vm_map_offset_t)0)
                        return(FALSE);
                base += page_size;
        }   
@@ -250,16 +255,9 @@ kernacc(
 void
 md_prepare_for_shutdown(int paniced, int howto, char * command);
 
-extern void IOSystemShutdownNotification(void);
-
 void
 md_prepare_for_shutdown(__unused int paniced, __unused int howto,
                        __unused char * command)
 {
-
-    /*
-     * Temporary hack to notify the power management root domain
-     * that the system will shut down.
-     */
-    IOSystemShutdownNotification();
+       return;
 }