Skip to content

Commit 6876649

Browse files
Don't print the DFAR because the variable can move.
The linker doesn't give a consistent address for the value used for the abort test, so check the address but don't print the address.
1 parent 4c451f6 commit 6876649

12 files changed

+0
-20
lines changed

examples/mps3-an536/reference/abt-exception-a32-armv8r-none-eabihf.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ Hello, this is an data abort exception example
22
data abort occurred
33
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0010 Status=0b00001 }
44
DFSR Status: Ok(AlignmentFault)
5-
DFAR (Faulting Address Register): Dfar(536870913)
65
caught unaligned_from_a32
76
caught fault on COUNTER
87
Doing it again
98
data abort occurred
109
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0010 Status=0b00001 }
1110
DFSR Status: Ok(AlignmentFault)
12-
DFAR (Faulting Address Register): Dfar(536870913)
1311
caught unaligned_from_a32
1412
caught fault on COUNTER
1513
Skipping instruction

examples/mps3-an536/reference/abt-exception-t32-armv8r-none-eabihf.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ Hello, this is an data abort exception example
22
data abort occurred
33
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0010 Status=0b00001 }
44
DFSR Status: Ok(AlignmentFault)
5-
DFAR (Faulting Address Register): Dfar(536870913)
65
caught unaligned_from_t32
76
caught fault on COUNTER
87
Doing it again
98
data abort occurred
109
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0010 Status=0b00001 }
1110
DFSR Status: Ok(AlignmentFault)
12-
DFAR (Faulting Address Register): Dfar(536870913)
1311
caught unaligned_from_t32
1412
caught fault on COUNTER
1513
Skipping instruction

examples/mps3-an536/src/bin/abt-exception-a32.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ unsafe extern "C" fn _abort_handler(addr: usize) -> usize {
9393
println!("DFSR (Fault Status Register): {:?}", dfsr);
9494
println!("DFSR Status: {:?}", dfsr.status());
9595
let dfar = Dfar::read();
96-
println!("DFAR (Faulting Address Register): {:?}", dfar);
9796
enable_alignment_check();
9897

9998
// note the fault isn't at the start of the function

examples/mps3-an536/src/bin/abt-exception-t32.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ unsafe extern "C" fn _abort_handler(addr: usize) -> usize {
9393
println!("DFSR (Fault Status Register): {:?}", dfsr);
9494
println!("DFSR Status: {:?}", dfsr.status());
9595
let dfar = Dfar::read();
96-
println!("DFAR (Faulting Address Register): {:?}", dfar);
9796
enable_alignment_check();
9897

9998
// note the fault isn't at the start of the function

examples/versatileab/reference/abt-exception-a32-armv7a-none-eabi.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ Hello, this is an data abort exception example
22
data abort occurred
33
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0000 Status=0b00001 }
44
DFSR Status: Ok(AlignmentFault)
5-
DFAR (Faulting Address Register): Dfar(39853)
65
caught unaligned_from_a32
76
caught fault on COUNTER
87
Doing it again
98
data abort occurred
109
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0000 Status=0b00001 }
1110
DFSR Status: Ok(AlignmentFault)
12-
DFAR (Faulting Address Register): Dfar(39853)
1311
caught unaligned_from_a32
1412
caught fault on COUNTER
1513
Skipping instruction

examples/versatileab/reference/abt-exception-a32-armv7r-none-eabi.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ Hello, this is an data abort exception example
22
data abort occurred
33
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0000 Status=0b00001 }
44
DFSR Status: Ok(AlignmentFault)
5-
DFAR (Faulting Address Register): Dfar(39765)
65
caught unaligned_from_a32
76
caught fault on COUNTER
87
Doing it again
98
data abort occurred
109
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0000 Status=0b00001 }
1110
DFSR Status: Ok(AlignmentFault)
12-
DFAR (Faulting Address Register): Dfar(39765)
1311
caught unaligned_from_a32
1412
caught fault on COUNTER
1513
Skipping instruction

examples/versatileab/reference/abt-exception-a32-armv7r-none-eabihf.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ Hello, this is an data abort exception example
22
data abort occurred
33
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0000 Status=0b00001 }
44
DFSR Status: Ok(AlignmentFault)
5-
DFAR (Faulting Address Register): Dfar(39849)
65
caught unaligned_from_a32
76
caught fault on COUNTER
87
Doing it again
98
data abort occurred
109
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0000 Status=0b00001 }
1110
DFSR Status: Ok(AlignmentFault)
12-
DFAR (Faulting Address Register): Dfar(39849)
1311
caught unaligned_from_a32
1412
caught fault on COUNTER
1513
Skipping instruction

examples/versatileab/reference/abt-exception-t32-armv7a-none-eabi.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ Hello, this is an data abort exception example
22
data abort occurred
33
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0000 Status=0b00001 }
44
DFSR Status: Ok(AlignmentFault)
5-
DFAR (Faulting Address Register): Dfar(39849)
65
caught unaligned_from_t32
76
caught fault on COUNTER
87
Doing it again
98
data abort occurred
109
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0000 Status=0b00001 }
1110
DFSR Status: Ok(AlignmentFault)
12-
DFAR (Faulting Address Register): Dfar(39849)
1311
caught unaligned_from_t32
1412
caught fault on COUNTER
1513
Skipping instruction

examples/versatileab/reference/abt-exception-t32-armv7r-none-eabi.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ Hello, this is an data abort exception example
22
data abort occurred
33
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0000 Status=0b00001 }
44
DFSR Status: Ok(AlignmentFault)
5-
DFAR (Faulting Address Register): Dfar(39761)
65
caught unaligned_from_t32
76
caught fault on COUNTER
87
Doing it again
98
data abort occurred
109
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0000 Status=0b00001 }
1110
DFSR Status: Ok(AlignmentFault)
12-
DFAR (Faulting Address Register): Dfar(39761)
1311
caught unaligned_from_t32
1412
caught fault on COUNTER
1513
Skipping instruction

examples/versatileab/reference/abt-exception-t32-armv7r-none-eabihf.out

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ Hello, this is an data abort exception example
22
data abort occurred
33
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0000 Status=0b00001 }
44
DFSR Status: Ok(AlignmentFault)
5-
DFAR (Faulting Address Register): Dfar(39845)
65
caught unaligned_from_t32
76
caught fault on COUNTER
87
Doing it again
98
data abort occurred
109
DFSR (Fault Status Register): DFSR { ext=false wnr=false Domain=0b0000 Status=0b00001 }
1110
DFSR Status: Ok(AlignmentFault)
12-
DFAR (Faulting Address Register): Dfar(39845)
1311
caught unaligned_from_t32
1412
caught fault on COUNTER
1513
Skipping instruction

0 commit comments

Comments
 (0)