Commit a042f921 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Eicon isdn driver hardware access fix

From: Armin <armin@melware.de>

It fixes access to hardware memory of wrong size and therefore removes a
compiler warning.  The hardware trap variable must be read as 32bit value.
parent 77bfc31e
...@@ -61,7 +61,7 @@ static void bri_cpu_trapped (PISDN_ADAPTER IoAdapter) { ...@@ -61,7 +61,7 @@ static void bri_cpu_trapped (PISDN_ADAPTER IoAdapter) {
/* /*
* check for trapped MIPS 3xxx CPU, dump only exception frame * check for trapped MIPS 3xxx CPU, dump only exception frame
*/ */
if ( READ_WORD(&Xlog[0x80 / sizeof(Xlog[0])]) == 0x99999999 ) if ( READ_DWORD(&Xlog[0x80 / sizeof(Xlog[0])]) == 0x99999999 )
{ {
dump_trap_frame (IoAdapter, &((byte *)Xlog)[0x90]) ; dump_trap_frame (IoAdapter, &((byte *)Xlog)[0x90]) ;
IoAdapter->trapped = 1 ; IoAdapter->trapped = 1 ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment