From f765aca3da66aa960ec8901613362c75ea755833 Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Sun, 16 Jul 2006 18:31:20 +0000 Subject: [PATCH] 2006-07-16 Jeff Bailey * sysdeps/hppa/tst-audit.h: New file. 2006-07-16 Carlos O'Donell * sysdeps/hppa/tls-macros.h: Cleanup formatting. --- ChangeLog.hppa | 8 ++++++++ sysdeps/hppa/tls-macros.h | 19 ++++++++++--------- sysdeps/hppa/tst-audit.h | 26 ++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 9 deletions(-) create mode 100644 sysdeps/hppa/tst-audit.h diff --git a/ChangeLog.hppa b/ChangeLog.hppa index b4c45d7818..d2c19a38f6 100644 --- a/ChangeLog.hppa +++ b/ChangeLog.hppa @@ -1,3 +1,11 @@ +2006-07-16 Jeff Bailey + + * sysdeps/hppa/tst-audit.h: New file. + +2006-07-16 Carlos O'Donell + + * sysdeps/hppa/tls-macros.h: Cleanup formatting. + 2006-07-15 Jeff Bailey * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Return NULL. diff --git a/sysdeps/hppa/tls-macros.h b/sysdeps/hppa/tls-macros.h index 4c5564b61d..f5a1cd8f3d 100644 --- a/sysdeps/hppa/tls-macros.h +++ b/sysdeps/hppa/tls-macros.h @@ -1,6 +1,7 @@ +/* TLS Access Macros for HP PARISC Linux */ /* HPPA Local Exec TLS access. */ -# define TLS_LE(x) \ +#define TLS_LE(x) \ ({ int * __result; \ unsigned long __tmp; \ asm ( \ @@ -14,7 +15,7 @@ }) /* HPPA Initial Exec TLS access. */ -# ifdef PIC +#ifdef PIC # define TLS_IE(x) \ ({ int * __result; \ unsigned long __tmp, __tmp2; \ @@ -28,7 +29,7 @@ : "r1" ); \ __result; \ }) -# else +#else # define TLS_IE(x) \ ({ int * __result; \ unsigned long __tmp, __tmp2; \ @@ -42,9 +43,9 @@ : "r1" ); \ __result; \ }) -# endif +#endif -# ifdef PIC +#ifdef PIC /* HPPA Local Dynamic TLS access. */ # define TLS_LD(x) \ ({ int * __result; \ @@ -62,7 +63,7 @@ "r25", "r26", "r28", "r29", "r31" ); \ __result; \ }) -# else +#else # define TLS_LD(x) \ ({ int * __result; \ asm ( \ @@ -77,10 +78,10 @@ "r25", "r26", "r28", "r29", "r31" ); \ __result; \ }) -# endif +#endif /* HPPA General Dynamic TLS access. */ -# ifdef PIC +#ifdef PIC # define TLS_GD(x) \ ({ int * __result; \ asm ( \ @@ -96,7 +97,7 @@ "r25", "r26", "r28", "r29", "r31" ); \ __result; \ }) -# else +#else # define TLS_GD(x) \ ({ int * __result; \ asm ( \ diff --git a/sysdeps/hppa/tst-audit.h b/sysdeps/hppa/tst-audit.h new file mode 100644 index 0000000000..93b4592258 --- /dev/null +++ b/sysdeps/hppa/tst-audit.h @@ -0,0 +1,26 @@ +/* Definitions for testing PLT entry/exit auditing. HP-PARISC version. + + Copyright (C) 2006 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 + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ + +#define pltenter la_hppa_gnu_pltenter +#define pltexit la_hppa_gnu_pltexit +#define La_regs La_hppa_regs +#define La_retval La_hppa_retval +#define int_retval lrv_r28