arch/x86_64: fix two typo errors to pass build

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
liuhaitao 2020-03-04 14:38:01 +08:00 committed by Xiang Xiao
parent 0a9ac2a689
commit 923c05f17f
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ int up_map_region(void *base, int size, int flags)
/* Increase size if the base address is rounded off */
size += (uint64_t)base - bb;
uint64_t num_of_pages = (size + PAGE_SIZE - 1) / PAGE_SIZE;
num_of_pages = (size + PAGE_SIZE - 1) / PAGE_SIZE;
if (bb > 0xffffffff)
{

View File

@ -37,7 +37,7 @@
* Name: up_registerdump
****************************************************************************/
void print_mem(void *sp, size_t size
void print_mem(void *sp, size_t size)
{
char buf[9];
int i;