ldt.c: make use of RVAL_DECODED
* ldt.c (sys_modify_ldt, sys_set_thread_area, sys_get_thread_area):
Update for RVAL_DECODED.
diff --git a/ldt.c b/ldt.c
index 73eb77f..73a17e8 100644
--- a/ldt.c
+++ b/ldt.c
@@ -34,15 +34,14 @@
SYS_FUNC(modify_ldt)
{
- if (entering(tcp)) {
- tprintf("%ld, ", tcp->u_arg[0]);
- if (tcp->u_arg[2] != sizeof(struct user_desc))
- printaddr(tcp->u_arg[1]);
- else
- print_user_desc(tcp, tcp->u_arg[1]);
- tprintf(", %lu", tcp->u_arg[2]);
- }
- return 0;
+ tprintf("%ld, ", tcp->u_arg[0]);
+ if (tcp->u_arg[2] != sizeof(struct user_desc))
+ printaddr(tcp->u_arg[1]);
+ else
+ print_user_desc(tcp, tcp->u_arg[1]);
+ tprintf(", %lu", tcp->u_arg[2]);
+
+ return RVAL_DECODED;
}
SYS_FUNC(set_thread_area)
@@ -78,9 +77,9 @@
#if defined(M68K) || defined(MIPS)
SYS_FUNC(set_thread_area)
{
- if (entering(tcp))
- printaddr(tcp->u_arg[0]);
- return 0;
+ printaddr(tcp->u_arg[0]);
+
+ return RVAL_DECODED;
}
#endif
@@ -88,6 +87,6 @@
#if defined(M68K)
SYS_FUNC(get_thread_area)
{
- return RVAL_HEX;
+ return RVAL_DECODED | RVAL_HEX;
}
#endif