Skip to content

Commit be62ebc

Browse files
authored
fix tester/mapping1 test (#243)
1 parent 9faba42 commit be62ebc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

kernel/arch/amd64/src/asm.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ FUNCTION_BEGIN(memcpy_to_uspace)
7272
rep movsb /* copy the rest byte by byte */
7373

7474
0:
75-
ret /* return MEMCPY_SRC, success */
75+
ret /* return MEMCPY_DST, success */
7676
FUNCTION_END(memcpy_from_uspace)
7777
FUNCTION_END(memcpy_to_uspace)
7878

uspace/app/tester/mm/mapping1.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ static bool verify_mapping(void *area, int page_count, errno_t expected_rc,
7272
int i;
7373
for (i = 0; i < page_count; i++) {
7474
void *page_start = ((char *) area) + PAGE_SIZE * i;
75-
errno_t rc = as_get_physical_mapping(page_start, NULL);
75+
uintptr_t phys_dummy;
76+
errno_t rc = as_get_physical_mapping(page_start, &phys_dummy);
7677
if (rc != expected_rc) {
7778
TPRINTF("as_get_physical_mapping() = %s != %s\n",
7879
str_error_name(rc), str_error_name(expected_rc));

0 commit comments

Comments
 (0)