Re: [PATCH hurd v1] Add partial /proc/cpuinfo implementation

2025-01-26 Thread Samuel Thibault
Sergey Bugaev, le lun. 27 janv. 2025 00:25:15 +0300, a ecrit: > > > +out: > > > + flcose(m); > > > > You didn't try to compile it ;) > > I suppose that's not easy for Diego to do, given the state of aarch64-gnu :) Sure, but he can comment the very few really-arm64-specific lines and try to build

Re: [PATCH hurd v1] Add partial /proc/cpuinfo implementation

2025-01-26 Thread Sergey Bugaev
On Mon, Jan 27, 2025 at 12:18 AM Samuel Thibault wrote: > > + err = aarch64_get_hwcaps(mach_host_self(), &caps, &mdir, &revdir); > > + if (err) > > +goto out; > > + > > + implementer = (mdir & 0xff00) >> 24; > > + variant = (mdir & 0x00f0) >> 20; > > + architecture = (mdir &

Re: [PATCH hurd v1] Add partial /proc/cpuinfo implementation

2025-01-26 Thread Samuel Thibault
Hello, Thanks for working on it :) Sorry for the delay, dnie...@gmail.com, le ven. 10 janv. 2025 23:52:28 +, a ecrit: > --- a/procfs/rootdir.c > +++ b/procfs/rootdir.c > @@ -38,6 +38,12 @@ > #include "procfs_dir.h" > #include "main.h" > #include > +#if defined (__x86_64__) || defined (_

[PATCH hurd v1] Add partial /proc/cpuinfo implementation

2025-01-10 Thread dnietoc
From: Diego Nieto Cid Hello, Sorry for the duplicate, I found a missing semicolon in the unsupported architecture case. Now fixed. Thanks, Diego -- >8 -- >8 -- >8 -- * procfs/rootdir.c: (rootdir_gc_cpuinfo) new function (rootdir_entries) add entry for cpuinfo file (cpuinfo_x86, cpu

[PATCH hurd v1] Add partial /proc/cpuinfo implementation

2025-01-10 Thread dnietoc
From: Diego Nieto Cid Hello, This is a new version of the cpuinfo patch. I added some #ifdef to include the cpuinfo.h or the march_aarch64 header accordingly. I also attempted to implement a version of the content generation function for aarch64 with the information in the link Sergey provided.