Closed nefigtut closed 1 year ago
applied, thanks
Am Montag, 2. Januar 2023, 13:19:15 CET schrieb Hubert Kario:
Hi Hubert,
@tomato42 commented on this pull request.
+
- /*
- This is GCC+STCKE code. STCKE command and data format:
- z/Architecture - Principles of Operation
- *
- The current value of bits 0-103 of the TOD clock is stored in bytes
- 1-13 of the sixteen-byte output:
- *
- bits 0-7: zeros (reserved for future extention)
- bits 8-111: TOD Clock value
- bits 112-127: Programmable Field
- *
- Output bit 59 (TOD-Clock bit 51) effectively increments every
- microsecond. Bits 60 to 111 of STCKE output are fractions of
- a miscrosecond: bit 59 is 1.0us, bit 60 is .5us, bit 61 is .25us,
miscrosecond
typo, should be "microsecond"
Typo fixed, thanks :-)
Ciao Stephan
Output size of the STCKE command on s390x is 16 bytes, compared to 8 bytes of the STCK command. This leads to a stack corruption in
jent_get_nstime()
on an s390x system with a following stack trace for a codebase at 4544e113:See also: https://bugzilla.redhat.com/show_bug.cgi?id=2140043
This issues was brought in by the recent f1727dff. Fix the s390x version of
jent_get_nstime()
and add some more detailed information on the STCKE command in a comment.Assorted STCKE related links:
http://publibz.boulder.ibm.com/epubs/pdf/dz9zr007.pdf https://groups.google.com/g/bit.listserv.ibm-main/c/qWWkdociQMQ/m/s3e9xJpDAwAJ https://bit.listserv.ibm-main.narkive.com/KpxS1vIH/format-of-stck-instruction#post3 https://colinpaice.blog/2020/09/25/how-do-i-format-a-stck-from-a-c-program/