This is usually caused by using HAL code (ring 1) in Ring 3, your kernel. You must make a pass over layer from Ring 3 to Ring 2 to Ring 1 to access HAL functions