klange changed the topic of #osdev to: Operating System Development || Don't ask to ask---just ask! || For 3+ LoC, use a pastebin (for example https://gist.github.com/) || Stats + Old logs: http://osdev-logs.qzx.com New Logs: https://libera.irclog.whitequark.org/osdev || Visit https://wiki.osdev.org and https://forum.osdev.org || Books: https://wiki.osdev.org/Books
troseman has quit [Quit: troseman]
troseman has joined #osdev
Left_Turn has quit [Ping timeout: 252 seconds]
sdomi has quit [Ping timeout: 272 seconds]
sdomi has joined #osdev
Maja has quit [Ping timeout: 245 seconds]
Maja has joined #osdev
Left_Turn has joined #osdev
Left_Turn has quit [Read error: Connection reset by peer]
vdamewood has joined #osdev
heat_ has quit [Ping timeout: 246 seconds]
troseman has quit [Quit: troseman]
qubasa has joined #osdev
<cloudowind> everyone is using busybox now , archlinux slackware , there is 8-9 packages needed for initramfs dont know why they use busybox , too bulky it looks too me
<cloudowind> ive created my own initramfs by building them one by one for my own fun distro , busybox seems more complex to me , so far i had to edit few source files inorder to build it(knowng bugs for few months but yet not updated on git nor on tarbals)
<kof673> linux from scratch i believe had directions for both busybox or without, but do not recall how it handled initramfs, IIRC they did not mandate busybox anyhow
<cloudowind> chatgpt helping me:)
<cloudowind> everything went good , but i had to start from beginning , now i am going very careful , building them everything one by one is good for learning i believe , i also will go with systemV to learn better how to interact with linux kernel than systemd , in my first attempt ive built systemd succesfully
<cloudowind> ive heard linux from scratch but havent looked at it yet , mt myself was also preparing a distro preperation guide :D and small scvripts that will automate the process
<cloudowind> like creating the file system hierarchy
<cloudowind> something like arch-chroot , will also bind the required folders before chroot , and something to copy the iso into the target formated filesystem
Stary has quit [Quit: ZNC - http://znc.in]
CompanionCube has quit [Quit: ZNC - http://znc.in]
housemate has joined #osdev
<cloudowind> just to learn in my spare time..
Stary has joined #osdev
CompanionCube has joined #osdev
[Kalisto]8 has joined #osdev
[Kalisto] has quit [Ping timeout: 276 seconds]
[Kalisto]8 is now known as [Kalisto]
[Kalisto]0 has joined #osdev
[Kalisto] has quit [Ping timeout: 248 seconds]
[Kalisto]0 is now known as [Kalisto]
[Kalisto]2 has joined #osdev
[Kalisto] has quit [Ping timeout: 252 seconds]
[Kalisto]2 is now known as [Kalisto]
[Kalisto]7 has joined #osdev
[Kalisto] has quit [Ping timeout: 245 seconds]
[Kalisto]7 is now known as [Kalisto]
foudfou has quit [Remote host closed the connection]
foudfou has joined #osdev
q3lont has joined #osdev
netbsduser has joined #osdev
theruran has quit [Quit: Connection closed for inactivity]
GeDaMo has joined #osdev
q3lont has quit [Quit: Leaving]
goliath has joined #osdev
obrien has joined #osdev
obrien has quit [Remote host closed the connection]
Left_Turn has joined #osdev
Terlisimo has quit [Quit: Connection reset by beer]
Terlisimo has joined #osdev
brynet has quit [Ping timeout: 252 seconds]
flom84 has joined #osdev
flom84 has quit [Client Quit]
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 245 seconds]
netbsduser has quit [Remote host closed the connection]
netbsduser has joined #osdev
raphaelsc has joined #osdev
xenos1984 has quit [Read error: Connection reset by peer]
xenos1984 has joined #osdev
kof673 has quit [Remote host closed the connection]
Left_Turn has joined #osdev
Turn_Left has quit [Ping timeout: 265 seconds]
<netbsduser> i tested ftruncate() of an mmap()'d file behaviour on net/freebsd, solaris, gnu/linux
<netbsduser> namely what happens to pages previously written to after truncation, both in the private and shared map case
<netbsduser> everyone but GNU/Linux preserves private pages created by faults on MAP_PRIVATE mappings beyond the end of the truncation; Solaris reads zeroes from a page previously faulted on in a MAP_SHARED mapping but now past the truncation point
<netbsduser> while GNU/Linux and both BSDs bus fault in that latter case
<sortie> netbsduser: If you're willing to contribute some small test programs to https://sortix.org/os-test/ I would love to accept them into a new mmap suite and automatically run them on every OS, I have a even wider collection than that :)
<bslsk05> ​sortix.org: os-test
cloudowind has quit [Ping timeout: 252 seconds]
cloudowind has joined #osdev
brynet has joined #osdev
npc has joined #osdev
dinkelhacker_ has joined #osdev
heat_ has joined #osdev
k4m1 has quit [Quit: Lost terminal]
heat_ is now known as heat
<heat> geist, have you seen modern x86 PIT emulations being notoriously shit?
<heat> wrt timer calibration
<heat> my code on Ermine's PC is measuring a TSC frequency of 31 GHz
<heat> which is a liiiiiiittle too fast
<zid> bochs's pit was horrendously bad which was just a fun thing, and lots of mobos have broken pits
<zid> my P35 mobo had one, infact
<zid> linux's tsc code was a notortious cause of boot failures for a while
<heat> yeah i'm guessing i need to use the HPET for timer calibration, probably THE trodden path nowadays
<heat> well, nowadays = past 20 years
<heat> or cpuid 15h which is just a shortcut
<zid> broken hpets are also a thing :D
<heat> tfw all your timers are broken and all the ones that aren't you just don't know their frequency
<zid> I think it calibrates against rdtsc now and uses something else if pit/hpet/etc is too far different
<heat> you can't calibrate against rdtsc if you don't know its frequency
<zid> you do though, if you ask
<heat> so either cpuid 15h or you have to bootstrap yourself with a timer
<zid> It's just what proc/cpuinfo says for BOGOMIPS
<heat> a Well Known Frequency timer
<heat> not necessarily
<zid> also you can use ISA port reads
<zid> they're 1us
<heat> are they necessarily 1us?
<zid> That's the bus speed, 1MHz
<heat> what bus?
<zid> so inb(0x80) or whatever takes 1us
<heat> i'm preeeeeeeetty sure my PC doesn't have an ISA bus anymore :P
<zid> ISA/lpc/whatever
<zid> It's all emulated now ofc
<zid> but the timings should be very accurate
<heat> you obviously then run into the shitty problem of 1) what if that 1us is significantly imprecise (probably likely?) 2) it'll blow up in a VM
<zid> It's very unlikely to be wrong
<zid> in real hw
<heat> i would guess it is very _likely_ to be wrong because AFAIK no one uses it for timer calibration
<bslsk05> ​lkml.org: LKML: (Linus Torvalds): Re: IO delay, port 0x80, and BIOS POST codes
<heat> when in doubt do what windows or linux do
<zid> heat: doesn't matter, people use it for devices
<zid> The TPM modules or whatever, to this day, use that bus, afaik
<heat> i know
Turn_Left has joined #osdev
<heat> but it's just whether it's really running at 1MHz or slightly imprecise, then you'd need to gauge if your delays are precise (probably not, because they're delays, aka wait _at least_ for 1us)
<zid> You're just going to have to go for a concensus of things that vaguely agree, is the point
<zid> and if it comes out near 1Mhz, and your bogomips come out near 1mhz, and your HPETs do too
<zid> you can trust your hpets
<zid> if it's just the hpet that disagrees, try the pit, etc
<heat> i guess
<heat> this shit is cursed anyway
<heat> worst case i think you can kind of run with the HPET anyway
<zid> yea if nothing works
<zid> just use hpet
<zid> and they can quirk/fix it/etc later as a bug report
<Ermine> hey heat
<Ermine> I've pulled out my gemini lake laptop
<Ermine> and got to the shell
<heat> nice
<heat> with the cpuid 15h support or without it?
Left_Turn has quit [Ping timeout: 252 seconds]
k4m1 has joined #osdev
* Ermine checks
<Ermine> haven't booted in a long time
<Ermine> are there tools to examine cpuid under windows?
<heat> idk but gemini lake is new enough to have cpuid 15h
<heat> just asking if you indeed have the kernel patched or this was my fabulous timer calibration code at work
<Ermine> it's my patched kernel
<heat> nice
<heat> was this your OG test machine?
<zid> heh cpu-z comes with a timer tester
<zid> good news, my three timers are in fact, vaguely in sync
<heat> what's QPC, lapic?
<zid> QueryPerformanceCounter
<zid> the one windows has picked to use internally
<heat> ah, probably HPET or tsc
<zid> yea
<heat> actually that frequency is vaguely HPET i believe
<heat> >According to hpet-specifications, section 2.2, the minimum HPET clock frequency is 10 MHz , but the actual HPET frequency is always 14.31818 MHz (see 14.31818 MHz)
<zid> or it just returns the same value regardless
<zid> and it's just used to let you know how many sig figures there are
<heat> TSC should tick at around 4GHz or something, roughly your CPU's frequency
<heat> so it's definitely using the HPET
<zid> or it's lying, and always returns 10MHz
<zid> Just to let you know that it's no more precise than that ever
<heat> lying is BASED
hwpplayer1 has joined #osdev
<nikolar> Why are timers such a mess on x86
dinkelhacker_ has quit [Quit: Client closed]
npc has quit [Remote host closed the connection]
<Ermine> nikolar: I can't update artix due to conflicts introduced over the time
<nikolar> What kind of conflicts
<nikolar> Probably better for private messages btw :)
<nikolar> Ermine: ^
Left_Turn has joined #osdev
Turn_Left has quit [Ping timeout: 248 seconds]
vai is now known as Jari--
<Jari--> yo
npc has joined #osdev
goliath has quit [Quit: SIGSEGV]
Ziw has joined #osdev
flom84 has joined #osdev
flom84 has quit [Remote host closed the connection]
theruran has joined #osdev
heat has quit [Remote host closed the connection]
stolen has joined #osdev
heat has joined #osdev
heat has quit [Remote host closed the connection]
heat has joined #osdev
heat has quit [Remote host closed the connection]
heat has joined #osdev
Turn_Left has joined #osdev
gildasio has quit [Ping timeout: 260 seconds]
simpl_e has joined #osdev
Left_Turn has quit [Ping timeout: 265 seconds]
npc has quit [Remote host closed the connection]
gildasio has joined #osdev
Left_Turn has joined #osdev
heat has quit [Remote host closed the connection]
Turn_Left has quit [Ping timeout: 248 seconds]
heat has joined #osdev
heat has quit [Read error: Connection reset by peer]
heat_ has joined #osdev
heat_ is now known as heat
<heat> nikolar, gotta ask the CEO of the pc platform
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 244 seconds]
hwpplayer1 has quit [Quit: bye friends take care]
frkzoid has joined #osdev
frkazoid333 has quit [Ping timeout: 260 seconds]
<geist> aww my beloved kindle is starting to spicypillow
<sortie> does anyone need a new CEO of Personal Computing?
<heat> we need a CEO of timers
<sdomi> i need to talk with the CEO of self-modifying code
blockhead has quit []
catvstory has joined #osdev
getz- has joined #osdev
stolen has quit [Quit: Connection closed for inactivity]
<nikolar> geist: sagde :(
<nikolar> heat: :(
<heat> sagde indeed
getz has quit [Ping timeout: 260 seconds]
bombuzal has quit [Quit: b0rk]
getz- has quit [Quit: A mystery...]
getz has joined #osdev
<zid> nikolar: That's why I am introducing PC/3
<zid> It'sjust PC, but we get a vblank irq
<heat> genius
<heat> you add vsync while also adding a new timer
<heat> your genius is almost frightening
Arthuria has joined #osdev
<nikolar> Indeed
<nikolar> All problems solved
cloudowind has quit [Ping timeout: 252 seconds]
catvstory has left #osdev [#osdev]
Arthuria has quit [Ping timeout: 248 seconds]
GeDaMo has quit [Quit: 0wt 0f v0w3ls.]
vdamewood has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
getz has quit [Remote host closed the connection]
getz has joined #osdev
cloudowind has joined #osdev
goliath has joined #osdev
getz has quit [Ping timeout: 252 seconds]
the_oz_ has quit [Remote host closed the connection]
netbsduser has quit [Ping timeout: 252 seconds]
the_oz has joined #osdev
getz has joined #osdev
zijjgfs has joined #osdev
zijjgfs is now known as ring0_starr
the_oz has quit [Remote host closed the connection]
the_oz has joined #osdev
ring0_starr has quit [Ping timeout: 265 seconds]
netbsduser has joined #osdev
Ziw has quit [Ping timeout: 265 seconds]
foudfou has quit [Remote host closed the connection]