You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/03/04 06:42:39 UTC
[incubator-nuttx] branch master updated: arch/x86_64: fix two typo
errors to pass build
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 923c05f arch/x86_64: fix two typo errors to pass build
923c05f is described below
commit 923c05f17fbe84d4237085fabca2eeef1874b59b
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Wed Mar 4 14:38:01 2020 +0800
arch/x86_64: fix two typo errors to pass build
Signed-off-by: liuhaitao <li...@xiaomi.com>
---
arch/x86_64/src/intel64/up_map_region.c | 2 +-
arch/x86_64/src/intel64/up_regdump.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86_64/src/intel64/up_map_region.c b/arch/x86_64/src/intel64/up_map_region.c
index a3efa9b..2ee7a0c 100644
--- a/arch/x86_64/src/intel64/up_map_region.c
+++ b/arch/x86_64/src/intel64/up_map_region.c
@@ -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)
{
diff --git a/arch/x86_64/src/intel64/up_regdump.c b/arch/x86_64/src/intel64/up_regdump.c
index 942b432..904f38e 100644
--- a/arch/x86_64/src/intel64/up_regdump.c
+++ b/arch/x86_64/src/intel64/up_regdump.c
@@ -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;