Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libnvmm Fix build break due to typos.
details: https://anonhg.NetBSD.org/src/rev/9877e413503d
branches: trunk
changeset: 449774:9877e413503d
user: htodd <htodd%NetBSD.org@localhost>
date: Fri Mar 22 01:50:14 2019 +0000
description:
Fix build break due to typos.
diffstat:
tests/lib/libnvmm/h_io_assist.c | 4 ++--
tests/lib/libnvmm/h_mem_assist.c | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 83044c357606 -r 9877e413503d tests/lib/libnvmm/h_io_assist.c
--- a/tests/lib/libnvmm/h_io_assist.c Thu Mar 21 21:28:55 2019 +0000
+++ b/tests/lib/libnvmm/h_io_assist.c Fri Mar 22 01:50:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: h_io_assist.c,v 1.5 2019/03/21 20:21:41 maxv Exp $ */
+/* $NetBSD: h_io_assist.c,v 1.6 2019/03/22 01:50:14 htodd Exp $ */
/*
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -189,8 +189,8 @@
if (ret == -1)
err(errno, "nvmm_gpa_map");
ret = nvmm_gpa_map(mach, (uintptr_t)L1, 0x6000, PAGE_SIZE,
+ PROT_READ|PROT_WRITE);
if (ret == -1)
- PROT_READ|PROT_WRITE);
err(errno, "nvmm_gpa_map");
memset(L4, 0, PAGE_SIZE);
diff -r 83044c357606 -r 9877e413503d tests/lib/libnvmm/h_mem_assist.c
--- a/tests/lib/libnvmm/h_mem_assist.c Thu Mar 21 21:28:55 2019 +0000
+++ b/tests/lib/libnvmm/h_mem_assist.c Fri Mar 22 01:50:14 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: h_mem_assist.c,v 1.8 2019/03/21 20:21:41 maxv Exp $ */
+/* $NetBSD: h_mem_assist.c,v 1.9 2019/03/22 01:50:14 htodd Exp $ */
/*
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -123,6 +123,7 @@
map_pages(struct nvmm_machine *mach)
{
pt_entry_t *L4, *L3, *L2, *L1;
+ int ret;
instbuf = mmap(NULL, PAGE_SIZE, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE,
-1, 0);
Home |
Main Index |
Thread Index |
Old Index