Thursday, November 28, 2019

Re: Installing OpenBSD -current snapshots

On Fri, Nov 29, 2019 at 01:45:37AM -0600, Clay Daniels wrote:
> Another question. I know I need to write the boot file to the usb drive
> thus:
> # dd if=install66.fs of=/dev/da0 bs=1M conv=sync
> But can I just use plain old "cp base66.tgz /mnt" etc for the other files?

the installnn.fs image will have the file sets in there already. No need to copy.

- Peter

--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.

Re: SIGBUS on octeon for my program

On Thu, Nov 28, 2019 at 11:44:07PM -0700, Theo de Raadt wrote:
> Half the cpu platforms fault on unaligned access.
>
> There are strategies for handling this. Your code must use them.
>
> It is kind of boring, actually.

I took a look at how libasr does it, and I have similar code ie. pack8(),
pack16(), pack32(), I will just change all my functions, as unalignment
flags passed per -m aren't standard on every arch. I did use __packed on
structs already but the way libasr does is a great example I think.

It's a bit of work but the fact that this could work on architectures like
octeon make it worth it for me.

Thanks a lot!
-peter