Bad mode in prefetch abort handler detected

來源:互聯網
上載者:User
 

簡單記錄一下,今天在調試休眠代碼時,遇到一個很奇怪的問題,在喚醒過程中,出現了一個沒見過Oops。看樣子是執行了非法操作,CPU進入了異常狀態。 Bad mode in prefetch abort handler detected
Internal error: Oops - bad mode: 0 [#1]
Modules linked in:
CPU: 0
PC is at serial_pxa_resume+0x38/0x58
LR is at uart_resume_port+0x1d8/0x1e4
pc : [<c01186ec>]    lr : [<c0116aec>]    Not tainted
sp : c78c1df0  ip : c78c1de0  fp : c78c1e4c
r10: c79fb7a0  r9 : c78c1f78  r8 : 00000008
r7 : c01ea010  r6 : c0218580  r5 : c0218658  r4 : c023f0a8
r3 : 00000000  r2 : 00000001  r1 : 00000000  r0 : 00000000
Flags: nZCv  IRQs off  FIQs on  Mode UK8_32  Segment user     看代碼都是很正常,沒有做什麼很罕見的操作,不應該有這麼奇怪的錯誤,最後發現,是因為某一路分支路徑上,local_irq_save 和 local_irq_restore沒有配對,使得傳給local_irq_restore的參數不正確。導致CPSR中的處理器模式位的值不正確,於是出現這個錯誤。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.