Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Bringing computers into the home won't change either one, but may revitalize the corner saloon.


computers / comp.os.vms / VMS device drivers

SubjectAuthor
* VMS device driversSimon Clubley
`* Re: VMS device driversJohn Reagan
 +- Re: VMS device driversSingle Stage to Orbit
 `* Re: VMS device driversChris Townley
  `* Re: VMS device driversArne Vajhøj
   +- Re: VMS device driversArne Vajhøj
   +- Re: VMS device driversCraig A. Berry
   `- Re: VMS device driversDave Froble

1
VMS device drivers

<unrhr0$3g24b$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32975&group=comp.os.vms#32975

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: clubley@remove_me.eisner.decus.org-Earth.UFP (Simon Clubley)
Newsgroups: comp.os.vms
Subject: VMS device drivers
Date: Fri, 12 Jan 2024 14:20:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <unrhr0$3g24b$1@dont-email.me>
Injection-Date: Fri, 12 Jan 2024 14:20:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0048898a03de924ac97a2827ffe13c6a";
logging-data="3672203"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/duvBoYapbhbzaH6D4DQdw52VvWmwoBNA="
User-Agent: slrn/0.9.8.1 (VMS/Multinet)
Cancel-Lock: sha1:rK9pANpTdKXoKYzoVSu/jDUVrVM=
 by: Simon Clubley - Fri, 12 Jan 2024 14:20 UTC

On 2024-01-12, Single Stage to Orbit <alex.buell@munted.eu> wrote:
> On Fri, 2024-01-12 at 01:46 +0000, Gary Sparkes wrote:
>> I'm highly waiting on this, while testing some devices and code in
>> Alpha and Itanium systems, for when that floodgate opens. A fair
>> amount of things i'm working on are hardware support for specialty
>> things, and lack of being able to (so far) load my own drivers
>> without some insane steps is... well, putting things on hold for
>> people who're excited to get rid of some older hardware.
>
> I've been told writing drivers for OpemVMS/x86 is an insane process!

Even more so than writing one for Alpha ?

If so, how did they manage to make the process even more insane ?

Simon.

--
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.

Re: VMS device drivers

<unrq7m$31q5v$1@i2pn2.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32977&group=comp.os.vms#32977

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!.POSTED!not-for-mail
From: johnrreagan@earthlink.net (John Reagan)
Newsgroups: comp.os.vms
Subject: Re: VMS device drivers
Date: Fri, 12 Jan 2024 11:43:33 -0500
Organization: i2pn2 (i2pn.org)
Message-ID: <unrq7m$31q5v$1@i2pn2.org>
References: <unrhr0$3g24b$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 12 Jan 2024 16:43:34 -0000 (UTC)
Injection-Info: i2pn2.org;
logging-data="3205311"; mail-complaints-to="usenet@i2pn2.org";
posting-account="85Cwws6+ypgQVu4foqgE6eSuYb0IIJZq6Fz6j0v4a/s";
User-Agent: Mozilla Thunderbird
X-Spam-Checker-Version: SpamAssassin 4.0.0
Content-Language: en-US
In-Reply-To: <unrhr0$3g24b$1@dont-email.me>
 by: John Reagan - Fri, 12 Jan 2024 16:43 UTC

On 1/12/2024 9:20 AM, Simon Clubley wrote:
> On 2024-01-12, Single Stage to Orbit <alex.buell@munted.eu> wrote:
>> On Fri, 2024-01-12 at 01:46 +0000, Gary Sparkes wrote:
>>> I'm highly waiting on this, while testing some devices and code in
>>> Alpha and Itanium systems, for when that floodgate opens. A fair
>>> amount of things i'm working on are hardware support for specialty
>>> things, and lack of being able to (so far) load my own drivers
>>> without some insane steps is... well, putting things on hold for
>>> people who're excited to get rid of some older hardware.
>>
>> I've been told writing drivers for OpemVMS/x86 is an insane process!
>
> Even more so than writing one for Alpha ?
>
> If so, how did they manage to make the process even more insane ?
>
> Simon.
>

