modified struct to fix "negative shift"

The member of width in struct e820_entries,can be declared to
uint32_t(the range of the member is bigger than 0) to avoid
negative shift.

Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Huihuang Shi 2018-06-21 16:43:46 +08:00 committed by lijinxia
parent 58672cb562
commit 218a0a8b5d
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ struct e820_mem_params e820_mem;
struct page_walk_info {
uint64_t top_entry; /* Top level paging structure entry */
int level;
int width;
uint32_t width;
bool is_user_mode;
bool is_write_access;
bool is_inst_fetch;