[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH][2/6] XHDI show our own XHDOSLimits from inside too.



Commit message:

Show our own XHDOSLimits also when the function is called form inside
the kernel or from a module.

Contributed by David Gálvez.
diff -r d9580e181d7d -r d68b02f5513b sys/xhdi.c
--- a/sys/xhdi.c	Fri Apr 17 16:19:50 2015 +0200
+++ b/sys/xhdi.c	Fri Apr 17 16:26:10 2015 +0200
@@ -358,6 +358,9 @@
 long
 XHDOSLimits (ushort which, ulong limit)
 {
+	if (limit == 0)
+		return sys_XHDOSLimits(which, limit);
+
 	return XHDI (17, which, limit);
 }