Commit Diff


commit - df569e1e7c68ed2da421d088d25c46574144a945
commit + c21d1989ef14647a6262e7ac4c5a2438df77abe4
blob - bb18a8d865b5c24e0ade1a9488bb36d2f20106de
blob + 038e3eabdf2b72e8a0eb09c150efc3ad81ad0ebf
--- Makefile
+++ Makefile
@@ -30,7 +30,7 @@ run: linurv ${PROGS}
 	cp -f linurv rootfs/bin
 	cp -f ${PROGS} rootfs/bin
 	cp -f test.txt rootfs/
-	${CHROOT} rootfs /bin/linurv -v /bin/$T.elf
+	${CHROOT} rootfs /bin/linurv /bin/$T.elf
 
 distclean: clean
 	(cd tools; ${MAKE} distclean)
blob - bc34f26155fd92483965e8e475cd02bf467bb46d
blob + 850c540e4c5020fd1870815dda1c4fed964d743d
--- src/ecall.c
+++ src/ecall.c
@@ -302,10 +302,10 @@ void ecall (void)
 	if (a7 <= SYS_debug)
 		name = syscall_names[a7];
 
-	//debug (
-	//		"ecall a7=%"PRIu64" [%s], a0=%"PRIu64", a1=%"PRIu64", a2=%"PRIu64", a3=%"PRIu64", a4=%"PRIu64", a5=%"PRIu64,
-	//		a7, name, a0, a1, a2, a3, a4, a5
-	//);
+	vdebug (
+			"ecall a7=%"PRIu64" [%s], a0=%"PRIu64", a1=%"PRIu64", a2=%"PRIu64", a3=%"PRIu64", a4=%"PRIu64", a5=%"PRIu64,
+			a7, name, a0, a1, a2, a3, a4, a5
+	);
 
 	int tmp, tmp2, tmp3;
 	long ret;
@@ -690,8 +690,7 @@ void ecall (void)
 		ret = enosys ("signalstack");
 		break;
 	case SYS_sigsuspend:
-		//ret = enosys ("sigsuspend");
-		ret = 0;
+		ret = enosys ("sigsuspend");
 		break;
 	case SYS_sigaction:
 		ret = enosys ("sigaction");
blob - ea03ca0a4ad153c96e29ec914d2a26634a5767a2
blob + aba351c137c52352baa240f38588b05c79aec9b1
--- src/linurv.c
+++ src/linurv.c
@@ -16,7 +16,7 @@ const char *levelstr[] = {
 	[LOG_ERROR]	= "ERROR",
 	[LOG_WARN]	= "WARN ",
 	[LOG_DEBUG]	= "DEBUG",
-	[LOG_VDEBUG]	= "DEBUG",
+	[LOG_VDEBUG]	= "VERBS",
 };
 
 enum log_level curlevel;
blob - 8e96461c6ea9ec7ff7dd35279462fc090ecc607e
blob + 2cf3cf4f4ddc2d4061ed91a0d8113cdd7e1346cd
--- tools/Makefile
+++ tools/Makefile
@@ -243,7 +243,7 @@ ${STAMPS}/libgcc-install: ${STAMPS}/libgcc-build
 
 ${STAMPS}/oksh-configure: ${STAMPS}/oksh ${STAMPS}/gcc-install
 	cd ${TOOLS}/build/oksh &&			\
-	./configure					\
+	CFLAGS="-Og -g" ./configure			\
 		--prefix=/				\
 		--cc=${PREFIX}/bin/${TARGET}-gcc	\
 		--enable-sh				\