In ARM, exception A is a hardware concept.
In Linux, exception B is a software concept
Linux exception classification
Whether the arm exception is used
yes
Some of them take advantage of arm exceptions
Page fault exception
no
Some are not used
Division by 0 exception
Can users feel
yes
Some abnormal users can feel
Division by 0 exception
no
Some can't feel
Page fault exception
Which space is abnormal?
User Space
The application code caused an exception and an error
Kernel Space
Kernel code caused an exception and an error occurred
Are exceptions necessarily errors?
yes
When using the floating point software library, a division by zero exception occurs
no
Page fault exception
When using vfp, a division by zero exception occurs
Linux does not correspond to exception A in arm one by one, as shown below
Page fault exception
Division by 0 exception
But in most cases, in arm-linux, exception B in linux is implemented by exception A in arm
The exception in the application space is caused by the application code, and an error occurs. The kernel will help the process dump // so that we can use the dump file to debug the program
The exception in kernel space is caused by the kernel code, and an error occurs. At this time, the kernel generally helps us debug in the following ways
1. Print oops, but no panic // In this way, we can view the complete information through dmesg
2. Print oops and panic // At this point we only have oops and panic information to view
// This sometimes causes loss of scene
// There are the following means to automatically save the scene
// 1. kdump
// 2. pstore
Previous article:OK6410A development board (eight) 65 linux-5.11 OK6410A linux tick and schedule
Next article:OK6410A Development Board (VIII) 63 linux-5.11 OK6410A Common abnormal scenarios and analysis of linux kernel space kernel exception
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Three steps to govern hybrid multicloud environments
- Three steps to govern hybrid multicloud environments
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Does anyone have a heating circuit and a 37-degree constant temperature circuit for smart toilets or hand warmers? Share it (or exchange one for another)...
- A brief discussion on the synthesizability of VHDLVerilog and some suggestions for beginners
- 28335 Program automatic upgrade solution
- [Xianji HPM6750 Review] Testing the Ethernet Controller ENET
- Designing a compact, efficient and high-performance multi-parameter patient monitor
- USB Type-C Connector Introduction
- Fly-Buck Converter PCB Layout Tips
- Problem with connecting the resistor between BE when the transistor is used as a switch.
- PCB layout and wiring - If there are any problems with the crystal oscillator PCB design in the figure, please feel free to discuss.
- FT2820P1 Bluetooth Speaker Schematic Diagram Sharing