WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] do_set_gdt

Given that you that the first 256 GDT entries aren't reserved and you
explicitly state why, shouldn't the following check:

    if ( (entries <= LAST_RESERVED_GDT_ENTRY) || (entries > 8192) )
        return -EINVAL;

be:

    if ( (entries > FIRST_RESERVED_GDT_ENTRY &&
          entries <= LAST_RESERVED_GDT_ENTRY) || (entries > 8192) )
        return -EINVAL;




Thanks.

                        -Kip


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>