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
matt|home has quit [Ping timeout: 256 seconds]
<geist> Yeah just checked, does basically the same thing. The difference is i also have an ASSERT_MSG version which also takes an additional printf style arg
<klange> I just write assert(cond && "Some extra message") if I want something readable
<moon-child> but what if you wanna say assert(x < 5, "x was %d :/", x)
<klange> then you will suffer
fly_ has quit [Quit: Lost terminal]
<geist> Right the latter is precisely what i use it for
<geist> Very useful
sortie has quit [Quit: Leaving]
hmmmm has joined #osdev
elastic_dog has quit [Ping timeout: 245 seconds]
dutch has quit [Quit: WeeChat 3.2]
dutch has joined #osdev
elastic_dog has joined #osdev
moon-child has joined #osdev
<gorgonical> Okay can anyone give me an idea about why I can't get u-boot to work on my pine64-lts? I have the u-boot SPL booting, and trustedfirmware's bl31 starting. But that sequence bootloops
<bslsk05> ​pastebin.com: U-Boot SPL 2020.04-rc3-dirty (Aug 07 2021 - 20:02:57 -0400)DRAM: 2048 MiBTry - Pastebin.com
<gorgonical> Basically, my understanding is that the rest of u-boot should be at that address 0x4a000000, but what loads it there? I dd'd the u-boot-sunxi-with-spl.bin to where it said to put it, but this output over serial makes me think something is supposed to actually copy u-boot there.
gog has quit [Ping timeout: 240 seconds]
sts-q has quit [Ping timeout: 272 seconds]
ElectronApps has joined #osdev
Izem has joined #osdev
flx-- has joined #osdev
sts-q has joined #osdev
flx- has quit [Ping timeout: 258 seconds]
ElectronApps has quit [Read error: Connection reset by peer]
ElectronApps has joined #osdev
srjek|home has joined #osdev
srjek has quit [Ping timeout: 258 seconds]
Izem has quit [Ping timeout: 258 seconds]
Izem has joined #osdev
dh` has joined #osdev
srjek_ has joined #osdev
sm2n_ is now known as sm2n
srjek|home has quit [Ping timeout: 256 seconds]
srjek_ has quit [Ping timeout: 258 seconds]
shikhin has joined #osdev
GeDaMo has joined #osdev
froggey has quit [Ping timeout: 252 seconds]
YuutaW has quit [Ping timeout: 240 seconds]
froggey has joined #osdev
YuutaW has joined #osdev
Izem has quit [Ping timeout: 258 seconds]
flx-- has quit [Remote host closed the connection]
flx- has joined #osdev
Izem has joined #osdev
mahmutov has joined #osdev
Izem has quit [Quit: Going offline, see ya! (www.adiirc.com)]
lleo has joined #osdev
<klange> Weather has me feeling completely unmotivated... bah...
<moon-child> eh...I'm feeling demotivated despite extremely good weather!
<moon-child> at least you have an excuse :)
mctpyt has quit [Ping timeout: 272 seconds]
lleo has quit [Ping timeout: 276 seconds]
elastic_dog has quit [Ping timeout: 256 seconds]
elastic_dog has joined #osdev
regreg has joined #osdev
iorem has joined #osdev
regreg has quit [Ping timeout: 276 seconds]
iorem has quit [Ping timeout: 258 seconds]
pretty_dumm_guy has joined #osdev
pretty_dumm_guy has quit [Client Quit]
pretty_dumm_guy has joined #osdev
sortie has joined #osdev
ElectronApps has quit [Remote host closed the connection]
gorgonical has quit [Ping timeout: 245 seconds]
immibis has quit [Ping timeout: 245 seconds]
valerius_ has joined #osdev
seds has quit [Ping timeout: 256 seconds]
gorgonical has joined #osdev
kwilczynski has joined #osdev
Burgundy has quit [Ping timeout: 256 seconds]
moon-child has quit [Ping timeout: 245 seconds]
Benjojo has joined #osdev
grange_c has joined #osdev
seds has joined #osdev
z_is_stimky has joined #osdev
moon-child has joined #osdev
dennis95 has joined #osdev
zhiayang has joined #osdev
janemba has quit [Ping timeout: 245 seconds]
janemba has joined #osdev
anon16_ has quit [Ping timeout: 250 seconds]
charco has joined #osdev
anon16_ has joined #osdev
Burgundy has joined #osdev
wereii has quit [Quit: ZNC - https://znc.in]
wereii has joined #osdev
bradd has joined #osdev
dennis95_ has joined #osdev
dennis95 has quit [Killed (NickServ (GHOST command used by dennis95_))]
dennis95_ is now known as dennis95
gog has joined #osdev
Darksecond has joined #osdev
sts-q has quit [Remote host closed the connection]
sts-q has joined #osdev
pretty_dumm_guy has quit [Quit: WeeChat 3.2]
diamondbond has joined #osdev
dh` has joined #osdev
dh` has quit [Changing host]
Izem has joined #osdev
<Izem> why is ibm basic listed as an operating system for the ibm pc?
<zid> because it boots into the basic floppy disk?
<zid> dos is a paid product
<clever> zid: basic has even come in the "bios" rom on some older versions
<clever> so it boots to basic, even with the floppy drive missing
Izem has quit [Ping timeout: 256 seconds]
gog has quit [Ping timeout: 245 seconds]
Izem has joined #osdev
Izem has quit [Quit: Going offline, see ya! (www.adiirc.com)]
DanDan has quit [Ping timeout: 240 seconds]
zoey has joined #osdev
DanDan has joined #osdev
mctpyt has joined #osdev
diamondbond has quit [Quit: Leaving]
dude12312414 has joined #osdev
Izem has joined #osdev
dude12312414 has quit [Quit: THE RAM IS TOO DAMN HIGH]
nismbu has quit [Ping timeout: 258 seconds]
GeDaMo has quit [Ping timeout: 240 seconds]
GeDaMo has joined #osdev
nismbu has joined #osdev
Izem has quit [Ping timeout: 250 seconds]
Izem has joined #osdev
Izem has left #osdev [#osdev]
gog has joined #osdev
mctpyt has quit [Ping timeout: 256 seconds]
matt|home has joined #osdev
fly_ has joined #osdev
mctpyt has joined #osdev
fly_ has quit [Client Quit]
eschaton_ has joined #osdev
isaacwoods has joined #osdev
devcpu has quit [Remote host closed the connection]
dennis95 has quit [Quit: Leaving]
tacco has joined #osdev
<nur> on x86 is interrupt 0 mapped to interrupt vector 20 or something? I am trying to get the timer to fire an interrupt and I get it on... 0x20.
<nur> at least according to qemu
<nur> 0: v=20 e=0000 i=0 cpl=0 IP=0008:0010025e pc=0010025e SP=0010:00106f28 env->regs[R_EAX]=00000300
<zid> IRQs go to an offset interrupt vector in most setups
<zid> PIC controls it unless you're using lapics or whatever
<zid> because the low interrupts are reserved for exceptions
<geist> nur: right, it's part of the PIC setup (two pics) to give an offset of of which vector to deliver
<geist> since 0-0x1f are reserved for exceptions on x86, the first obvious place to deliver PIC interrupts are 0x20 - 0x2f
<nur> ahhhh
paulbarker has joined #osdev
<zid> you can overlap them if you want but it makes it pretty hard to tell them apart
<geist> so some firmware before you must have configured it that way
<nur> so in the interrupt table do I set up 0x20 for irq0 or 0x0?
<zid> I think DOS actually did have them overlapped?
theruran has joined #osdev
SanchayanMaity has joined #osdev
jakesyl has joined #osdev
<geist> nur: 0x20
<geist> if you configure the PIC that way, but it's a nice default way to do it
<geist> and yes classic DOS/BIOS configured it another way, but that was a mistake because someone at IBM didn't read the 8088 manual close enough
<geist> and they dealt with it forever
<nur> man
<geist> honestly not sure why you are observing it already configured at 0x20, unless you're running a bootloader or you copy/pasted the PIC setup code
<geist> since coming out of the BIOS it is probably conigured somewhere else
<nur> also the interrupt only fires once, which is weird. I'm probably doing something wrong wrt loading the timer value.
<zid> seabios uefi or something maybe?
<nur> I copy pasted the PIC setup code.
<geist> nur: correct, you have to EOI (end of interrupt) acknolwedge with the PIC
<geist> ah yes okay, if you look at the setup code it probably configures the offset
<nur> iret does the EOI right?
<geist> it may be non obvious but basically there's a register in there somewhere where you provide the top 5 bits of the IRQ
<geist> er IRQ Vector, hence why you have to configure it to a multiple of 8
<geist> nur: honestly i dont remember the specific details enough
<geist> i dont think so, no.
<nur> well, a clue.
<nur> thanks :)
<geist> right
<geist> fairly certain you have to EOI the PIC, but i've dealt with so many interrupt controllers they just blur together and PIC is particularly wonky (becausei t's old)
<nur> thanks! this helps a lot
<sortie> I have coffee and a crazy plan
<sortie> It's time to migrate my https://sortix.org host to another host and proxy it into a VM running my OS. Already got a prototype and why not just make it official
<bslsk05> ​sortix.org: The Sortix Operating System
<geist> oh no sortie is nuts
<geist> someone, quick sneak a downer in his cup!
<geist> he's outtta control!
<sortie> The obvious risks is that if my OS crashes, it can impact the availability of the OS
<sortie> And who knows how well this scales
<sortie> Look at my crazy recklessness!
<sortie> I don't even have cookies on my domain!
srjek_ has joined #osdev
srjek_ is now known as srjek
<sham1> No cookies? Blashemy
<kingoffrance> no, he's sane. coffee and a crazy plan. crazy plan, or crazy plan then coffee, would be insane
regreg has joined #osdev
<kingoffrance> he has maintained the priority/hierarchy
<kingoffrance> coffee first
<nur> HUZZAH MY TIMER WORKS
<nur> thanks room
<zid> channel
<nur> po-tay-to, po-tah-to
<gog> podate
<sortie> Time to augment my coffee with snacks
<kingoffrance> see, he knows how to avoid anti-pattern
<nur> cheers sortie! I too should snack to celebrate except it's 3:21 am and snacks are a bad idea.
<sortie> nur, that has never stopped me before
<nur> I'm still pleased with myself that I made a great pasta last night but I am out of anchovies
XgF has joined #osdev
devcpu has joined #osdev
<nur> time to move on to my next impossible task, pagetables
<j`ey> nur: fun!
<sortie> OK I'm out of snack, this crazy plan of mine calls for beer
<sortie> Now I'm translating .htaccess into httpd.conf(5)
mctpyt has quit [Ping timeout: 252 seconds]
GeDaMo has quit [Quit: Leaving.]
pretty_dumm_guy has joined #osdev
pretty_dumm_guy has quit [Client Quit]
pretty_dumm_guy has joined #osdev
pretty_dumm_guy has quit [Client Quit]
pretty_dumm_guy has joined #osdev
pretty_dumm_guy has quit [Client Quit]
pretty_dumm_guy has joined #osdev
regreg has quit [Ping timeout: 240 seconds]
<geist> nur: yay! did you have to EOI it?
<geist> what i never remember precisely is whether or not it's edge or level, and when you have to EOI (or if you use the auto-EOI feature, etc)
<geist> there's some setup details with the PIC that are a bit wonky. paradoxically lots of newer interrupt controllers tend to be simpler to operate
devcpu has quit [Quit: leaving]
mahmutov has quit [Ping timeout: 258 seconds]
<sortie> My OS is now self-hosting its website!
<sortie> $ curl -s --head https://sortix.org | grep -Ei server
<sortie> Server: OpenBSD httpd (Sortix)
<bslsk05> ​sortix.org: The Sortix Operating System
<sortie> It even uses a build of my OS built under my OS every night
<sortie> I see you, Googlebot/2.1, crawling my OS
<mjg> w00t
<mjg> how many reqs/s can you do?
<sortie> All of them
<mjg> :)
<zid> sortie: yea that was what I wanted to get around to my kernel doing
<zid> I figured it was easier than doing a graphical toolkit blah blah
<zid> I just spit out html tables
<zid> for viewing random kernel structs etc
mctpyt has joined #osdev
Izem has joined #osdev
zoey has quit [Ping timeout: 250 seconds]
sortie has quit [Quit: Leaving]
dutch has quit [Quit: WeeChat 3.2]
tacco has quit []
dutch has joined #osdev
Burgundy has quit [Ping timeout: 245 seconds]
Izem has quit [Ping timeout: 245 seconds]
isaacwoods has quit [Quit: WeeChat 3.2]