]> git.sur5r.net Git - u-boot/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)
commit14d61d4e577c57ba77b826c6cc9d99a0b3f3fc37
tree469ac868ac9cb602034fa0505b70d8e87981a098
parent81cf7c8d45935a295991fe2cd1df286f0f47511f
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