While I'm not a device driver expert, x86 device drivers should function
much like their prior counterparts. There are a few areas that changed.

Interesting fields in the PTEs (page table entries) moved from the
bottom 32-bits to the upper 32-bits (x86 architecture defined these)
so Macro-32 written drivers had to inspect the various instructions
and change to EVAX_ 64-bit instructions. I believe that macros were
written to hide those details but some drivers might have been rewritten
into C in the process. [I'm a big fan of eliminating Macro-32 code.
I have a long-standing joke of paying $5 per module for any rewrite out
of Macro-32 into ANY other language.]

The other area was with a concept SVAPTE (System Virtual Address PTE)
where a piece of 64-bit memory was double-mapped to also be accessible
using 32-bit system addresses. Such a concept didn't fit with how the
x86 memory management was going to work so all the SVAPTE references
where modified/buried in a macro along with expansion of some of those
32-bit fields into 64-bit fields. [Don't quote me on the exact details
of these changes.]

However, there were no large conceptual changes to the device driver
architecture for x86.

Re: VMS device drivers

<420669a5090004fb3c410f7659403d0e67daf926.camel@munted.eu>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=32987&group=comp.os.vms#32987

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: alex.buell@munted.eu (Single Stage to Orbit)
Newsgroups: comp.os.vms
Subject: Re: VMS device drivers
Date: Fri, 12 Jan 2024 19:47:31 +0000
Organization: One very high maintenance cat
Lines: 35
Message-ID: <420669a5090004fb3c410f7659403d0e67daf926.camel@munted.eu>
References: <unrhr0$3g24b$1@dont-email.me> <unrq7m$31q5v$1@i2pn2.org>
Reply-To: alex.buell@munted.eu
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: dont-email.me; posting-host="90240eef62ee50b0896b35d312aa1fa6";
logging-data="3770808"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9b+YYqxLx5kENnr/n85S6hg1mZ7ATmGo="
User-Agent: Evolution 3.50.2
Cancel-Lock: sha1:6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XGZ4r8rpvtCBxg4IFUqHg0ESI2/4pHw8n4uyD9e7yuZ+0zsLzMhloNEZ8ABe2/peVeir9eEVGqXTmixiLgVvPkTBi6xa4FmTqG3m0woUz8BXzCT1hoHtTPQ4UxGgcp8ITPUy1dJKUsqqY1uPSuLA06tGPQj7w/0j1HTuyct5NNHFDpDvrQdi/qr4CEk3WVWAEiv+d07DumSKnb6k5OySXSK128/oE2FXKsM1gNgFpK2SqEqfylxpAtJmRWNcV7Dyaqci22xRgBnU9X5iC2N9eXvaliEkEGBECAAkFAkSBefECGwwACgkQE/TNcxSCX46DQQCdH57pYA1kE373R9WsUN6+OXpqD8gAn0oKFduLKG48YhT7256Jo/7ZDeSU
 by: Single Stage to Orbi - Fri, 12 Jan 2024 19:47 UTC

On Fri, 2024-01-12 at 11:43 -0500, John Reagan wrote:
> While I'm not a device driver expert, x86 device drivers should
> function much like their prior counterparts.  There are a few areas
> that changed.
>
> Interesting fields in the PTEs (page table entries) moved from the
> bottom 32-bits to the upper 32-bits (x86 architecture defined these)
> so Macro-32 written drivers had to inspect the various instructions
> and change to EVAX_ 64-bit instructions.  I believe that macros were
> written to hide those details but some drivers might have been
> rewritten into C in the process.  [I'm a big fan of eliminating
> Macro-32 code. I have a long-standing joke of paying $5 per module
> for any rewrite out of Macro-32 into ANY other language.]
>
> The other area was with a concept SVAPTE (System Virtual Address PTE)
> where a piece of 64-bit memory was double-mapped to also be
> accessible using 32-bit system addresses.  Such a concept didn't fit
> with how the x86 memory management was going to work so all the
> SVAPTE references where modified/buried in a macro along with
> expansion of some of those 32-bit fields into 64-bit fields.  [Don't
> quote me on the exact details
> of these changes.]
>
> However, there were no large conceptual changes to the device driver
> architecture for x86.

