From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3B8FDA36.5010206@interactivesi.com> Date: Fri, 31 Aug 2001 13:40:54 -0500 From: Timur Tabi MIME-Version: 1.0 Subject: kernel hangs in 118th call to vmalloc Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: I'm writing a driver for the 2.4.2 kernel. I need to use this kernel because this driver needs to be compatible with a stock Red Hat system. Patches to the kernel are not an option. The purpose of the driver is to locate a device that exists on a specific memory chip. To help find it, I've written this routine: #define CLEAR_BLOCK_SIZE 1048576UL // must be a multiple of 1MB #define CLEAR_BLOCK_COUNT ((PHYSICAL_HOP * 2) / CLEAR_BLOCK_SIZE) void clear_out_memory(void) { void *p[CLEAR_BLOCK_COUNT]; unsigned i; unsigned long size = 0; for (i=0; i