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
mavhq has quit [*.net *.split]
craigo has quit [*.net *.split]
gog has quit [*.net *.split]
mrpops2ko has quit [*.net *.split]
leon has quit [*.net *.split]
xvmt has quit [*.net *.split]
eck has quit [*.net *.split]
nortti has quit [*.net *.split]
erai has quit [*.net *.split]
melnary has quit [*.net *.split]
exark has quit [*.net *.split]
amj has quit [*.net *.split]
thaumavorio has quit [*.net *.split]
stux has quit [*.net *.split]
CaptainIRS has quit [*.net *.split]
JTL has quit [*.net *.split]
sebastiencs has quit [*.net *.split]
remn has quit [*.net *.split]
bleb has quit [*.net *.split]
m3a has quit [*.net *.split]
zhiayang has quit [*.net *.split]
randm has quit [*.net *.split]
dza has quit [*.net *.split]
Opus has quit [*.net *.split]
ghostbuster has quit [*.net *.split]
slow99 has quit [*.net *.split]
j`ey has quit [*.net *.split]
janemba has quit [*.net *.split]
LittleFox has quit [*.net *.split]
Artea has quit [*.net *.split]
chibill has quit [*.net *.split]
guideX has quit [*.net *.split]
ThinkT510 has quit [*.net *.split]
pabs3 has quit [*.net *.split]
Leftas has quit [*.net *.split]
Irvise has quit [*.net *.split]
Yoofie6464463 has quit [*.net *.split]
bradd has quit [*.net *.split]
getz has quit [*.net *.split]
jjuran has quit [*.net *.split]
\Test_User has quit [*.net *.split]
HumanG33k has quit [*.net *.split]
sauce has quit [*.net *.split]
sortie has quit [*.net *.split]
no92_leo has quit [*.net *.split]
stefanct has quit [*.net *.split]
mpetch has quit [*.net *.split]
Mutabah has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
nitrix has quit [*.net *.split]
cow321 has quit [*.net *.split]
msv has quit [*.net *.split]
ring0_starr has quit [*.net *.split]
Matt|home has quit [*.net *.split]
sprock has quit [*.net *.split]
Brnocrist has quit [*.net *.split]
gorgonical has quit [*.net *.split]
pie_ has quit [*.net *.split]
Jari-- has quit [*.net *.split]
wgrant has quit [*.net *.split]
mahk has quit [*.net *.split]
mcfrdy has quit [*.net *.split]
m5 has quit [*.net *.split]
kwilczynski has quit [*.net *.split]
Ram-Z_ has quit [*.net *.split]
sjs has quit [*.net *.split]
immibis has quit [*.net *.split]
fedaykin has quit [*.net *.split]
remexre has quit [*.net *.split]
Ermine has quit [*.net *.split]
travisg has quit [*.net *.split]
Pixi has quit [*.net *.split]
lanodan has quit [*.net *.split]
Ameisen has quit [*.net *.split]
woky_ has quit [*.net *.split]
JerryXiao has quit [*.net *.split]
puck has quit [*.net *.split]
eschaton_ has quit [*.net *.split]
nshp has quit [*.net *.split]
vancz has quit [*.net *.split]
V has quit [*.net *.split]
bslsk05 has quit [*.net *.split]
Goodbye_Vincent1 has quit [*.net *.split]
basil has quit [*.net *.split]
foxsecu has quit [*.net *.split]
nadja has quit [*.net *.split]
qookie has quit [*.net *.split]
ycp has quit [*.net *.split]
chiselfuse has quit [*.net *.split]
surabax has quit [*.net *.split]
thinkpol has quit [*.net *.split]
xtex has quit [*.net *.split]
ddevault has quit [*.net *.split]
whereiseveryone has quit [*.net *.split]
lucyy has quit [*.net *.split]
hanemile has quit [*.net *.split]
patwid has quit [*.net *.split]
baraq has quit [*.net *.split]
exec64 has quit [*.net *.split]
tom5760 has quit [*.net *.split]
mzh has quit [*.net *.split]
HeTo has quit [*.net *.split]
dinkelhacker has quit [*.net *.split]
cow has quit [*.net *.split]
sham1 has quit [*.net *.split]
nohit has quit [*.net *.split]
SanchayanMaity has quit [*.net *.split]
danlarkin has quit [*.net *.split]
khrbtxyz has quit [*.net *.split]
mcrod has quit [*.net *.split]
j00ru has quit [*.net *.split]
pax_73 has quit [*.net *.split]
wantyapps has quit [*.net *.split]
imyxh has quit [*.net *.split]
Ellenor has quit [*.net *.split]
kristinam has quit [*.net *.split]
MiningMarsh has quit [*.net *.split]
zid has quit [*.net *.split]
gmodena has quit [*.net *.split]
arminweigl has quit [*.net *.split]
sidcha has quit [*.net *.split]
acidx has quit [*.net *.split]
amine has quit [*.net *.split]
MrBonkers has quit [*.net *.split]
colona_ has quit [*.net *.split]
scruffyfurn has quit [*.net *.split]
n3t has quit [*.net *.split]
cross has quit [*.net *.split]
elderK has quit [*.net *.split]
heat has quit [*.net *.split]
k0valski18891621 has quit [*.net *.split]
xenos1984 has quit [*.net *.split]
bauen1 has quit [*.net *.split]
xal has quit [*.net *.split]
gimli has quit [*.net *.split]
sdomi has quit [*.net *.split]
Maja has quit [*.net *.split]
eluks has quit [*.net *.split]
night has quit [*.net *.split]
jistr has quit [*.net *.split]
tjf has quit [*.net *.split]
DrachenMaus has quit [*.net *.split]
isabella has quit [*.net *.split]
hbag has quit [*.net *.split]
PublicWiFi has quit [*.net *.split]
cultpony has quit [*.net *.split]
XgFgX has quit [*.net *.split]
raggi has quit [*.net *.split]
phr3ak has quit [*.net *.split]
hl has quit [*.net *.split]
Benjojo has quit [*.net *.split]
cheapie has quit [*.net *.split]
ptrc has quit [*.net *.split]
SophiaNya has quit [*.net *.split]
gjn has quit [*.net *.split]
noeontheend has quit [*.net *.split]
pitust has quit [*.net *.split]
zenomat has quit [*.net *.split]
vismie has quit [*.net *.split]
asymptotically has quit [*.net *.split]
yuiyukihira has quit [*.net *.split]
nagitsu has quit [*.net *.split]
andreas303 has quit [*.net *.split]
f_ has quit [*.net *.split]
urandom__ has quit [*.net *.split]
beto has quit [*.net *.split]
DoubleJ has quit [*.net *.split]
_koolazer has quit [*.net *.split]
shan has quit [*.net *.split]
Xyon has quit [*.net *.split]
FireFly has quit [*.net *.split]
Griwes has quit [*.net *.split]
kline has quit [*.net *.split]
jimbzy has quit [*.net *.split]
aejsmith has quit [*.net *.split]
terrorjack has quit [*.net *.split]
trillion_exabyte has quit [*.net *.split]
Terlisimo has quit [*.net *.split]
ZipCPU has quit [*.net *.split]
brynet has quit [*.net *.split]
valerius_ has quit [*.net *.split]
alice has quit [*.net *.split]
tomaw has quit [*.net *.split]
torresjrjr has quit [*.net *.split]
dennisschagt has quit [*.net *.split]
rb has quit [*.net *.split]
teroshan has quit [*.net *.split]
khimaros has quit [*.net *.split]
manawyrm has quit [*.net *.split]
nikolar has quit [*.net *.split]
gruetzkopf has quit [*.net *.split]
energizer has quit [*.net *.split]
PapaFrog has quit [*.net *.split]
Gooberpatrol66 has quit [*.net *.split]
theruran has quit [*.net *.split]
asarandi has quit [*.net *.split]
eau has quit [*.net *.split]
KitsuWhooa has quit [*.net *.split]
navi has quit [*.net *.split]
rom4ik has quit [*.net *.split]
jeaye has quit [*.net *.split]
runxiyu has quit [*.net *.split]
Bonstra has quit [*.net *.split]
GreaseMonkey has quit [*.net *.split]
marshmallow has quit [*.net *.split]
rorx has quit [*.net *.split]
Arsen has quit [*.net *.split]
ornitorrincos has quit [*.net *.split]
Arthuria has quit [*.net *.split]
fkrauthan has quit [*.net *.split]
steelswords94361 has quit [*.net *.split]
FreeFull has quit [*.net *.split]
wereii has quit [*.net *.split]
m5zs7k has quit [*.net *.split]
deriamis has quit [*.net *.split]
alpha2023 has quit [*.net *.split]
kiboneu has quit [*.net *.split]
divine has quit [*.net *.split]
flx has quit [*.net *.split]
deesix has quit [*.net *.split]
dzwdz has quit [*.net *.split]
froggey has quit [*.net *.split]
ChanServ has quit [*.net *.split]
les has quit [*.net *.split]
ursa-major has quit [Ping timeout: 240 seconds]
rselim has quit [Ping timeout: 240 seconds]
lh has quit [Ping timeout: 240 seconds]
arminweigl has joined #osdev
MiningMarsh has joined #osdev
gmodena has joined #osdev
sidcha has joined #osdev
acidx has joined #osdev
scruffyfurn has joined #osdev
amine has joined #osdev
MrBonkers has joined #osdev
colona_ has joined #osdev
n3t has joined #osdev
cross has joined #osdev
zid has joined #osdev
fedaykin has joined #osdev
m3a has joined #osdev
immibis has joined #osdev
chibill has joined #osdev
nitrix has joined #osdev
msv has joined #osdev
cow321 has joined #osdev
Matt|home has joined #osdev
ring0_starr has joined #osdev
guideX has joined #osdev
ThinkT510 has joined #osdev
pabs3 has joined #osdev
Leftas has joined #osdev
remexre has joined #osdev
sprock has joined #osdev
zhiayang has joined #osdev
Ermine has joined #osdev
Irvise has joined #osdev
bradd has joined #osdev
Yoofie6464463 has joined #osdev
chiselfuse has joined #osdev
\Test_User has joined #osdev
Brnocrist has joined #osdev
jjuran has joined #osdev
getz has joined #osdev
gorgonical has joined #osdev
HumanG33k has joined #osdev
sauce has joined #osdev
travisg has joined #osdev
sortie has joined #osdev
stefanct has joined #osdev
no92_leo has joined #osdev
pie_ has joined #osdev
mpetch has joined #osdev
ghostbuster has joined #osdev
slow99 has joined #osdev
Mutabah has joined #osdev
lanodan has joined #osdev
Pixi has joined #osdev
dostoyevsky has joined #osdev
wgrant has joined #osdev
Jari-- has joined #osdev
Ameisen has joined #osdev
woky_ has joined #osdev
janemba has joined #osdev
j`ey has joined #osdev
LittleFox has joined #osdev
Artea has joined #osdev
mcfrdy has joined #osdev
foxsecu has joined #osdev
qookie has joined #osdev
nadja has joined #osdev
m5 has joined #osdev
kwilczynski has joined #osdev
Ram-Z_ has joined #osdev
sjs has joined #osdev
Goodbye_Vincent1 has joined #osdev
V has joined #osdev
bslsk05 has joined #osdev
nshp has joined #osdev
puck has joined #osdev
JerryXiao has joined #osdev
vancz has joined #osdev
eschaton_ has joined #osdev
mahk has joined #osdev
randm has joined #osdev
dza has joined #osdev
Opus has joined #osdev
basil has joined #osdev
ycp has joined #osdev
gog has joined #osdev
leon has joined #osdev
xvmt has joined #osdev
eck has joined #osdev
bleb has joined #osdev
melnary has joined #osdev
JTL has joined #osdev
CaptainIRS has joined #osdev
sebastiencs has joined #osdev
remn has joined #osdev
erai has joined #osdev
nortti has joined #osdev
exark has joined #osdev
thaumavorio has joined #osdev
amj has joined #osdev
HumanG33k has quit [Max SendQ exceeded]
heat has joined #osdev
k0valski18891621 has joined #osdev
xenos1984 has joined #osdev
elderK has joined #osdev
bauen1 has joined #osdev
xal has joined #osdev
sdomi has joined #osdev
gimli has joined #osdev
Maja has joined #osdev
eluks has joined #osdev
night has joined #osdev
jistr has joined #osdev
DrachenMaus has joined #osdev
tjf has joined #osdev
hbag has joined #osdev
isabella has joined #osdev
PublicWiFi has joined #osdev
cultpony has joined #osdev
XgFgX has joined #osdev
raggi has joined #osdev
hl has joined #osdev
phr3ak has joined #osdev
Benjojo has joined #osdev
cheapie has joined #osdev
surabax has joined #osdev
ddevault has joined #osdev
xtex has joined #osdev
thinkpol has joined #osdev
patwid has joined #osdev
hanemile has joined #osdev
exec64 has joined #osdev
baraq has joined #osdev
mzh has joined #osdev
HeTo has joined #osdev
cow has joined #osdev
dinkelhacker has joined #osdev
mcrod has joined #osdev
sham1 has joined #osdev
danlarkin has joined #osdev
khrbtxyz has joined #osdev
SanchayanMaity has joined #osdev
pax_73 has joined #osdev
imyxh has joined #osdev
Ellenor has joined #osdev
kristinam has joined #osdev
j00ru has joined #osdev
wantyapps has joined #osdev
nohit has joined #osdev
aejsmith has joined #osdev
Terlisimo has joined #osdev
trillion_exabyte has joined #osdev
terrorjack has joined #osdev
ZipCPU has joined #osdev
brynet has joined #osdev
eau has joined #osdev
003AAWJVK has joined #osdev
teroshan has joined #osdev
torresjrjr has joined #osdev
tomaw has joined #osdev
rb has joined #osdev
dennisschagt has joined #osdev
nikolar has joined #osdev
manawyrm has joined #osdev
gruetzkopf has joined #osdev
energizer has joined #osdev
khimaros has joined #osdev
trillion_exabyte has quit [Max SendQ exceeded]
sm2n has quit [Max SendQ exceeded]
m5zs7k has joined #osdev
wereii has joined #osdev
steelswords94361 has joined #osdev
FreeFull has joined #osdev
deriamis has joined #osdev
Arthuria has joined #osdev
alpha2023 has joined #osdev
fkrauthan has joined #osdev
divine has joined #osdev
kiboneu has joined #osdev
flx has joined #osdev
deesix has joined #osdev
froggey has joined #osdev
dzwdz has joined #osdev
les has joined #osdev
leon has quit [Max SendQ exceeded]
JTL has quit [Max SendQ exceeded]
pax_73 has quit [Ping timeout: 248 seconds]
Gooberpatrol66 has joined #osdev
PapaFrog has joined #osdev
theruran has joined #osdev
KitsuWhooa has joined #osdev
asarandi has joined #osdev
navi has joined #osdev
rom4ik has joined #osdev
jeaye has joined #osdev
runxiyu has joined #osdev
marshmallow has joined #osdev
rorx has joined #osdev
GreaseMonkey has joined #osdev
ornitorrincos has joined #osdev
Bonstra has joined #osdev
Arsen has joined #osdev
Gooberpatrol66 has quit [Max SendQ exceeded]
asarandi has quit [Max SendQ exceeded]
ptrc has joined #osdev
SophiaNya has joined #osdev
urandom__ has joined #osdev
gjn has joined #osdev
f_ has joined #osdev
zenomat has joined #osdev
noeontheend has joined #osdev
pitust has joined #osdev
nagitsu has joined #osdev
yuiyukihira has joined #osdev
vismie has joined #osdev
asymptotically has joined #osdev
andreas303 has joined #osdev
Xyon has joined #osdev
DoubleJ has joined #osdev
beto has joined #osdev
shan has joined #osdev
_koolazer has joined #osdev
Griwes has joined #osdev
kline has joined #osdev
FireFly has joined #osdev
jimbzy has joined #osdev
ChanServ has joined #osdev
mrpops2ko has joined #osdev
stux|away has joined #osdev
asarandi has joined #osdev
yuiyukihira has quit [Max SendQ exceeded]
yuiyukihira has joined #osdev
leon has joined #osdev
alice has joined #osdev
trillion_exabyte has joined #osdev
mavhq has joined #osdev
JTL has joined #osdev
Left_Turn has quit [Ping timeout: 260 seconds]
ursa-major has joined #osdev
<bslsk05> ​www.righto.com: The Pentium contains a complicated circuit to multiply by three
<nikolar> whoop new righto article dropped
Brnocrist has quit [Ping timeout: 260 seconds]
gog has quit [Quit: byee]
Brnocrist has joined #osdev
<klys> if you could have a toy to demo a triode, perhaps as an inverter with a button and a flashy light, would you like that
<klys> by triode I mean four-pin vacuum tube
<klys> some logic could of course be used to regulate the voltages and prevent shorts
Marsh has joined #osdev
MiningMarsh has quit [Ping timeout: 245 seconds]
Marsh is now known as MiningMarsh
elderK has quit [Quit: WeeChat 4.5.1]
k_hachig_ has joined #osdev
bauen1 has quit [Ping timeout: 248 seconds]
surabax has quit [Quit: Leaving]
<zid> heat
<heat> zid
<zid> I wrote an OS again
<heat> congrats
<zid> don't
<zid> I want support
<heat> wat
<zid> "Omg that's so tragic, is there anything I can do for you?"
<heat> lol
<zid> I wrote a bunch of acpi code so I could get at the madt to get all my lapid IDs, went to look at the IPI docs and there's just.. a "everybody but me" mode I can use? :/
<zid> lapic*
<zid> then they can cpuid to find their own id when they wake up
<zid> I am hurt
<heat> you're not supposed to use that mode
<zid> stop me
<heat> IPI broadcast ignores offlined CPUs and because of that everyone just does a point-to-point IPI
<zid> they're not offline according to the docs, they're ONLINE
<zid> just not.. started? it's weird
<zid> there's a bit flag 0 that says online or offline, and if they're offline, can they be onlined, and they're all online
<heat> yes those flag semantics are weird
<zid> why no broadcast
<zid> oh there's one idea
<heat> because if e.g the BIOS disables a few CPUs the broadcast will wake those up too
<zid> maybe there are CPUs that the bios detected as bad
<zid> yea
<zid> and then didn't put those into the MP/madt
<zid> I should be avoiding them
<heat> AIUI you'll see them in the MADT, but with !enabled && !online_capable flags
<zid> yea
<zid> so yea, I have my lapic list, I just shoved them into a struct cpu { int lapic_id; } cpus[MAX_CPUS]; for now, I'll walk it later and wake them up.. then I read I needed a 10ms delay, so I think I need to do idt first, and then figure out lapic timer
<zid> THEN I can online
<heat> yeeeeep
<zid> I liked the idea of
<zid> 128 way ipi broadcast to wake up a herd of cpus
<zid> and have them all madly dash to some random cs:ip to try escape
<zid> like when a new xpac in wow launches and everyone wants to get ahead on the quest lines
<zid> so they're not fighting for mob spawns
<zid> "no, *I'M* taking the blk so I can allocate myself a stack *punch*"
<heat> some chipsets have been so fucked such that even bringing up APs (with point-to-point IPIs) in parallel is risku
<zid> bkl*
<zid> ah well, if they're fucked they can fuck off, ez
<zid> oh you can put a PAGE NUMBER in cs? That sounds fun, fill ram with a bunch of mov esp, n*4096
<zid> and have them all start on a different one
<heat> lol christ
<zid> wait wait
<zid> lock xadd [stack], 4096
<heat> for practical reasons that does not work
<zid> 128 cpus all executing the same lock xadd sounds *fun* though
<heat> that's what a certain polish guy would say is PESSIMAL
<zid> can't be worse than linux
osmten has joined #osdev
<heat> but hey could be worse, could be ll/sc
<zid> they spend 100ms calibrating rtdsc and 10ms loading microcode and shit
<zid> according to this random patch from 2023 I found to try clean some of this stuff up
<zid> palralralell bringup patches cus CLOUD IDIOTS were complaining
<zid> that their 128 virtual core webserver machines took forever to boot
<zid> when they're trying to start/stop 4000 vms a second
<bslsk05> ​github.com: Onyx/kernel/arch/x86_64/realmode.S at master · heatd/Onyx · GitHub
<heat> i copy all of that shit into the start page
<zid> no cheating
<heat> (which i also pick as 0)
<zid> they can cpuid their lapic and just index an array for all I care
<zid> lapic id*
<zid> but I'd need a reverse lookup for lapic id
<zid> ur phys base is weird
<heat> yeah that can also work but then you need to be careful if you care about doing timeouts and retries and shit
<zid> mine is 0xffff8 urs is 0xffffd
<heat> if you're wondering, the rest of the code (startup_secondary_32) is in boot.S
<zid> nope
<heat> it's a bit of a mess but also, kind of the same x86 stuff you always do
<zid> I wanna for(int i = 0; i < maxcpus; i++) send_init_ipi(i); sleep(10ms); for(int i = 0; i < maxcpus; i++) if(!cpus[i].online) printf("This guy eating beans");
<zid> not start them all individually
<zid> so I like the idea of THUNDERING HERDing them, or even doing code_page = lapic_id;
<heat> code_page = lapic_id doesn't work
<heat> memory down there is super tight
<heat> plus you max out at lapic 0xff
<heat> anything over goes boom i'd assume
<zid> how big are the page, 4k? then I guess 640/4k = max out at lapic id = 160
<heat> oh how cute, assuming the 640k conventional memory area is there :v
<zid> I mean, it is, on real machines
<zid> have you considered having one of those
Arthuria has quit [Read error: Connection reset by peer]
<heat> sorry i only use efi
<zid> and it has reserved it, it's still there
Arthuria has joined #osdev
<zid> try reclaiming it all
<zid> 000VV000H, where VV is the vector contained in the SIPI message
<zid> so yea, 4k
<zid> lol
<zid> intel's step 5 for "What to do if you're an AP being initialized"
<zid> Executes the CPUID instruction with a value of 0H in the EAX register, then reads the EBX, ECX, and EDX registers to determine if the AP is “GenuineIntel.”
<heat> yes, what other x86 vendor is there?
<heat> x86 is not big and extensible like riscv
<zid> not going to work on my machine :(
<heat> anyway ping me once you get rcu
<zid> I have one of those already
<zid> really crap uptime
sskras has quit [Ping timeout: 260 seconds]
sskras has joined #osdev
bauen1 has joined #osdev
heat has quit [Ping timeout: 248 seconds]
goliath has joined #osdev
sprock has quit [Ping timeout: 260 seconds]
sprock has joined #osdev
sprock has quit [Ping timeout: 272 seconds]
sprock has joined #osdev
Yoofie6464463 has quit [Ping timeout: 252 seconds]
Yoofie646446 has joined #osdev
sprock has quit [Ping timeout: 245 seconds]
sprock has joined #osdev
<bslsk05> ​svardos.org: SvarDOS
* kof673 squints, blinks........so that's a thing.........
Arthuria has quit [Remote host closed the connection]
Yoofie646446 has quit [Read error: Connection reset by peer]
Yoofie646446 has joined #osdev
PublicWiFi has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
PublicWiFi has joined #osdev
rorx has quit [Ping timeout: 272 seconds]
gog has joined #osdev
k_hachig__ has joined #osdev
k_hachig_ has quit [Ping timeout: 248 seconds]
rorx has joined #osdev
k_hachig__ has quit [Ping timeout: 272 seconds]
k_hachig_ has joined #osdev
k_hachig_ has quit [Quit: WeeChat 4.5.1]
Lucretia has joined #osdev
knops has joined #osdev
knops has quit [Ping timeout: 246 seconds]
user71 has joined #osdev
q3lont has joined #osdev
isaneran has joined #osdev
gog has quit [Quit: byee]
netbsduser has joined #osdev
benlyn has joined #osdev
Left_Turn has joined #osdev
osmten has quit [Quit: Client closed]
GeDaMo has joined #osdev
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 244 seconds]
d5k has joined #osdev
d5k has quit [Client Quit]
Left_Turn has joined #osdev
Turn_Left has quit [Ping timeout: 248 seconds]
frkazoid333 has quit [Ping timeout: 260 seconds]
netbsduser has quit [Ping timeout: 276 seconds]
benlyn has quit [Remote host closed the connection]
netbsduser has joined #osdev
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 246 seconds]
levitating has joined #osdev
Left_Turn has joined #osdev
Turn_Left has quit [Ping timeout: 260 seconds]
simpl_e has quit [Ping timeout: 248 seconds]
frytaped has joined #osdev
frytaped has quit [Quit: WeeChat 4.4.2]
frytaped has joined #osdev
frytaped has quit [Remote host closed the connection]
frytaped has joined #osdev
edr has joined #osdev
frytaped has quit [Remote host closed the connection]
surabax has joined #osdev
simpl_e has joined #osdev
levitating has quit [Ping timeout: 246 seconds]
netbsduser has quit [Ping timeout: 252 seconds]
heat has joined #osdev
<Ermine> seems like clangd can't stand C++ in .h headers
<nikolar> as it shouldn't
<nikolar> int class;
Arthuria has joined #osdev
<Ermine> not a lot of people use .hpp suffix for c++ headers
<nortti> I've seen .hh
<nikolar> Ermine: can't you override it
<nikolar> tell it that it's hpp
<Ermine> nortti: you can probably see .cc in those projects
<Ermine> nikolar: actually i can
<nikolar> there we go
<Ermine> thx
<nikolar> lol you're welcome
<heat> clangd can stand C++ in .h if it realizes it's compiling it in C++ mode
<heat> usually with a bunch of heuristics wrt what TUs include that header
<zid> -x cpp should b e nanned
<zid> also be banned
hwpplayer1 has joined #osdev
hwpplayer1 has quit [Read error: Connection reset by peer]
<nikolar> zid: int class!
hwpplayer1 has joined #osdev
<nikolar> should we just add that to all headers
<zid> I mean, if you're running headers through a compiler directly, you already have your own problems to deal with in life
<nikolar> i mean true
<nikolar> but this is clangd
<zid> cringed
goliath has quit [Quit: SIGSEGV]
003AAWJVK is now known as valeriusN
valeriusN is now known as valeriuZz
hwpplayer1 has quit [Ping timeout: 252 seconds]
FreeFull has quit [Ping timeout: 252 seconds]
craigo has joined #osdev
Arthuria has quit [Ping timeout: 272 seconds]
isaneran has quit [Ping timeout: 244 seconds]
kof673 has quit [Ping timeout: 240 seconds]
CryptoDavid has joined #osdev
frytaped has joined #osdev
goliath has joined #osdev
hwpplayer1 has joined #osdev
vdamewood has joined #osdev
Left_Turn has quit [Remote host closed the connection]
Left_Turn has joined #osdev
vinleod has joined #osdev
vdamewood has quit [Ping timeout: 244 seconds]
kof673 has joined #osdev
vinleod is now known as vdamewood
Left_Turn has quit [Remote host closed the connection]
Left_Turn has joined #osdev
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 252 seconds]
<kof673> re: c++ and headers............is .h .c .cpp .hpp .hh simply convention or actually "standardized" anywhere? i might as well use .nasal_daemon .deathstar_3000 file extension it is true "standard headers" is a standard concept...but the contents of a "header" ? e.g. inline functions, code...is there anything in any "standard" saying a "header" must only have declarations and not definitions?
<kof673> if there is no standard, anything goes..............
<kof673> "anything not locked down will be stolen"
<heat> convention
<kof673> stdio.h for C i assume is in the standard, but maybe that is just shorthand and not even required :D
<kof673> that is the preprocessor i guess....
<kof673> meaning, i believe C at least has ".h file" as part of "standards"
<kof673> semi-related too, more practical....can headers have compiler-specific extensions or not, are they required to e.g. have a define to only allow standard things in the header, so that other tools can parse them without toolchain-specific extensions
<kof673> gcc extensions, ms vc, whatever...........this is sometimes a real problem for a cross-compiler if the headers are using things only a different compiler supports
<kof673> i bet the answer is "anything goes"....just saying, where are the contents of system headers in this case, fully standardized? they must provide some function declaration or type or define, other than that...........
LainExperiments has joined #osdev
elderK has joined #osdev
LainExperiments6 has joined #osdev
LainExperiments7 has joined #osdev
LainExperiments has quit [Ping timeout: 240 seconds]
LainExperiments6 has quit [Ping timeout: 240 seconds]
sbalmos has quit [Quit: WeeChat 4.5.1]
k4m1 has quit [Ping timeout: 260 seconds]
k4m1 has joined #osdev
LainExperiments has joined #osdev
LainExperiments7 has quit [Ping timeout: 240 seconds]
sbalmos has joined #osdev
the_oz has joined #osdev
the_oz_ has joined #osdev
the_oz has quit [Ping timeout: 260 seconds]
q3lont has quit [Quit: Leaving]
<Jari--> I forgot this
<Jari--> what configuration does qemu take to use the host IP, e.g. to run a web server
<Jari--> I guess thats bridged?
<zid> heat
<zid> lapic, its address is FEE0xxxx by default, do you carve that out from your allocator near boot, or do you just move the lapic
user71 has quit [Quit: Leaving]
<zid> oh I have AN HOLE there
<zid> *ignores the issue for now*
<zid> *ignores PAT too*
elderK has quit [Quit: WeeChat 4.5.1]
<kof673> qemu has tap stuff quoth the qemu.org docs: Using TAP network interfaces . This is the standard way to connect QEMU to a real network
m5_ has joined #osdev
<kof673> "standard" of course means host-specific
m5_ has quit [Quit: Quit]
m5_ has joined #osdev
m5_ has quit [Client Quit]
m5_ has joined #osdev
demindiro has joined #osdev
<demindiro> Assembly is surprisingly endearing. It makes some things more difficult but the control it gives you over stack and register usage allows neat tricks.
<demindiro> And also no fuzzing with types or UB or other stuff like that, just bits & bbytes.
<demindiro> I also think I'm going to redesign my scripting language (again) since the core alone is already 1200 lines, which I probably won't be able to reduce and is already over my target for "minimal" and approaching the limit for "simple"
<demindiro> Maybe I should model it more like a form of assembly...
<GeDaMo> Have you considered Forth?
<demindiro> It's something that has been on my TODO list for a while
<demindiro> I should put my mind to that first
<demindiro> AFAIK Forth doesn't really have a concept of "immutable everything" though, which I consider critical
<demindiro> (at least structures passed around as values, the outside world is mutable of course. Not much I can do about that)
netbsduser has joined #osdev
<nortti> you may find other concatenative languages like factor useful to look at, then
<geist> one thing i also point out sometimes at work is with assembly once you write it it stays that way forever. short of an assembler somehow picking up a bug, it'll not assemble any other way
<geist> vs having to deal with compilers deciding to restructure your stuff. for better or worse
<nortti> there are cases where different assemblers might choose differently, in case of multiple possible encodings of an instruction or when handling pseudoinstructions like loads of immediates
<kof673> 1200 lines of what? </rhetorical>
<kof673> 3d game engine, just 20 lines of JS
<nortti> actually, how do risc-v linker relaxations interact with assembly? I presume you'll need to mark yourself where you want them to be applicable
<demindiro> x64 assembly
<geist> nortti: they dont. basically the assembler always emits the long form of the instruction and the linker is allowed to reduce it to a smaller one
<geist> to accomplish this the assembler also spits out a bunch of extra relocations that assist with relaxation
<geist> basically every point where relaxing an instruction would cause other ones to need to be tweaked (short branches that now need to be smaller, etc)
<geist> well okay they do interact in that regard
<geist> the assembler leaves enough context for the linker to do its work
<nikolar> oh geist is here
<nikolar> hello geist
<geist> hiya!
<geist> i've been quiet lately but still read along
<geist> mostly just busy and dealing with house shit (tree fell on my house, etc)
<nikolar> oh i hope that gets resolved
<geist> yep, just dealing with contractors and insurance. only real risk is getting rain in the house in the interim
<geist> but it's patched up enough now that it should be okay
<nikolar> i hope your pdps and vaxen are safe :)
netbsduser has quit [Ping timeout: 260 seconds]
GeDaMo has quit [Quit: 0wt 0f v0w3ls.]
the_oz_ has quit [Ping timeout: 245 seconds]
Turn_Left has quit [Remote host closed the connection]
Turn_Left has joined #osdev
demindiro has quit [Quit: Client closed]
hwpplayer1 has quit [Remote host closed the connection]
Left_Turn has joined #osdev
Turn_Left has quit [Ping timeout: 244 seconds]
Turn_Left has joined #osdev
craigo has quit [Read error: Connection reset by peer]
Left_Turn has quit [Ping timeout: 265 seconds]
<heat> zid, yeah if firmware didn't carve that out it's broken
<zid> I added the UC bit to that mapping too in the page table, but I haven't checked the little PAT table to see if that means what it should
<heat> carve that out or even add it in the first place, usually that high fourth gb is never wired with any memory but PCI and chipset shit, as you may know
goliath has quit [Quit: SIGSEGV]
<zid> yea, I figured that's where my pci-e and shit are too, cus I have a lot missing
Arthuria has joined #osdev
LainExperiments has quit [Ping timeout: 240 seconds]
elderK has joined #osdev
frkazoid333 has joined #osdev
dzwdz has quit [Ping timeout: 252 seconds]
dzwdz has joined #osdev
LainExperiments has joined #osdev
<geist> oh hey hackernews picked up on fuchsia again
<geist> happens every once in a while
<heat> hey at least it doesn't look negative
<geist> it's fresh, not enough time yet for the trolls to come out
bauen1 has quit [Ping timeout: 252 seconds]
Turn_Left has quit [Read error: Connection reset by peer]
Lucretia has quit [Remote host closed the connection]
<nikolar> what's it about
<heat> linux containers vs fuchsia
<heat> it was a fosdem talk
<Ermine> we'll see at morning