]> git.baikalelectronics.ru Git - uboot.git/commit
efi_stub: Fix GDT_NOTSYS check
authorAlexander Graf <agraf@suse.de>
Mon, 4 Dec 2017 15:33:26 +0000 (16:33 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 30 Mar 2018 08:05:07 +0000 (16:05 +0800)
commitc370a355a3bc26f22796c00b0cbb7f1c85e8ac2e
tree469ac868ac9cb602034fa0505b70d8e87981a098
parent7328e8586eedf2929ddd8736c07f10b1233995e2
efi_stub: Fix GDT_NOTSYS check

The get_codeseg32() wants to know if a passed in descriptor has
flag GDT_NOTSYS set (desc & GDT_NOTSYS), not whether desc and
GDT_NOTSYS are not != 0 (desk && GDT_NOTSYS).

This is an obvious typo. Fix it up.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
lib/efi/efi_stub.c