What is HAL and what is different from the driver?

What is HAL and what is different from the driver?
Read the book/Wikipedia and did not understand
July 9th 19 at 11:19
3 answers
July 9th 19 at 11:21
On personal computers HAL, in essence, can be seen as the driver of the motherboard

Is this line from Wikipedia is not enough for you?
July 9th 19 at 11:23
If I understand correctly, then:
The driver provides a interface to access hardware.
The HAL provides a uniform interface to access hardware.

In the case the driver may need a program from the manufacturer for work.
In the case of HAL you can use any program, since the teams have the same HAL for this type of device.
July 9th 19 at 11:25
HAL intermediate level between user applications and device drivers provided by the OS. Thanks HAL, applications do not need to read the file to specify number of block /sector/head for a disk read, but rather to specify the file name.
HAL provides a standard interface for dealing with equipment custom applications and interfaces for drivers.
I.e. access to hardware in a modern OS is as follows:
Custom application <-> HAL <-> device driver <-> device
Usually up to HAL there is another layer of abstraction, and sometimes more than one.
and there is a link where it is possible to see examples of source HAL? - trystan commented on July 9th 19 at 11:28
HAL is part of the OS kernel, so you can start to study kernel sources Linux. Only hardly you will find there is a separation, that's HAL, but this is not HAL. And the words of this source code is not likely. - Lucio commented on July 9th 19 at 11:31
there is driver code with the title of hal. h in the folder kernel/drivers/rt...... Only it was in C, and not ASM as I expected. This is hal? - trystan commented on July 9th 19 at 11:34
This, at least, a lead. Promote further if interested. - Lucio commented on July 9th 19 at 11:37

Find more questions by tags Windows