Interesting to know. Are there any documentation and are there any
example drivers that would be useful. I think a good starting point
might be to add USB drivers for keyboard and mouse input. These
definitely will be useful for bare metal on x86 hardware.

Does x86 already has support for NVME and AHCI devices?
--
Tactical Nuclear Kittens

Re: VMS device drivers

<unskil$3eha8$3@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33017&group=comp.os.vms#33017

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: news@cct-net.co.uk (Chris Townley)
Newsgroups: comp.os.vms
Subject: Re: VMS device drivers
Date: Sat, 13 Jan 2024 00:13:09 +0000
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <unskil$3eha8$3@dont-email.me>
References: <unrhr0$3g24b$1@dont-email.me> <unrq7m$31q5v$1@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 13 Jan 2024 00:13:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f82bbaf8361f9780e0901f4633ef8953";
logging-data="3622216"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188cdeYuR/Y1w4ntfCTcM/x23+ygk7eCc4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:xGq8LNyXMEyhPQS7iibyNchbNwk=
In-Reply-To: <unrq7m$31q5v$1@i2pn2.org>
Content-Language: en-GB
 by: Chris Townley - Sat, 13 Jan 2024 00:13 UTC

On 12/01/2024 16:43, John Reagan wrote:
I'm a big fan of eliminating Macro-32 code.
> I have a long-standing joke of paying $5 per module for any rewrite out
> of Macro-32 into ANY other language.

When I joined our programming team in the 90's, I made it clear that I
would not attempt to learn macro. I didn't.

I later did the port from Alpha to Itanium, and I found one piece of
macro code that didn't work, so I rewrote in DEC Basic. It was helpful
that the function well documented as to it's parameters, and output, so
it worked 100%

Do I get a fiver? ;)

--
Chris

Re: VMS device drivers

<unskul$3l0sc$2@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33018&group=comp.os.vms#33018

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS device drivers
Date: Fri, 12 Jan 2024 19:19:33 -0500
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <unskul$3l0sc$2@dont-email.me>
References: <unrhr0$3g24b$1@dont-email.me> <unrq7m$31q5v$1@i2pn2.org>
<unskil$3eha8$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 13 Jan 2024 00:19:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9d8e6bf5c55077d8986dbae54a46a8a5";
logging-data="3834764"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jaauAGSpSqns1s5eb+GOKPQbBeXWySD4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:lBN1repGtJF/hoWHYoCFnpJkhRs=
Content-Language: en-US
In-Reply-To: <unskil$3eha8$3@dont-email.me>
 by: Arne Vajhøj - Sat, 13 Jan 2024 00:19 UTC

On 1/12/2024 7:13 PM, Chris Townley wrote:
> On 12/01/2024 16:43, John Reagan wrote:
> I'm a big fan of eliminating Macro-32 code.
>> I have a long-standing joke of paying $5 per module for any rewrite out
>> of Macro-32 into ANY other language.
>
> When I joined our programming team in the 90's, I made it clear that I
> would not attempt to learn macro. I didn't.
>
> I later did the port from Alpha to Itanium, and I found one piece of
> macro code that didn't work, so I rewrote in DEC Basic. It was helpful
> that the function well documented as to it's parameters, and output, so
> it worked 100%

I believe there are a lot of totally unnecessary Macro-32 code out there.

If I were to make a guess about it:

60% written in Macro-32 in VAX days for performance reasons but without
actually improving performance

