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
xenos1984 has joined #osdev
nvmd has quit [Quit: Later, nerds.]
heat has joined #osdev
freakazoid12345 has quit [Read error: Connection reset by peer]
ss4 has quit [Read error: Connection reset by peer]
ElectronApps has joined #osdev
freakazoid333 has joined #osdev
zaquest has quit [Remote host closed the connection]
h4zel has joined #osdev
h4zel has quit [Client Quit]
h4zel has joined #osdev
zaquest has joined #osdev
<Griwes> > PANIC: Unexpected IRQ: 6
<Griwes> oh that's not good
<Griwes> ah *literally* ud2 because of a missing return statement
<Griwes> nice
<gog> PANIC! at the IRQ
<Oli> Pattent pending
gog has quit [Ping timeout: 252 seconds]
mahmutov has quit [Ping timeout: 252 seconds]
gog has joined #osdev
srjek|home has quit [Ping timeout: 260 seconds]
ElectronApps has quit [Ping timeout: 252 seconds]
junon has quit [Ping timeout: 252 seconds]
junon has joined #osdev
Oli has quit [Quit: Lost terminal]
Oli has joined #osdev
sts-q has quit [Ping timeout: 252 seconds]
gog has quit [Quit: byee]
sts-q has joined #osdev
terrorjack has quit [Read error: Connection reset by peer]
kuler has joined #osdev
kuler has quit [Remote host closed the connection]
kuler has joined #osdev
devcpu has quit [Quit: leaving]
vdamewood has joined #osdev
kuler has quit [Remote host closed the connection]
kulernil has joined #osdev
freakazoid343 has joined #osdev
freakazoid333 has quit [Ping timeout: 250 seconds]
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kulernil has quit [Quit: Leaving]
rb has quit [Remote host closed the connection]
rwb has joined #osdev
bradd has joined #osdev
vdamewood has joined #osdev
devcpu has joined #osdev
jimbzy has quit [Ping timeout: 260 seconds]
[itchyjunk] has joined #osdev
Oli has quit [Quit: leaving]
[itchyjunk] has quit [Remote host closed the connection]
ZombieChicken has joined #osdev
jimbzy has joined #osdev
xenos1984 has quit [Ping timeout: 252 seconds]
xenos1984 has joined #osdev
ZombieChicken has quit [Quit: WeeChat 3.2]
heat has quit [Ping timeout: 252 seconds]
kuler has joined #osdev
<geist> yah ud2s instead of a warning are annoying as heck
<geist> but seems to be the way of all compilers now
<geist> on top of that, grepping dissassembly for UD2 isnt' necessarily sufficient (though interesting) since sometimes the compiler will go ahead and insert a UD2 in essentially dead code that it can't 100% determine is such
<moon-child> i think there's a warning, but you have to turn it on?
kuler has quit [Quit: Leaving]
<geist> not that i know of. at least on clang. rationale: undefined code paths are sometimes only determined post-optimization and they dont want to emit warnings like that
<geist> that's at least what the clang devs said
<geist> gcc has some optimization triggered warnings, though i think they also try to keep that to a minimum
<geist> it seems like a bit of a cop-out but there ya have it
<moon-child> I think almost all of gcc's non-trivial (flow sensitive) warnings are optimization triggered
<moon-child> or at least they used to be. I think they have been trying to do less of that recently, because it means you're prone to lose location information, and you don't get warnings at -O0
<geist> yah
<geist> you'd think that most undefined language stuff should be discoverable at -O0 but it guess clang at least only does some expensive stuff in the interest of optimizations. lots of dead code removal, etc
<zid> yea without O levels you get shitty warnings in gcc, and it makes sense and I don't blame it
<zid> Doing the analysis that's required for the optimization to produce the diagnostic but then not editing the output based on it is a bit of a waste
<zid> and probably makes the code messier too
mahmutov has joined #osdev
bradd has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
bradd has joined #osdev
lleo has joined #osdev
vdamewood has quit [Quit: Life beckons]
<geist> yah i'm guessing one of the problems is farther down the optimization path you go, the harder it is to generate a warning that points toa particular line
<geist> since you're farther and farther from the original code
<zid> nod
<moon-child> same problem w/ debug info
<zid> When LTO is involved it often can't even give you the relevent /function/ that produced a machine code line
<zid> it becomes a lot more abstract and synthetic
GeDaMo has joined #osdev
lleo has quit [Read error: Connection reset by peer]
rwb is now known as rb
ElectronApps has joined #osdev
ElectronApps has quit [Client Quit]
ElectronApps has joined #osdev
j`ey_ is now known as j`ey
ElectronApps has quit [Remote host closed the connection]
ElectronApps has joined #osdev
ElectronApps has quit [Remote host closed the connection]
ElectronApps has joined #osdev
ElectronApps has quit [Remote host closed the connection]
ElectronApps has joined #osdev
ckie has quit [Quit: off I go~]
ckie has joined #osdev
bradd has quit [Quit: No Ping reply in 180 seconds.]
bradd has joined #osdev
ElectronApps has quit [Remote host closed the connection]
ElectronApps has joined #osdev
ElectronApps has quit [Remote host closed the connection]
ElectronApps has joined #osdev
mahmutov has quit [Ping timeout: 252 seconds]
Oli has joined #osdev
<ZetItUp> i was having some issues with filenames while working on a FAT implementation, so when i finally has some kind of read function working, i tried adding a write and delete function, added some stuff, fixed alot of error and then i updated the test data and just copy/pasted the filename all over the place where i needed it
<ZetItUp> incl. DeleteFile()
<ZetItUp> well good news is, my DeleteFile() function works :D
<sortie> ZetItUp, woohoo
<sortie> Filesystem fun :)
<clever> i still dont have SD write, so i havent bothered looking into fs write
<ZetItUp> im looking for a kind of design like "Load the basics, have a file with a list of the drivers you want to load from disk, point at where they are and load them"
<clever> ZetItUp: that sounds a lot like how grub and linux function
<ZetItUp> yeah
<clever> i also dont have any loadable module support in my current code
<clever> chainloading doesnt really count
lg has quit [Ping timeout: 246 seconds]
lg has joined #osdev
<ZetItUp> i don't really know what stuff i want to count as "basic" yet either, i guess ill figure it out when i get to that point, if it really needs to be loaded before something else :D
<Oli> I consider that getting tests to pass on FAT12 filesystem construction as satisfying. Congratulations for your achievements on, ZetItUp!
ElectronApps has quit [Remote host closed the connection]
<ZetItUp> Oli im using a FAT32 fs right now, but i have dumbd it down alot haha
<ZetItUp> it's basicly FAT16 but it reads a FAT32 disk image
<ZetItUp> only taking care of the 8.3 filenames right now and skipping long filenames etc
<ZetItUp> just wanted to start somewhere
<ZetItUp> according to the documents a long filename can span over several files
<Oli> FAT16 and FAT32 seems nice to work with in comparison; on FAT12, 2 allocation tables abc and xyz, are merged in three bytes, as cb za yx!
<ZetItUp> yeah FAT12 seems to be way too complicated to even touch
<clever> Oli: at least its not RAW10 from a camera sensor!
<clever> 4 10bit ints, are stored in 5 bytes, as 4 8bit quantities, and then 4 2bit quantities
<clever> so you need to take an 8bit fragment, and a 2bit fragment from different places, and piece them together
gog has joined #osdev
<ZetItUp> why do people design stuff like that :|
<ZetItUp> i mean sure to save space
<ZetItUp> but still
<clever> ZetItUp: if you only care about 8bit samples, you can discard the 5th byte with the lower 2bit fragments
<clever> so whats left, is just a flat array of 4 8bit samples
<ZetItUp> hmm
<ZetItUp> https://pastebin.com/6B05FDRY test output :D
<ZetItUp> now i just need to make it work with the kernel
[itchyjunk] has joined #osdev
<Oli> I also intend to let long file name support for later, and focus on other scopes of the software I feel more attracted working in for now. clever: A decoder for that data structure sounds as satisfying to implement once solved!
ephemer0l has quit [Remote host closed the connection]
<clever> Oli: instead of fixing the fat32 support in LK, i just extended the ext2 to support ext4
<clever> ext already has long filenames
<kingoffrance> eh, that raw10 actually sounds somewhat sensible. compare 2 alternatives <8 bits><2 bits, 6 unused>[repeat 3x for 40 bits total] == 8 bytes total needed, versus 5 and storing directly adjacent: <8 bits><2 bits, 6 bits><2 bits, 2 bits, 4 bits> <4 bits, 2 bits, 2 bits> <6 bits, 2 bits> 5 bytes but more complicated/arbitrary masks needed
<Oli> ZetItUp; I recall reading about an approach to keep a nice 8 bit array of originally 10 bits of data, by storing it as lossy, logarithmic data on 8 bits; entries with lower value, being more accurately represented than higher valued entries on.
<clever> kingoffrance: exactly
<clever> kingoffrance: page 72, details each of the standard formats for a CSI camera
<clever> kingoffrance: the unicam (csi input peripheral) has very limited repacking support, to shuffle those bits around as they get stored to ram
<clever> and then the ISP deals with converting the raw data in ram, into rgb
nyah has joined #osdev
ElectronApps has joined #osdev
srjek|home has joined #osdev
gxt_ has quit [Remote host closed the connection]
gxt_ has joined #osdev
dude12312414 has joined #osdev
<dzwdz> does anyone here use clang instead of gcc for cross-compilation?
<dzwdz> the wiki article on it is incomplete and i wonder how hard it is to setup
lleo has joined #osdev
freakazoid12345 has joined #osdev
pretty_dumm_guy has joined #osdev
freakazoid343 has quit [Ping timeout: 265 seconds]
vai_ has quit [Quit: Lost terminal]
vai has joined #osdev
ElectronApps has quit [Remote host closed the connection]
h4zel has quit [Ping timeout: 252 seconds]
Vercas has joined #osdev
mahmutov has joined #osdev
xenos1984 has quit [Remote host closed the connection]
xenos1984 has joined #osdev
lleo has quit [Ping timeout: 252 seconds]
h4zel has joined #osdev
heat has joined #osdev
pitust[m] has joined #osdev
<heat> dzwdz: define cross compilation
<heat> compiling bare metal code should be pretty easy, just pass the right flags (ffreestanding and whatnot) and the correct --target
<dzwdz> oh right, that was too broad of a term ^^
<dzwdz> yup, i meant compiling for bare metal
<dzwdz> does clang have its own linker?
<heat> yes, lld
<heat> you may or may not have it, it's kind of optional and usually its own package in linux
<dzwdz> i don't
<dzwdz> i guess it uses the gnu linker as a default?
LittleFox has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
<heat> yes
<dzwdz> aight
<dzwdz> i'll try adding clang support to my kernel then, it sounds pretty easy
LittleFox has joined #osdev
wootehfoot has joined #osdev
ss4 has joined #osdev
wootehfoot has quit [Ping timeout: 252 seconds]
anon16_ has joined #osdev
dude12312414 has quit [Ping timeout: 276 seconds]
dude12312414 has joined #osdev
freakazoid12345 has quit [Ping timeout: 268 seconds]
<heat> ahhh i forgot to do something special for the 1000th commit
<heat> well, nothing more special than fixing a typo I guess
<jimbzy> Nice job, heat.
terrorjack has joined #osdev
<heat> i had thought of incrementing the version number last night but I completely forgot I got bored of having a number and just set the version to "rolling" 2 years ago
z_is_stimky_ has quit [Read error: Connection reset by peer]
z_is_stimky has joined #osdev
ss4 has quit [Quit: Leaving]
wootehfoot has joined #osdev
ephemer0l has joined #osdev
<pitust[m]> use the commit hash as a version
MiningMarsh has quit [Ping timeout: 246 seconds]
freakazoid343 has joined #osdev
NeoCron has joined #osdev
dude12312414 has quit [Remote host closed the connection]
dude12312414 has joined #osdev
GeDaMo has quit [Quit: Leaving.]
dude12312414 has quit [Quit: THE RAM IS TOO DAMN HIGH]
wootehfoot has quit [Read error: Connection reset by peer]
unmanbearpig has quit [Ping timeout: 252 seconds]
mahmutov has quit [Ping timeout: 252 seconds]
unmanbearpig has joined #osdev
anon16_ has quit [Read error: Connection reset by peer]
freakazoid343 has quit [Ping timeout: 265 seconds]
mahmutov has joined #osdev
srjek|home has quit [Ping timeout: 268 seconds]
heat has quit [Ping timeout: 252 seconds]
vdamewood has joined #osdev
dormito has quit [Ping timeout: 252 seconds]
dormito has joined #osdev
freakazoid12345 has joined #osdev
pretty_dumm_guy has quit [Quit: WeeChat 3.3]
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
X-Scale has quit [Ping timeout: 252 seconds]
X-Scale` has joined #osdev
vdamewood has joined #osdev
MiningMarsh has joined #osdev
jafarlihi has joined #osdev
vinleod has joined #osdev
jafarlihi has quit [Quit: WeeChat 3.3]
vdamewood has quit [Ping timeout: 252 seconds]
heat has joined #osdev