eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[itchyjunk] is now known as [spookyJunk]
Yoofie has joined #osdev
<kof213>
> does the Posix-UEFI library require that I compile for strict ANSI C from what i gather, you may use ansi c and/or posix ...this is the beauty of not specifying versions.
<kof213>
example sentence: kof123 talked to "god" about "money" because i am a "person" who needs to know what "the law" says. this works for many areas of life. seriously though...much as i hate "lawyering" there is no such thing as "plain language" for these things IMO. it just creates more confusion.
<kof213>
"plain language" == drunk drive right over whatever the actual meaning was
<kof213>
or see cobol maybe...
bas1l has joined #osdev
basil has quit [Remote host closed the connection]
<kof213>
http://dict.org/bin/Dict?Form=Dict2&Database=devil&Query=symbol We cannot stop making them, but we can give them a name that conceals our helplessness. all language is symbolic, there is no "plain language" IMO. that means the mapping to whatever real thing it was inspired from was lost
<bslsk05>
dict.org: dict.org- symbol
<kof213>
anyways, this is not to pick on the author, the problem is much more widespread IMO
agent314 has quit [Ping timeout: 255 seconds]
<targetdisk>
Do we all turn into Terry Davis as we keep shrinking deeper into the computer?
<targetdisk>
but yeah so far I think POSIX-UEFI is fscking awesome
<targetdisk>
know nothing about its author, but those Makefiles just werk and for that I am thankful
<targetdisk>
One of these days I'll make a version that compiles on macOS
<kof213>
in my situation, i think i turn into lewis black. Now, I'm gonna repeat that, because it bears repeating. "If it weren't for my horse..." as in, giddyup, giddyup, let's go — "I wouldn't have spent that year in college," which is a degree-granting institution. -- /me adds to docs/CODING_STYLE
<kof213>
it wasn't...meant to be such a stickler, just malformed input needs unmangled first
<kof213>
strict c89 i think is 8-char external identifiers...and i think i saw 7 on a 370 compiler readme? i may be confusing filename lengths. i'm not sure anyone is strict, except nethack maybe, kermit, ...
<kof213>
so even 8.3 dos filenames...there are systems with only 7 (.3?) apparently
<kof213>
nethack, kermit, +unzip maybe
<klange>
As of C11 at least, the minimum number of significant characters for external identifiers is 31.
<klange>
It was 31 in C99 as well.
<geist>
hmm, like symbol names? or references to files?
<klange>
Symbol names, but not exactly.
<klange>
It was actually only 6 in C89.
<klange>
So it got bumped up a lot in '99.
<kof213>
yeah, was gonna say, look at what the std include files are...6 or so :D
<kof213>
and i'm not sure, if case is even mandated...for whatever various character sets
<kof213>
i'm all curious for certain projects, but i have my limits. i will write a script to convert if i really want something that ancient. 8.3 is my "sanity limit" for polluting a normal codebase
dude12312414 has joined #osdev
<geist>
i asked an AI to write some code for me the other day
<geist>
and it provided something that was useful
* geist
looks away in shame
<Mondenkind>
what code?
dude12312414 has quit [Quit: THE RAM IS TOO DAMN HIGH]
mdaadoun has joined #osdev
vdamewood has joined #osdev
<targetdisk>
aaaa my gfx card uses ARGB instead of RGBA
<clever>
random fact, the 2d core on the rpi supports ARGB, ABGR, RGBA, and BGRA
<clever>
and it can even do all 4 at once, each image being displayed has its own pixel order flag
smeso has quit [Quit: smeso]
smeso has joined #osdev
<geist>
Mondenkind: actually was a pretty good use of AI: i asked it to write some bash script to do some thing with renaming a bunch of files
<geist>
and it was basically right
<geist>
like, aint nobody got time for that, let an AI do it
Vercas has quit [Quit: buh bye]
Vercas has joined #osdev
<nur>
our star trek future has arrived. "Computer, rename all these fils"
<sham1>
"I'm sorry, I don't know what these \"fils\" are."
<kof213>
are those O_BINARY fils or O_TEXT fils
<kof213>
i'm going to side with q
[spookyJunk] has quit [Remote host closed the connection]
admiral_frost has joined #osdev
<sham1>
What is this, Windows?
<kof213>
:D star trek q, not any other q, to clarify lol
<kof213>
that's the thing though, to get a filename...then you have a character set or equivalent. it is just symbols all the way symbolically down
<kof213>
it is not windows, but i suspect that is one reason c89 and posix can never fully meet
<kof213>
i'm actually in agreement with utf i think for once, there is no plaintext
<sham1>
Never has been 🔫
Osmten has joined #osdev
\Test_User has quit [Quit: \Test_User]
\Test_User has joined #osdev
blop_ has quit [Remote host closed the connection]
\Test_User has quit [Quit: \Test_User]
blop_ has joined #osdev
\Test_User has joined #osdev
admiral_frost has quit [Quit: It's time]
goliath has joined #osdev
<Mondenkind>
the manual has this lovely admonishment: 'A processor may cache information from the paging-structure entries in TLBs and paging-structure caches (see Section 4.10). This fact implies that, if software changes an accessed flag or a dirty flag from 1 to 0, the processor might not set the corresponding bit in memory on a subsequent access using an affected linear address (see Section 4.10.4.3). See
<Mondenkind>
Section 4.10.4.2 for how software can ensure that these bits are updated as desired'
admiral_frost has joined #osdev
<Mondenkind>
do I understand correctly that this means that, if I clear the dirty bit and want to be able to read it in the future and get reliable results, I have to do a tlb invalidate?
<Mondenkind>
is there any alternative? Presumably, if you do a read from a clean page not initially in the tlb, followed by a write to that page, the cpu has to track that transition in the tlb somehow. So it should be possible for it to have machinery to 're-clean' the page in place without too much trouble. But I would guess that is not actually implemented or exposed anywhere
Burgundy has joined #osdev
heat has joined #osdev
<heat>
Mondenkind, yeah you need to invalidate the TLB after clearing the A or D bits
<Mondenkind>
:(
<heat>
but that i'm pretty sure is the case for most archs
<heat>
and it makes sense, you wouldn't want the PTE to be read after every access to a page, just to check if A or D were set
<heat>
rather it keeps internal A and D state
<Mondenkind>
right--I want to be able to clean the tlb entries in place if they exist
<Mondenkind>
but without evicting them from the tlb
<heat>
if arm had that you'd have that on zen too
<heat>
so just ask arm and zen might grow that feature in a couple of years
<Mondenkind>
lol
<heat>
seriously though exposing bit clearing/setting directly in TLB entries is an interesting idea
<heat>
no idea why it has never been proposed before. maybe they like treating it as a blackbox?
dza has quit [Quit: ]
dza has joined #osdev
<sham1>
Probably is one
netbsduser has joined #osdev
<Mondenkind>
I heard power has a somewhat open development process--maybe I can ask them to add it. Though maybe I wouldn't be an important enough stakeholder since I don't actually make cpus or very popular software
<heat>
POWER
GeDaMo has joined #osdev
heat has quit [Ping timeout: 260 seconds]
danilogondolfo has joined #osdev
admiral_frost has quit [Quit: It's time]
netbsduser has quit [Ping timeout: 272 seconds]
dennis95 has joined #osdev
Left_Turn has joined #osdev
dza has quit [Quit: ]
gog has joined #osdev
zxrom has quit [Quit: Leaving]
heat has joined #osdev
dza has joined #osdev
dza has quit [Quit: ]
nyah has joined #osdev
heat has quit [Ping timeout: 255 seconds]
heat has joined #osdev
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Burgundy has quit [Ping timeout: 248 seconds]
gildasio has quit [Ping timeout: 252 seconds]
gildasio has joined #osdev
zxrom has joined #osdev
Nixkernal has quit [Ping timeout: 255 seconds]
gildasio has quit [Remote host closed the connection]
Nixkernal has joined #osdev
gildasio has joined #osdev
leitao has joined #osdev
Arthuria has joined #osdev
kfv has joined #osdev
Arthuria has quit [Remote host closed the connection]
heat has quit [Ping timeout: 252 seconds]
heat has joined #osdev
<mcrod>
hi
Burgundy has joined #osdev
kfv_ has joined #osdev
kfv has quit [Ping timeout: 260 seconds]
bauen1 has quit [Ping timeout: 255 seconds]
<Ermine>
hello
<Ermine>
gog: may I pet you
<heat>
#osdev ban list: {"hi", "hello", "may I pet you"}
<heat>
+ "kernal"
<heat>
i'll whip up some code for Solaris slander detection so those people also get banned
Vercas has quit [Quit: Ping timeout (120 seconds)]
<gog>
heat: may i pet you
<heat>
hi
<heat>
waiiiiiit, wrong script
sbalmos has quit [Ping timeout: 258 seconds]
Vercas has joined #osdev
kfv_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kfv has joined #osdev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kfv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ermine>
heat: 'gog: may I pet you' != 'may I pet you'
<zid>
heat what was that tool for fucking with uefi images
sbalmos has joined #osdev
Chinese_soup has joined #osdev
<heat>
zid, uefitool?
<zid>
ty
<heat>
np
kfv has joined #osdev
<heat>
Ermine, yeah im going to need some regex parsing for my ban filter
<heat>
but we'll get there in the end
<zid>
msi bioses apparently shitty and don't let you put manual uefi paths in
<heat>
wdym
<zid>
you could boot linux and edit your nvram to add it to the boot order I hope maybe though?
<heat>
like boot options?
<zid>
it will only boot
<zid>
/boot/x86_64/bootx64.efi or whatever the default is
<heat>
yeah \EFI\BOOT\BOOTx64.EFI
<heat>
that's bizarre
<zid>
just lazy and bad
<heat>
do you know if you're running aptio?
<zid>
I'm not running anything
<heat>
like if the firmware itself references "aptio" or AMI
<zid>
I'm on a shitty gigabyte board atm
<heat>
american megatrends
<zid>
it's AMI yes
<heat>
ah ok
<heat>
haha AMI craptio
<zid>
the random laptop I tried had it at least
<zid>
and that looked like a 1997 pheonix bios
<zid>
the blue one
<heat>
i've heard that new aptio builds even do OS auto-detection
<zid>
with white text
<heat>
like they find GRUB and shit
<heat>
and the boot order just ends up being a fallback
<zid>
apparently the nwer ones are better at least
<zid>
the Znnn MSI GAMING stuff
<zid>
but my 2011 board defo had way better uefi support than this random 2014 msi thing
<sbalmos>
uefi was new'ish in '11, mfgrs figured they had to do it right. then later they could start cutting costs with shitty firmware ;)
<heat>
firmware has always been shitty
<heat>
the sideshow you outsource to 3rd world countries
kfv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
awita has joined #osdev
leitao has joined #osdev
<sbalmos>
I thought that was the customer support line?
Vercas5 has joined #osdev
<zid>
weird, I grabbed the memtest86 image from their website
<zid>
winrar says it contains a single dir called src/
Vercas has quit [Ping timeout: 252 seconds]
Vercas5 is now known as Vercas
<zid>
I don't think that's right
<zid>
give bin/cue or a raw ass dir pls
<heat>
sbalmos, *american* megatrends outsources a lot of work to india
<heat>
it's ironic
<heat>
and HPE, insyde, dell, etc too
<sbalmos>
yeah yeah yeah
<sbalmos>
honestly I've only ever used Asus or Gigabyte boards
<heat>
most PC firmware really is developed in india or china+taiwan
eddof13 has joined #osdev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #osdev
<zid>
mount did a better job
<kof213>
excuse me, i think you mean ami/india hpe+china insyde/taiwan [...]
<heat_>
for (i=0; (buf[i] = "/proc/self/fd/"[i]); i++);
<heat_>
look at this line from my favourite obfuscated C library
<zid>
that's a good memcpy
<zid>
strcpy*
<gorgonical>
sometimes when I'm bored near the end of the day like this I think of things to say that will elicit a response from the british cohort here
eddof13 has joined #osdev
<ChavGPT>
heat talks so much shit he does not have time to get anything done
<zid>
go on then, try it
<gorgonical>
yorkshire tea is overrated and tastes basically the same to me as lipton or luzianne
<gorgonical>
Even with milk and taken hot
<ChavGPT>
try tea with milk
<ChavGPT>
LIKE HITLER
<gorgonical>
change my mind: if caffeine (a lethal stimulant) is legal to be purchased unlimitedly at any amount at most pharmacies then so should amphetamines
<ChavGPT>
you do realize you can overdose on WATER
<gorgonical>
Only with some effort
<gorgonical>
Take too many of those "keep awake" pills and you could die on accident
<zid>
I mean, it doesn't taste the same, but yorkshire tea is no different to tetley or whatever
<zid>
lipton don't even make breakfast tea do they
<zid>
'taken hot' is a weird thing to say at all
<gorgonical>
LD50 is 200mg/kg, and CVS sells 200mg tablets in boxes of 40. Two boxes and you're dead
<zid>
nobody drinks cold tea
<gorgonical>
zid the entire continent of america drinks mostly cold tea
<zid>
no, a few of them drink iced tea
<gorgonical>
having been to many/most parts of the country I can say with confidence iced tea is available everywhere, at least in the format of canned tea
<gorgonical>
and I don't think lipton makes a breakfast tea, correct
<gorgonical>
Here we get all our fancy tea from twinings
<zid>
twinings make novelty tea
<zid>
it's the crystal diet pepsi of tea
<gorgonical>
they make all the "regular" varieties too
<gorgonical>
but what is prince of wales tea supposed to be
<zid>
it's all novelty tea
<gorgonical>
novel-tea
awita has quit [Ping timeout: 258 seconds]
bauen1 has quit [Ping timeout: 255 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bslsk05>
www.phoronix.com: X.Org Hit By New Security Vulnerabilities - Two Date Back To 1988 With X11R2 - Phoronix
<sbalmos>
uhh
agent314 has quit [Ping timeout: 255 seconds]
agent314 has joined #osdev
heat_ has quit [Remote host closed the connection]
bauen1 has joined #osdev
danlarkin has joined #osdev
goliath has quit [Quit: SIGSEGV]
<Ermine>
Time for another shitstorm in comments
[itchyjunk] has joined #osdev
<mcrod>
amazing
gorgonical has quit [Ping timeout: 264 seconds]
gbowne1 has joined #osdev
Turn_Left has quit [Read error: Connection reset by peer]
<netbsduser>
kazinsal: i had better update the xorg port to my os
<netbsduser>
certainly can't be having this
nyah has quit [Quit: leaving]
FreeFull has quit []
Thedarkb has quit [Ping timeout: 240 seconds]
Burgundy has quit [Ping timeout: 252 seconds]
sikkiladho has joined #osdev
<sikkiladho>
How do you investigate a kernel crash where kernel gets a SIGBUS as soon as it schedules init? Kernel is able to execve into init but it fails when init is scheduled to run.
<sikkiladho>
Assume I can’t use GDB. How do I know what caused the SIGBUS, corrupt memory, a device. I can compile and printk into the kernel. Not sure where should I do it on am x86 machine