39% written in Macro-32 in VAX days for performance reasons and actually
did improve performance on VAX but performance is worse on
Alpha/Itanium/x86-64

0% written in Macro-32 in VAX days for performance reasons and actually
do improve performance on all platforms

1% written in Macro-32 to do something not easily expressed in HLL

Arne

Re: VMS device drivers

<unsl7l$3l0sc$3@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33020&group=comp.os.vms#33020

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: arne@vajhoej.dk (Arne Vajhøj)
Newsgroups: comp.os.vms
Subject: Re: VMS device drivers
Date: Fri, 12 Jan 2024 19:24:20 -0500
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <unsl7l$3l0sc$3@dont-email.me>
References: <unrhr0$3g24b$1@dont-email.me> <unrq7m$31q5v$1@i2pn2.org>
<unskil$3eha8$3@dont-email.me> <unskul$3l0sc$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 13 Jan 2024 00:24:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9d8e6bf5c55077d8986dbae54a46a8a5";
logging-data="3834764"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18csz4u2NNou54ezleVNFU6inoJF9LoYbI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:bqCt4OHLu5pHpJfZUjk2girohT4=
Content-Language: en-US
In-Reply-To: <unskul$3l0sc$2@dont-email.me>
 by: Arne Vajhøj - Sat, 13 Jan 2024 00:24 UTC

On 1/12/2024 7:19 PM, Arne Vajhøj wrote:
> On 1/12/2024 7:13 PM, Chris Townley wrote:
>> On 12/01/2024 16:43, John Reagan wrote:
>> I'm a big fan of eliminating Macro-32 code.
>>> I have a long-standing joke of paying $5 per module for any rewrite out
>>> of Macro-32 into ANY other language.
>>
>> When I joined our programming team in the 90's, I made it clear that I
>> would not attempt to learn macro. I didn't.
>>
>> I later did the port from Alpha to Itanium, and I found one piece of
>> macro code that didn't work, so I rewrote in DEC Basic. It was helpful
>> that the function well documented as to it's parameters, and output,
>> so it worked 100%
>
> I believe there are a lot of totally unnecessary Macro-32 code out there.
>
> If I were to make a guess about it:
>
> 60% written in Macro-32 in VAX days for performance reasons but without
> actually improving performance
>
> 39% written in Macro-32 in VAX days for performance reasons and actually
> did improve performance on VAX but performance is worse on
> Alpha/Itanium/x86-64
>
> 0% written in Macro-32 in VAX days for performance reasons and actually
> do improve performance on all platforms
>
> 1% written in Macro-32 to do something not easily expressed in HLL

Note that I am guilty myself.

In the late 80's and early 90's I liked to write all code
deemed low-level in Macro-32.

All IO using SYS$QIOW.

And even stranger wrappers around PPL$ and MAIL$ functions.

WTF????

Arne

Re: VMS device drivers

<unsq9c$3ljsa$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33022&group=comp.os.vms#33022

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: craigberry@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: VMS device drivers
Date: Fri, 12 Jan 2024 19:50:36 -0600
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <unsq9c$3ljsa$1@dont-email.me>
References: <unrhr0$3g24b$1@dont-email.me> <unrq7m$31q5v$1@i2pn2.org>
<unskil$3eha8$3@dont-email.me> <unskul$3l0sc$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 13 Jan 2024 01:50:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="4cc2d0ed4a5db368f3659660e4a915fd";
logging-data="3854218"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19HfFgxE0JwTObghVNujfxYah8myYDFn58="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:JDlwj3SWCPbji93BGF7PS9pUpAw=
Content-Language: en-US
In-Reply-To: <unskul$3l0sc$2@dont-email.me>
 by: Craig A. Berry - Sat, 13 Jan 2024 01:50 UTC

