divide_by_zero0x25ac5f0 (sigactionTest):
On Monday, August 30, 2021 at 2:00:45 PM UTC+5, [email protected] wrote:
Hi,
I am performing Floating Point Divide By Zero operation. I am able to create this exception occur. It prints the below info on the vxWorks console.
divide_by_zero0x25ac5f0 (sigactionTest):
sigactionTestdvdzero : MSR b932 , vxFpscrGet f8
0x25ac5f0 (sigactionTest): task 0x25ac5f0 has had a failure and has been stopped.
0x25ac5f0 (sigactionTest): fatal kernel task-level exception!
Floating point divide by zero
Exception current instruction address: 0x0032845c
Machine Status Register: 0x0010b932
Condition Register: 0x22000244
Fp Control and Status Register: 0xc40000f8
Task: 0x25ac5f0 "sigactionTest"
0x25a8850 (tShell0):
divide_by_zero bExceptionFlag = 1, status = value = 0
0 = 0x0
I want to store the below register's info in a variable -- how to do so using C code.
Fp Control and Status Register: 0xc40000f8
Machine Status Register: 0x0010b932
Condition Register: 0x22000244
Please provide suitable explanation if this can be achieved or not. Regards,Could you mention which processor architecture are you using?
Swaroop
Hi,
I am performing Floating Point Divide By Zero operation. I am able to create this exception occur. It prints the below info on the vxWorks console.
divide_by_zero0x25ac5f0 (sigactionTest):
sigactionTestdvdzero : MSR b932 , vxFpscrGet f8
0x25ac5f0 (sigactionTest): task 0x25ac5f0 has had a failure and has been stopped.
0x25ac5f0 (sigactionTest): fatal kernel task-level exception!
Floating point divide by zero
Exception current instruction address: 0x0032845c
Machine Status Register: 0x0010b932
Condition Register: 0x22000244
Fp Control and Status Register: 0xc40000f8
Task: 0x25ac5f0 "sigactionTest"
0x25a8850 (tShell0):
divide_by_zero bExceptionFlag = 1, status = value = 0
0 = 0x0
I want to store the below register's info in a variable -- how to do so using C code.
Fp Control and Status Register: 0xc40000f8
Machine Status Register: 0x0010b932
Condition Register: 0x22000244
Please provide suitable explanation if this can be achieved or not.
Regards,
Swaroop
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 796 |
| Nodes: | 16 (3 / 13) |
| Uptime: | 140:05:50 |
| Calls: | 13,182 |
| Calls today: | 5 |
| Files: | 15,481 |
| Messages: | 6,579,055 |
| Posted today: | 2 |