Re: Basic Kernel Extension Programming questions
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.duke.edu; s=mail; t=1321633665; bh=YbttjuKexpQRKQCf1Zqug7iDxe3El2tznp3+TO322cw=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=uOuB2eZeBdeDxqgpO19Hax5Qjczvg+CSRMdoaLDHzyjUnHdCXhoUdRo9WjWFQYY3k AxLx+OWKzOH9anhdaZozTsS13bU8PPrKUFFru/KNkpSygBS1z7edscQY22BFzhG8JV JFbt0CELI5CH2F4xCo4wthWdhnK66eK7xXN9uQH21pDNauXwPpHhhk7eKZM9Ay5Wcp 77ide5dZUfI8s4b93gqqKpBUNz8RN8sXk7sEBtAtIkutMbhuzrOfdqFNWzwRiMXorM xPebDWNuLbT+geNJTI9ojBVUcSVaJEeB11tvZGOcmux8SCZj/i2LxKQ6S/7rSLrdUv jOUPjdIdCjiFA== User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 What I am attempting to do now is to see if I can loop over all 8gb of physical memory for ( x = 0; x < 1024 * 1024 * 1024 * 8; x++ ) { descriptor = IOMemoryDescriptor::withPhysicalAddress( x, 10, kIODirectionOut ); descriptor->prepare( kIODirectionOut ); descriptor->readBytes( 0, buffer, 10 ); descriptor->complete(); descriptor->release(); } You will almost certainly still run into problems, but reading in 10 byte chunks is almost certainly causing you more problems, since you're going to be reading odd lengths. Try reading 4 or 8 bytes. I'd say the odds are good that you'll still crash, but who knows.. Drew _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Andrew Gallatin