[patch] 2.3.27 acct.c KSTK_EIP/ESP redefined

Mike Galbraith (mikeg@weiden.de)
Fri, 12 Nov 1999 19:39:44 +0100 (CET)


Removed unused defines and tidied a comment, saving a couple of bytes.

-Mike

--- linux-2.3.27/kernel/acct.c.org Fri Nov 12 10:39:42 1999
+++ linux-2.3.27/kernel/acct.c Fri Nov 12 10:42:24 1999
@@ -252,17 +252,12 @@
/*
* Write an accounting entry for an exiting process
*
- * The acct_process() call is the workhorse of the process
+ * The do_acct_process() call is the workhorse of the process
* accounting system. The struct acct is built here and then written
* into the accounting file. This function should only be called from
* do_exit().
*/
-#define KSTK_EIP(stack) (((unsigned long *)(stack))[1019])
-#define KSTK_ESP(stack) (((unsigned long *)(stack))[1022])

-/*
- * do_acct_process does all actual work.
- */
static int do_acct_process(long exitcode, struct file *file)
{
struct acct ac;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/