Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJgzZoqCjhVBKr-s_QiCJ1TcqRbWg_=E=TVRDq1tj6tWqRE_Ag@mail.gmail.com>
Date: Thu, 13 Jul 2023 10:56:56 -0700
From: enh <enh@...gle.com>
To: libc-coord@...ts.openwall.com
Subject: risc-v hwprobe stuff

anyone else looking at adding a wrapper for the risc-v hwprobe stuff?

for today i'm just opening the hole in Android's seccomp filter (which
defaults to "no") to allow code to call it.

i'm not expecting it to see much use (versus parsing /proc/cpuinfo), if
only because callers are likely to always need newer kernel headers than
they actually have to do anything with it, and probably a newer kernel than
they have too, and even so it's still likely to be a subset of the stuff
you want to be able to look for!

...but if others plan on adding it, i'd prefer source compatibility, so i'd
be curious whether you're thinking of a new <sys/hwprobe.h>, or a different
new name, or adding it to an existing header?

-*-

while i'm here, it's probably worth mentioning that i've just added a
__riscv_flush_icache() wrapper to <sys/cachectl.h> where the mips stuff
used to live. i've also added the SYS_RISCV_FLUSH_ICACHE_LOCAL constant
because that's the name the kernel uses, and i'm not aware that anyone else
has exposed a named constant yet? (the glibc documentation [
https://www.gnu.org/software/libc/manual/html_node/RISC_002dV.html] implies
glibc has, but i don't think that's actually true?)

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.