Article View: muc.lists.netbsd.port.mac68k
Article #11Re: Some fixes for m68k users (incl/ for FPU emulation)
From: Jason Thorpe
Date: Thu, 05 Nov 2026 22:55
Date: Thu, 05 Nov 2026 22:55
148 lines
12792 bytes
12792 bytes
--Apple-Mail=_46A38A0A-F401-4CB6-AF56-462B6D1C77B8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Nov 5, 2026, at 9:45=E2=80=AFAM, Romain Dolbeau = <romain@dolbeau.org> wrote: >=20 > +/* > + * Push a frame that ends the %a6 chain on a new stack: its saved %a6 = is > + * itself and its return address 0. A profiling kernel's __mcount = reads > + * its caller's frame, and %a6 is otherwise the bootloader's, = unmapped > + * once the bootstrap map is gone. > + */ Ok, but that doesn=E2=80=99t actually make sense. The frame chain = terminates when, after unlnk=E2=80=99ing the frame, %a0 is 0 (i.e. a = frame with saved-%a6 of zero is the last one on the stack). And if you look at my manual step-though, I don=E2=80=99t see how mcount = actually ends up de-ref=E2=80=99ing a bad saved-%a6. -- thorpej --Apple-Mail=_46A38A0A-F401-4CB6-AF56-462B6D1C77B8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" = content=3D"text/html; charset=3Dutf-8"></head><body = style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; = line-break: after-white-space;"><br = id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote = type=3D"cite"><div>On Nov 5, 2026, at 9:45=E2=80=AFAM, Romain Dolbeau = <romain@dolbeau.org> wrote:</div><br = class=3D"Apple-interchange-newline"><div><meta charset=3D"UTF-8"><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">+/*</span><br style=3D"caret-color: rgb(0, = 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = orphans: 2; text-align: start; text-indent: 0px; text-transform: none; = white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: solid;"><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">+ * Push a frame that ends the %a6 chain on = a new stack: its saved %a6 is</span><br style=3D"caret-color: rgb(0, 0, = 0); font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = orphans: 2; text-align: start; text-indent: 0px; text-transform: none; = white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: solid;"><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">+ * itself and its return address 0. = A profiling kernel's __mcount reads</span><br style=3D"caret-color: = rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: = normal; font-variant-caps: normal; font-weight: 400; letter-spacing: = normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: solid;"><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">+ * its caller's frame, and %a6 is = otherwise the bootloader's, unmapped</span><br style=3D"caret-color: = rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: = normal; font-variant-caps: normal; font-weight: 400; letter-spacing: = normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: solid;"><span = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; = letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">+ * once the bootstrap map is = gone.</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant-caps: = normal; font-weight: 400; letter-spacing: normal; orphans: 2; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; = text-decoration-line: none; text-decoration-thickness: auto; = text-decoration-style: solid;"><span style=3D"caret-color: rgb(0, 0, 0); = font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = orphans: 2; text-align: start; text-indent: 0px; text-transform: none; = white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration: none; float: none; = display: inline !important;">+ */</span><br style=3D"caret-color: rgb(0, = 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: 400; letter-spacing: normal; = orphans: 2; text-align: start; text-indent: 0px; text-transform: none; = white-space: normal; widows: 2; word-spacing: 0px; = -webkit-text-stroke-width: 0px; text-decoration-line: none; = text-decoration-thickness: auto; text-decoration-style: = solid;"></div></blockquote></div><div><br></div><div>Ok, but that = doesn=E2=80=99t actually make sense. The frame chain terminates = when, after unlnk=E2=80=99ing the frame, %a0 is 0 (i.e. a frame with = saved-%a6 of zero is the last one on the = stack).</div><div><br></div><div>And if you look at my manual = step-though, I don=E2=80=99t see how mcount actually ends up = de-ref=E2=80=99ing a bad saved-%a6.</div><br><div> <span class=3D"Apple-style-span" style=3D"border-collapse: separate; = color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; line-height: normal; orphans: 2; text-align: = auto; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; ">-- thorpej</div></span> </div> <br></body></html>= --Apple-Mail=_46A38A0A-F401-4CB6-AF56-462B6D1C77B8-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<89063320-CCDE-43B9-82C1-B04C25CFB499@me.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<> <CADuzgboBfC872DwCePXYDDDS6cEyV3+UXyN6w3UQhjm7Zh2ZjQ@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Jason Thorpe <thorpej@me.com> Newsgroups: muc.lists.netbsd.port.mac68k Subject: Re: Some fixes for m68k users (incl/ for FPU emulation) Date: Thu, 5 Nov 2026 14:55:12 -0800 Organization: Newsgate at muc.de e.V. Sender: port-mac68k-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <89063320-CCDE-43B9-82C1-B04C25CFB499@me.com> References: <> <CADuzgboBfC872DwCePXYDDDS6cEyV3+UXyN6w3UQhjm7Zh2ZjQ@mail.gmail.com> MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3864.500.181\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_46A38A0A-F401-4CB6-AF56-462B6D1C77B8" Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="37678"; mail-complaints-to="news-admin@muc.de" Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (2048-bit key) header.d=me.com X-ICL-RepId: 01a1adec-9440-739f-91f1-928ae4221f19 X-ICL-Out-Info: HUtFAUMEWwJACUgATUQeDx5WFlZNRAJCTQhPHV8FXxxCC1YBXQNLVxQEDFsCRRtXGnkVVkNUBF9QXxwOAFJFUR9UWEEOClgSGFwUXFBYHkYSVg1dCRkGQF5QG18CQg8cE1YVEx1DGQ8rCEoEQwdFAl4LJRMJU1ZfFRcbXAAXBlsUBEQLVAddAUMLSB4udC93XQ1LcVQaUwAzCFVxXQMoAEV6PnFZDlJyHVxWUAJaVRIEQAhWUF4IXh9MHA== Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1793919326; x=1825455326; bh=4an4h9ZlgwOnXNPoYtpEaYq3KDkJLNTbZO5vuo41Rz0=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:To:x-icloud-hme; b=uVsjkynPyeb+jS2sjyy+CS3X27GlTOZF8i4p12e5AHo2+AH4i/M1R3O01zYpHL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