m68k: Add required definitions to sys/user.h
authorAndreas Schwab <schwab@linux-m68k.org>
Sun, 13 Jun 2010 19:09:38 +0000 (21:09 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 13 Jun 2010 19:09:38 +0000 (21:09 +0200)
ChangeLog.m68k
sysdeps/unix/sysv/linux/m68k/sys/user.h

index 6cf5d39..bbc8a8c 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-13  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * sysdeps/unix/sysv/linux/m68k/sys/user.h (NBPG, UPAGES)
+       (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Define.
+
 2010-06-11  Andreas Schwab  <schwab@linux-m68k.org>
 
        * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Force
index f8b19fc..2663ac6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2008 Free Software Foundation, Inc.
+/* Copyright (C) 2008, 2010 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -58,4 +58,9 @@ struct user {
        char u_comm[32];
 };
 
+#define NBPG 4096
+#define UPAGES 1
+#define HOST_TEXT_START_ADDR u.start_code
+#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
+
 #endif