<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>FYI</p>
<p>-------- Original Message --------</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th align="right" valign="baseline" nowrap="nowrap">Subject:</th>
<td>Re: [Cuis-dev] cuis on OpenBSD?</td>
</tr>
<tr>
<th align="right" valign="baseline" nowrap="nowrap">Date:</th>
<td>2022-09-02 17:57</td>
</tr>
<tr>
<th align="right" valign="baseline" nowrap="nowrap">From:</th>
<td>"ken.dickey--- via Cuis-dev" <cuis-dev@lists.cuis.st></td>
</tr>
<tr>
<th align="right" valign="baseline" nowrap="nowrap">To:</th>
<td>Discussion of Cuis Smalltalk <cuis-dev@lists.cuis.st></td>
</tr>
<tr>
<th align="right" valign="baseline" nowrap="nowrap">Cc:</th>
<td>ken.dickey@whidbey.com, rsykora@disroot.org</td>
</tr>
<tr>
<th align="right" valign="baseline" nowrap="nowrap">Reply-To:</th>
<td>Discussion of Cuis Smalltalk <cuis-dev@lists.cuis.st></td>
</tr>
</tbody>
</table>
<p><br /></p>
<!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span style="white-space: nowrap;">On 2022-09-01 11:53, ken.dickey--- via Cuis-dev wrote:</span>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><span style="white-space: nowrap;">On 2022-09-01 05:23, rsykora--- via Cuis-dev wrote:</span><br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><span style="white-space: nowrap;">do you have any experience with running cuis on</span><br /> <span style="white-space: nowrap;">OpenBSD.</span></blockquote>
</blockquote>
<br /> <span style="white-space: nowrap;">OK.  Put OpenBSD 7.1 on a Raspberry Pi 4.</span><br /> <br /> <span style="white-space: nowrap;">Some bumps in the road, but I am running a Cuis image.</span><br /> <br /> <span style="white-space: nowrap;">pkg_add   git xfce xfxe4-extras gdb bash sudo emacs ..</span><br /> <br /> <span style="white-space: nowrap;">usermod -G operator,kmem,staff</span><br /> <br /> <span style="white-space: nowrap;">Kicked up the memory cap in /etc/login.conf for staff.</span><br /> <br /> <span style="white-space: nowrap;">The only large wrinkle was with an include file</span><br /> <span style="white-space: nowrap;">  platforms/unix/vm/include_ucontext.h</span><br /> <br /> <span style="white-space: nowrap;">I had to add a section</span><br /> <span style="white-space: nowrap;">  #elif __OpenBSD__ && __arm64__</span><br /> <span style="white-space: nowrap;">for the arm64 CPU.</span><br /> <br /> <br /> <span style="white-space: nowrap;">vvv===vvv===vvv</span><br /> <span style="white-space: nowrap;">#elif __OpenBSD__ && __amd64__</span><br /> <span style="white-space: nowrap;"># define _PC_IN_UCONTEXT sc_rip</span><br /> <span style="white-space: nowrap;"># define _FP_IN_UCONTEXT sc_rbp</span><br /> <span style="white-space: nowrap;"># define _SP_IN_UCONTEXT sc_rsp</span><br /> <span style="white-space: nowrap;">#elif __OpenBSD__ && __arm64__</span><br /> <span style="white-space: nowrap;"># define _PC_IN_UCONTEXT sc_x[30]  /*??PC??*/</span><br /> <span style="white-space: nowrap;"># define _FP_IN_UCONTEXT sc_x[29]</span><br /> <span style="white-space: nowrap;"># define _SP_IN_UCONTEXT sc_sp</span><br /> <span style="white-space: nowrap;">#endif</span><br /> <span style="white-space: nowrap;">^^^===^^^===^^^</span><br /> <br /> <span style="white-space: nowrap;">I also had to remove JoystickTabletPlugin from</span><br /> <span style="white-space: nowrap;">  building/linux64ARMv8/squeak.stack.spur/plugins.int</span><br /> <br /> <span style="white-space: nowrap;">So, things compiled, got X11+XFCE up.  Cuis image came right up.  AOK</span><br /> <br /> <span style="white-space: nowrap;">I still don't know the proper way to get the PC from the</span><br /> <span style="white-space: nowrap;">  struct sigcontext</span><br /> <span style="white-space: nowrap;">defined in signal.h  and machine/signal.h.</span><br /> <br /> <span style="white-space: nowrap;">I'm not an OBSD user, so any hinte here appreciated.</span><br /> <br /> <span style="white-space: nowrap;">HTH,</span><br /> <span style="white-space: nowrap;">-KenD</span><br /> </div>

</body></html>