arch/x86_64: fix two typo errors to pass build
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
parent
0a9ac2a689
commit
923c05f17f
@ -57,7 +57,7 @@ int up_map_region(void *base, int size, int flags)
|
|||||||
/* Increase size if the base address is rounded off */
|
/* Increase size if the base address is rounded off */
|
||||||
|
|
||||||
size += (uint64_t)base - bb;
|
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)
|
if (bb > 0xffffffff)
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
* Name: up_registerdump
|
* Name: up_registerdump
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void print_mem(void *sp, size_t size
|
void print_mem(void *sp, size_t size)
|
||||||
{
|
{
|
||||||
char buf[9];
|
char buf[9];
|
||||||
int i;
|
int i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user