From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 24 Jul 2002 04:04:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 24 Jul 2002 04:04:22 -0400 Received: from mx1.elte.hu ([157.181.1.137]:909 "HELO mx1.elte.hu") by vger.kernel.org with SMTP id ; Wed, 24 Jul 2002 04:04:21 -0400 Date: Wed, 24 Jul 2002 10:06:28 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: William Lee Irwin III Cc: Andrew Morton , Robert Love , george anzinger , Zwane Mwaikambo , Trond Myklebust , Linus Torvalds , Linux Kernel Subject: Re: [patch] irqlock patch -G3. [was Re: odd memory corruptionin2.5.27?] In-Reply-To: <20020724080329.GB25038@holomorphy.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Jul 2002, William Lee Irwin III wrote: > Since we're on the subject of preempt_schedule() being done at > inappropriate times, I'm seeing it being called and panicking the > machine before the per-cpu GDT, IDT, TSS, and LDT are loaded in > cpu_init() and suspect that may be a wee bit too early to be sane. i've fixed this in my tree: the init thread needs to start up with a nonzero preempt_count, and schedule_init() sets it to 0. [schedule_init() is the point after we can schedule.] Ingo