Re: Porting linux to Stellaris Cortex-M3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

2011/9/27 Catalin Marinas <catalin.marinas@xxxxxxx>:
> On Tue, Sep 27, 2011 at 10:29:06AM +0100, Russell King - ARM Linux wrote:
>> On Mon, Sep 26, 2011 at 05:19:39PM -0300, Fernando Endo wrote:
>> > - BUG: scheduling while atomic: init/1/0xffff000a
>> The last figure is the preempt count.  This is made up from:
>>  * - bits 0-7 are the preemption count (max preemption depth: 256)
>>  * - bits 8-15 are the softirq count (max # of softirqs: 256)
>>  * - bits 16-25 are the hardirq count (max # of nested hardirqs: 1024)
>>  * - bit 26 is the NMI_MASK
>>  * - bit 28 is the PREEMPT_ACTIVE flag
>> That seems to be saying that preemption has been disabled 10 times.
>> The upper 16-bits being all-ones seems to be rather insane - maybe
>> there's an additional __irq_exit() or irq_exit() call somewhere in
>> one of your code paths.
> Fernando, do you have CONFIG_PREEMPT enabled in your kernel? That's not
> currently possible with my Cortex-M3 port (see the "Exception handling"
> section in the M3 wiki page for an explanation).

I set CONFIG_PREEMPT_NONE after having this bug, my .config is
attached if you want to have a look
Thank you both for the advices, I'll take a look

Fernando Akira Endo

Attachment: config
Description: Binary data

linux-arm-kernel mailing list

[Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [PDAs]     [Linux]     [Linux MIPS]     [Yosemite Campsites]     [Photos]

Add to Google Follow linuxarm on Twitter