Insert the Windows XP installation CD and, under Recovery Console, extract the HAL file that matches your computer's hardware in the I386 directory on the disc to Windowssystem32 and change the file name to Hal.dll. The HAL file is divided into 7 categories, but most computers are "ACPI uniprocessor PC" or "Advanced Configuration and Power Interface (ACPI) PC", so you can try these two first when replacing. Computers with different hardware configurations may have different HAL files, so replacing a HAL file that does not match your computer can cause the system to fail to start.
Here's how to complete the entire operation under the Recovery Console:
Assuming that Windows XP is installed in C, disk drive, and the system's HAL file is "ACPI uniprocessor PC", then open the Recovery Console and run the following command in turn:
Del C:windowssystem32hal.dll
Expand F:i386halaacpi.dl_ C:windowssystem32hal.dll
Exit
The description of the computer and the corresponding HAL file
The computer's descriptive text corresponds to the HAL file
ACPI Multiprocessor PC Halmacpi.dl_
ACPI uniprocessor PC Halaacpi.dl_
Advanced Configuration and Power Interface (ACPI) PC Halacpi.dl_
MPS Multiprocessor PC Halmps.dl_
MPS uniprocessor PC Halapic.dl_
Standard PC Hal.dl_
Compaq SystemPro Multiprocessor or 100% compatible Halsp.dl_
PS: Know your computer is using which HAL file method: Right click on "My Computer", select "Properties" → "Hardware", click the "Device Manager" button, and then expand the "Computer" project, you can clearly see the current computer description of the text.