Skip to contentSkip to conversation

getauxval.3: MIPS, AT_BASE_PLATFORM passes ISA level

PATCH In review YunQiang Su 2 participants 4 messages Mar 22, 2020 – Apr 16, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 getauxval.3: MIPS, AT_BASE_PLATFORM passes ISA level

Since Linux 5.7, on MIPS, we use AT_BASE_PLATFORM to pass ISA level. The values may be:
mips2, mips3, mips4, mips5,
mips32, mips32r2, mips32r6,
mips64, mips64r2, mips64r6.

This behavior is different with PowerPC.

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e585b768da111f2c2d413de6214e83bbdfee8f22

----
v1 -> v2: fix typo

---
 man3/getauxval.3 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
man3/getauxval.3 +4 -3
index 456371c6a..bcc116dd2 100644
@@ -60,9 +60,10 @@ values are present on all architectures.
 The base address of the program interpreter (usually, the dynamic linker).
 .TP
 .BR AT_BASE_PLATFORM
-A pointer to a string identifying the real platform; may differ from
-.BR AT_PLATFORM
-(PowerPC only).
+A pointer to a string (PowerPC and MIPS only).
+On PowerPC, this identifies the real platform; may differ from
+.BR AT_PLATFORM "."
+On MIPS, this identifies the ISA level (Since 5.7).
 .TP
 .BR AT_CLKTCK
 The frequency with which
Signature · 1 line
2.26.0.rc2
#1 lore raw

Hello YunQiang Su

Quoted 7 lines · YunQiang Su

Since Linux 5.7, on MIPS, we use AT_BASE_PLATFORM to pass ISA level. The values may be:
mips2, mips3, mips4, mips5,
mips32, mips32r2, mips32r6,
mips64, mips64r2, mips64r6.

This behavior is different with PowerPC.

Thank you for the patch. I see that this is scheduled for Linux 5.7 (for which the merge window is not yet open). How certain is it that the feature will land in 5.7?

Thanks,

Michael

Quoted 28 lines

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e585b768da111f2c2d413de6214e83bbdfee8f22

----
v1 -> v2: fix typo

---
 man3/getauxval.3 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
man3/getauxval.3 +4 -3
index 456371c6a..bcc116dd2 100644
@@ -60,9 +60,10 @@ values are present on all architectures.
 The base address of the program interpreter (usually, the dynamic linker).
 .TP
 .BR AT_BASE_PLATFORM
-A pointer to a string identifying the real platform; may differ from
-.BR AT_PLATFORM
-(PowerPC only).
+A pointer to a string (PowerPC and MIPS only).
+On PowerPC, this identifies the real platform; may differ from
+.BR AT_PLATFORM "."
+On MIPS, this identifies the ISA level (Since 5.7).
 .TP
 .BR AT_CLKTCK
 The frequency with which
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
#2 lore raw
Quoted 10 lines · Michael Kerrisk (man-pages) <[email protected]> 于2020年3月26日周四 下午4:12写道:

Hello YunQiang Su

Quoted 6 lines · YunQiang Su

Since Linux 5.7, on MIPS, we use AT_BASE_PLATFORM to pass ISA level. The values may be:
mips2, mips3, mips4, mips5,
mips32, mips32r2, mips32r6,
mips64, mips64r2, mips64r6.

Quoted 5 lines
Quoted 1 line

This behavior is different with PowerPC.

Thank you for the patch. I see that this is scheduled for Linux 5.7 (for which the merge window is not yet open). How certain is it that the feature will land in 5.7?

It is in mips-next and linux-next now.

Quoted 39 lines

Thanks,

Michael

Quoted 18 lines

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e585b768da111f2c2d413de6214e83bbdfee8f22

----
v1 -> v2: fix typo

---
 man3/getauxval.3 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
man3/getauxval.3 +0 -0
index 456371c6a..bcc116dd2 100644
@@ -60,9 +60,10 @@ values are present on all architectures.
 The base address of the program interpreter (usually, the dynamic linker).
 .TP
 .BR AT_BASE_PLATFORM

man3/getauxval.3 values are present on all architectures. · line 69

Quoted 10 lines
man3/getauxval.3 +4 -3
-A pointer to a string identifying the real platform; may differ from
-.BR AT_PLATFORM
-(PowerPC only).
+A pointer to a string (PowerPC and MIPS only).
+On PowerPC, this identifies the real platform; may differ from
+.BR AT_PLATFORM "."
+On MIPS, this identifies the ISA level (Since 5.7).
 .TP
 .BR AT_CLKTCK
 The frequency with which

--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

#3 lore raw
In reply to YunQiang Su
Quoted 10 lines · YunQiang Su

Since Linux 5.7, on MIPS, we use AT_BASE_PLATFORM to pass ISA level. The values may be:
mips2, mips3, mips4, mips5,
mips32, mips32r2, mips32r6,
mips64, mips64r2, mips64r6.

This behavior is different with PowerPC.

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e585b768da111f2c2d413de6214e83bbdfee8f22

Hello YunQiang Su,

Thank you. I've applied your patch.

Cheers,

Michael

Quoted 26 lines

----
v1 -> v2: fix typo

---
 man3/getauxval.3 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
man3/getauxval.3 +4 -3
index 456371c6a..bcc116dd2 100644
@@ -60,9 +60,10 @@ values are present on all architectures.
 The base address of the program interpreter (usually, the dynamic linker).
 .TP
 .BR AT_BASE_PLATFORM
-A pointer to a string identifying the real platform; may differ from
-.BR AT_PLATFORM
-(PowerPC only).
+A pointer to a string (PowerPC and MIPS only).
+On PowerPC, this identifies the real platform; may differ from
+.BR AT_PLATFORM "."
+On MIPS, this identifies the ISA level (Since 5.7).
 .TP
 .BR AT_CLKTCK
 The frequency with which
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/