| To: | KokHow.Teh@infineon.com |
|---|---|
| Subject: | Re: linux-2.6.20 setjmp/longjmp OR how to contain bus-error for non-existing PCI device during PCI device scan? |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Tue, 17 Jul 2007 19:02:47 +0100 |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <31E09F73562D7A4D82119D7F6C172986019B76D7@sinse303.ap.infineon.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <31E09F73562D7A4D82119D7F6C172986019B76D7@sinse303.ap.infineon.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.14 (2007-02-12) |
On Tue, Jul 17, 2007 at 07:03:34PM +0800, KokHow.Teh@infineon.com wrote: > I am using linux-2.6.20 on MIPS24KE and I need to know what is the best > way to contain bus error during PCI bus scan process for non-existing device? > I thought of setjmp/longjmp but unfortunately, I have `googled` and `find` > the whole kernel source tree there is no such support in the kernel for MIPS > architecture. Any insight is appreciated. Welcome to the kernel, there are no setjmp / longjmp. You can can try to use the functions from <asm/paccess.h> to protect your memory accesses against bus error exceptions. Note this won't work for cases where the bus error exceptions is imprecise because then the EPC for the exception isn't guranteed to have the proper value. The get_dbe / put_dbe functions are used just like get_user / put_user from <linux/uaccess.h> except that those are meant to protect against TLB exceptions. Or just temporarily disable the bus error in your PCI config space accessors. Ralf |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH][MIPS] remove unused gfx.h, Yoichi Yuasa |
|---|---|
| Next by Date: | Re: [PATCH][MIPS] remove unused ds1216.h, Ralf Baechle |
| Previous by Thread: | linux-2.6.20 setjmp/longjmp OR how to contain bus-error for non-existing PCI device during PCI device scan?, KokHow.Teh |
| Next by Thread: | RE: linux-2.6.20 setjmp/longjmp OR how to contain bus-error fornon-existing PCI device during PCI device scan?, KokHow.Teh |
| Indexes: | [Date] [Thread] [Top] [All Lists] |