Message-ID: <2ff1a98a0803280811n702cf80ble01c121959bbcf21@domain.hid> Date: Fri, 28 Mar 2008 16:11:53 +0100 From: "Gilles Chanteperdrix" In-Reply-To: <47ECBCAA.50701@domain.hid> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47ECBCAA.50701@domain.hid> Subject: Re: [Xenomai-core] Porting Ipipe/Adeos patch to new arm9 board List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Neil Armstrong Cc: xenomai@xenomai.org On Fri, Mar 28, 2008 at 10:38 AM, Neil Armstrong wrote: > Hi, > > I need to port the actual ipipe 2.6.24 patch for a new arm926ej-s based > board for my company. > I followed the wiki's howto and helped myself with the integrator and > the s3c24xx patches. > The Soc has 3 decrementers, the arm core is running at 144MHz and the > timers has a 256 ticks prescaler (we need 563 ticks to get 1ms). > > I patched the kernel with the arm1 patch (from the ARM website), the > board non-rt patch enabling serial and the macb ethernet controller and > finnally tried to apply the ipipe arm patch and resolving failures. At first sight, you call spin_lock_irqsave in __ipipe_mach_set_dec. This is illegal, __ipipe_mach_set_dec may (and will) be called from real-time context, you should be using the _hw variants. I do not know if it is what causes the oops, but it would cause an oops later. -- Gilles