Fix check for old trap frame layout.

This commit is contained in:
dsl 2010-02-22 08:19:38 +00:00
parent b7e618d6f3
commit 02b1580f48
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ amd64nbsd_trapframe_cache(struct frame_info *next_frame, void **this_cache)
/* The trap frame layout was changed lf the %rip value is less than 2^16 it
* is almost certainly the %ss of the old format. */
if (rip < 2^16)
if (rip < (1 << 16))
{
for (i = 0; i < ARRAY_SIZE (amd64nbsd_tf_reg_offset); i++)