]> git.sur5r.net Git - u-boot/blobdiff - lib/efi/efi_stub.c
efi_stub: Fix GDT_NOTSYS check
[u-boot] / lib / efi / efi_stub.c
index 2e8d409d31af1ea99f90932dfe6c292a13ef7ce0..205aa1994726d24e8119ce323c07975190df225f 100644 (file)
@@ -182,7 +182,7 @@ static int get_codeseg32(void)
                                << 16;
                base <<= 12;    /* 4KB granularity */
                limit <<= 12;
-               if ((desc & GDT_PRESENT) && (desc && GDT_NOTSYS) &&
+               if ((desc & GDT_PRESENT) && (desc & GDT_NOTSYS) &&
                    !(desc & GDT_LONG) && (desc & GDT_4KB) &&
                    (desc & GDT_32BIT) && (desc & GDT_CODE) &&
                    CONFIG_SYS_TEXT_BASE > base &&