On 1/12/24 6:19 PM, Arne Vajhøj wrote:
> On 1/12/2024 7:13 PM, Chris Townley wrote:
>> On 12/01/2024 16:43, John Reagan wrote:
>> I'm a big fan of eliminating Macro-32 code.
>>> I have a long-standing joke of paying $5 per module for any rewrite out
>>> of Macro-32 into ANY other language.
>>
>> When I joined our programming team in the 90's, I made it clear that I
>> would not attempt to learn macro. I didn't.
>>
>> I later did the port from Alpha to Itanium, and I found one piece of
>> macro code that didn't work, so I rewrote in DEC Basic. It was helpful
>> that the function well documented as to it's parameters, and output,
>> so it worked 100%
>
> I believe there are a lot of totally unnecessary Macro-32 code out there.
>
> If I were to make a guess about it:
>
> 60% written in Macro-32 in VAX days for performance reasons but without
> actually improving performance
>
> 39% written in Macro-32 in VAX days for performance reasons and actually
> did improve performance on VAX but performance is worse on
> Alpha/Itanium/x86-64
>
> 0% written in Macro-32 in VAX days for performance reasons and actually
> do improve performance on all platforms
>
> 1% written in Macro-32 to do something not easily expressed in HLL

It was common a decade or three ago to write code in MACRO because it
was the only thing besides DCL that was guaranteed to be there.
Compilers for the other languages were expensive.

Re: VMS device drivers

<unt9jk$3rbb9$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=33027&group=comp.os.vms#33027

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: davef@tsoft-inc.com (Dave Froble)
Newsgroups: comp.os.vms
Subject: Re: VMS device drivers
Date: Sat, 13 Jan 2024 01:12:12 -0500
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <unt9jk$3rbb9$1@dont-email.me>
References: <unrhr0$3g24b$1@dont-email.me> <unrq7m$31q5v$1@i2pn2.org>
<unskil$3eha8$3@dont-email.me> <unskul$3l0sc$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 13 Jan 2024 06:12:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="45ebbecd0773f0f7a3eb87dabfabb8cd";
logging-data="4042089"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+52yjqFzOV8TI05qyc4cMjneyfaf2hqmU="
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:17wr0cRk3Qc6VyJRJNl5aE0mo2E=
In-Reply-To: <unskul$3l0sc$2@dont-email.me>
 by: Dave Froble - Sat, 13 Jan 2024 06:12 UTC

On 1/12/2024 7:19 PM, Arne Vajhøj wrote:
> On 1/12/2024 7:13 PM, Chris Townley wrote:
>> On 12/01/2024 16:43, John Reagan wrote:
>> I'm a big fan of eliminating Macro-32 code.
>>> I have a long-standing joke of paying $5 per module for any rewrite out
>>> of Macro-32 into ANY other language.
>>
>> When I joined our programming team in the 90's, I made it clear that I would
>> not attempt to learn macro. I didn't.
>>
>> I later did the port from Alpha to Itanium, and I found one piece of macro
>> code that didn't work, so I rewrote in DEC Basic. It was helpful that the
>> function well documented as to it's parameters, and output, so it worked 100%
>
> I believe there are a lot of totally unnecessary Macro-32 code out there.
>
> If I were to make a guess about it:
>
> 60% written in Macro-32 in VAX days for performance reasons but without actually
> improving performance
>
> 39% written in Macro-32 in VAX days for performance reasons and actually did
> improve performance on VAX but performance is worse on Alpha/Itanium/x86-64
>
> 0% written in Macro-32 in VAX days for performance reasons and actually do
> improve performance on all platforms
>
> 1% written in Macro-32 to do something not easily expressed in HLL
>
> Arne
>

The bottom line is, MAcro-32 is an assembly language for the VAX. It is NOT for
follow on processors. So, there should not be any reason to write new Macro-32
after VAX. The only reasonable use for the Macro-32 compiler is to run existing
code.

That said, there probably be some exception somewhere. Rare exception.

I will say that the compiler sure saved my ass when moving to Alpha and itanic.
And if it happens, to x86 also.

--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA 15486

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor