X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/1c79356b52d46aa6b508fb032f5ae709b1f2897b..90556fb8d47e7b68fd301dde9dbb3ae7495cf323:/bsd/dev/ppc/unix_startup.c diff --git a/bsd/dev/ppc/unix_startup.c b/bsd/dev/ppc/unix_startup.c index 32ba91f5c..531a75a0b 100644 --- a/bsd/dev/ppc/unix_startup.c +++ b/bsd/dev/ppc/unix_startup.c @@ -72,7 +72,7 @@ bsd_startupearly() nbuf = 256; if (niobuf == 0) - niobuf = nbuf / 2; + niobuf = nbuf; if (niobuf > 4096) niobuf = 4096; if (niobuf < 128) @@ -109,8 +109,8 @@ bsd_startupearly() extern u_long tcp_recvspace; if ((nmbclusters = ncl) == 0) { - if ((nmbclusters = ((mem_size / 16) / MCLBYTES)) > 8192) - nmbclusters = 8192; + if ((nmbclusters = ((mem_size / 16) / MCLBYTES)) > 16384) + nmbclusters = 16384; } if ((scale = nmbclusters / NMBCLUSTERS) > 1) { tcp_sendspace *= scale; @@ -149,3 +149,14 @@ bsd_bufferinit() bufinit(); } +void +md_prepare_for_shutdown(int paniced, int howto, char * command) +{ + extern void IOSystemShutdownNotification(); + + /* + * Temporary hack to notify the power management root domain + * that the system will shut down. + */ + IOSystemShutdownNotification(); +}