Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Remember the good old days, when CPU was singular?


devel / comp.lang.c / ideal BIOS

SubjectAuthor
o ideal BIOSmuta...@gmail.com

1
ideal BIOS

<77712d6e-1ab2-416c-adf2-e07bcccc63f5n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19669&group=comp.lang.c#19669

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:c50:: with SMTP id 77mr20391765qkm.717.1640814619080;
Wed, 29 Dec 2021 13:50:19 -0800 (PST)
X-Received: by 2002:a05:622a:40f:: with SMTP id n15mr23817176qtx.296.1640814618950;
Wed, 29 Dec 2021 13:50:18 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Wed, 29 Dec 2021 13:50:18 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=202.169.113.201; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 202.169.113.201
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <77712d6e-1ab2-416c-adf2-e07bcccc63f5n@googlegroups.com>
Subject: ideal BIOS
From: mutazi...@gmail.com (muta...@gmail.com)
Injection-Date: Wed, 29 Dec 2021 21:50:19 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 24
 by: muta...@gmail.com - Wed, 29 Dec 2021 21:50 UTC

I think a fundamental aspect of application programming
in C is that devices like disks that are read as blocks
(sectors) are presented to the application as character
streams.

What I think would be good is for the operating system
to have the same benefit, with a BIOS that makes an
entire disk look like a file that can be opened with
fopen("0x80", "r+b");

The BIOS can't return FILE * though, as FILE is defined
independently by the OS's C library. The BIOS needs to
be defined to return void * instead.

Another thing is that stdin should come as setvbuf
no-buffering with the implication that that means keys
are not being echoed, so the OS is responsible for the
echoing.

So what I envisage is something similar to UEFI but done
with C90-like functions.

Am I missing anything?

Thanks. Paul.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor