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
pabs3 has quit [Ping timeout: 248 seconds]
Matt|home has joined #osdev
pabs3 has joined #osdev
edr has quit [Quit: Leaving]
goliath has quit [Quit: SIGSEGV]
thaumavorio has quit [Quit: ZNC 1.8.2 - https://znc.in]
thaumavorio has joined #osdev
simjnd has joined #osdev
simjnd has quit [Ping timeout: 276 seconds]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #osdev
frkazoid333 has joined #osdev
simjnd has joined #osdev
simjnd has quit [Ping timeout: 276 seconds]
corinne has joined #osdev
dude12312414 has quit [Ping timeout: 244 seconds]
dude12312414 has joined #osdev
jcea has quit [Ping timeout: 248 seconds]
simjnd has joined #osdev
simjnd has quit [Ping timeout: 276 seconds]
remexre has quit [Remote host closed the connection]
remexre has joined #osdev
bliminse has quit [Quit: leaving]
bliminse has joined #osdev
simjnd has joined #osdev
Lucretia has joined #osdev
simjnd has quit [Ping timeout: 248 seconds]
xvmt has quit [Ping timeout: 252 seconds]
<klys> realizing pre-2009 debian-archive snapshots are no more.
Pixi` has quit [Quit: Leaving]
Pixi has joined #osdev
simjnd has joined #osdev
corinne has quit [Remote host closed the connection]
fedaykin has quit [Ping timeout: 244 seconds]
fedaykin has joined #osdev
GeDaMo has joined #osdev
kata has quit [Quit: ZNC 1.9.1 - https://znc.in]
fedaykin has quit [Ping timeout: 248 seconds]
fedaykin has joined #osdev
jjuran has quit [Ping timeout: 244 seconds]
jjuran has joined #osdev
jjuran has quit [Remote host closed the connection]
jjuran has joined #osdev
pebble has joined #osdev
<pie_> how does a 16550a uart, and peripherals in general know when like..an operation has finished and they need to do something, or something like that?
<pie_> the cpu gets an IRQ, but the UART doesnt seem to get an irq from the cpu
<GeDaMo> There will be a signal line or possibly a command sent to acknowledge the interrupt
<heat> i don't understand the question
<heat> what is "an operation"
<heat> and why would the UART need an irq
<heat> (from the CPU)
autarkied has joined #osdev
<pie_> heat: i dont know how this works at all
<pie_> trying a different way; how does the cpu send a byte over the UART?
<heat> ok
<heat> there's this thing called"IO ports"
<heat> which is basically something you write to with a magic instruction
<pie_> right
<heat> and writing sets off a bunch of magical electrical signals that end up telling the peripheral "hey someone write X to port Y"
<heat> s/write/wrote/
<bslsk05> ​<heat*> and writing sets off a bunch of magical electrical signals that end up telling the peripheral "hey someone wrote X to port Y"
<heat> so it effectively works interrupt-like, by default, because there's no such thing as polling in the electrical world
<nikolar> Alternatively, the peripheral could be memory mapped, so instead of a special instruction, you use a normal memory store
<pie_> ok but what does that look like between the cpu and the uart
netbsduser` has joined #osdev
<heat> memory mapped IO is similar, but the "memory" you're accessing isn't memory, but rather the CPU decodes that into electrical signals and messages and sends it down to the peripheral
<GeDaMo> Wires. Lots of wires. :|
<heat> it depeds.
<pie_> theres a clock pin, but i assume thats always clocking because something needs to drive the tx/rx side?
<pie_> though the whole point is that its Asynchronous so...?
<heat> idk man i'm not an electrical guy
<heat> the device can be connected in various ways
<GeDaMo> You also have read and write wires so the CPU can tell the device what's happening
<heat> sometimes it's part of the southbridge (so tightly integrated with the motherboard)
<heat> sometimes it's on the PCIe bus (read the PCIe spec for details on all sorts of electrical wiring and protocols it uses)
<GeDaMo> pie_: you might be interested in some of Ben Eater's videos
<GeDaMo> Particularly the ones where he makes a 6502 computer
<autarkied> What do you think about making a Linux kernel based operating system? Maybe it's not a 'complete' OSDev from the ground up but the idea of using just Linux kernel and nothing else interests me, while I struggle to understand how to compose it really.
<bslsk05> ​'“Hello, world” from scratch on a 6502 — Part 1' by Ben Eater
<pie_> i guess if the uart is integrated into the chipset you arent really exposed to how the cpu-uart side of communication works
<heat> autarkied: a linux distro?
<heat> see linux from scratch
<autarkied> Not really a linux distro.
<autarkied> I'm not gonna use a de, init system that premade. Just do everything from scratch except kernel
<heat> ok
<autarkied> maybe a Linux distro but a different kind
<heat> so like android
<autarkied> i think yes, like that
<GeDaMo> I think Android still has a lot of standard user space stuff
<heat> android has some standard user space stuff yea
<heat> but most of it is NIH'd into oblivion
<heat> for {google, licensing} reasons
autarkied has quit [Ping timeout: 272 seconds]
fedaykin has quit [Ping timeout: 245 seconds]
fedaykin has joined #osdev
autarkied has joined #osdev
autarkied has quit [Ping timeout: 272 seconds]
autarkied has joined #osdev
m3a has quit [Ping timeout: 252 seconds]
autarkied has quit [Quit: Client closed]
Lucretia has quit [Remote host closed the connection]
<Ermine> note that google can afford this
<Ermine> writing libc is no small feat already
simjnd has quit [Ping timeout: 248 seconds]
<Ermine> and then there's a lot of stuff that requires expertise in different areas
<Ermine> e.g. opengl/vulkan drivers, audio server, display server
<heat> i think they only created bionic because musl wasn't a thing
<Ermine> ugh
<heat> they would have either used (or inevitably forked) forked musl otherwise
<Ermine> they should have waited a bit
<Ermine> so we would get MINIMAL BLOAT-FREE android
<heat> bionic is kind-of minimal
<heat> really their problem with glibc was both the size and (more importantly) the licensing
<heat> they NIH'd every GPL'd bit they could
<heat> mkfs? NIH. shell? definitely not using bash. utils? we'll roll your own, then inevitably regret it and use toybox
<Ermine> interestingly enough, cyanogen was shipped with busybox
<Ermine> i doubt if glibc size really was an issue
<Ermine> its footprint is not that big compared to java runtime
<heat> they also never used the standard jre
<heat> the jre is, of course, also GPL
Lucretia has joined #osdev
goliath has joined #osdev
<Ermine> and yet oracle tried to sue them
<Ermine> apparently for not NIHing hard enough
fedaykin has quit [Ping timeout: 260 seconds]
fedaykin has joined #osdev
simjnd has joined #osdev
xenos1984 has quit [Read error: Connection reset by peer]
edr has joined #osdev
xenos1984 has joined #osdev
fedaykin has quit [Ping timeout: 260 seconds]
dude12312414 has quit [Remote host closed the connection]
dude12312414 has joined #osdev
fedaykin has joined #osdev
goliath has quit [Quit: SIGSEGV]
xvmt has joined #osdev
FreeFull has quit []
fedaykin has quit [Ping timeout: 244 seconds]
[Kalisto] has quit [Quit: No' vemo']
pebble has quit [Read error: Connection reset by peer]
[Kalisto] has joined #osdev
fedaykin has joined #osdev
stolen has joined #osdev
Left_Turn has joined #osdev
fedaykin has quit [Ping timeout: 248 seconds]
goliath has joined #osdev
corinne has joined #osdev
arminweigl_ has joined #osdev
arminweigl has quit [Ping timeout: 252 seconds]
arminweigl_ is now known as arminweigl
simjnd has quit [Ping timeout: 272 seconds]
the_oz has joined #osdev
corinne has quit [Remote host closed the connection]
corinne has joined #osdev
simjnd has joined #osdev
simjnd has quit [Ping timeout: 252 seconds]
Turn_Left has joined #osdev
xenos1984 has quit [Ping timeout: 248 seconds]
xenos1984 has joined #osdev
Left_Turn has quit [Ping timeout: 276 seconds]
corinne has quit [Remote host closed the connection]
corinne has joined #osdev
jedesa has joined #osdev
corinne has quit [Remote host closed the connection]
corinne has joined #osdev
xenos1984 has quit [Ping timeout: 276 seconds]
simjnd has joined #osdev
simjnd has quit [Ping timeout: 276 seconds]
xenos1984 has joined #osdev
netbsduser` has quit [Remote host closed the connection]
netbsduser` has joined #osdev
vdamewood has joined #osdev
fedaykin has joined #osdev
corinne has quit [Remote host closed the connection]
corinne has joined #osdev
corinne has quit [Remote host closed the connection]
corinne has joined #osdev
stolen has quit [Quit: Connection closed for inactivity]
vdamewood has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_oz has quit [Remote host closed the connection]
the_oz has joined #osdev
GeDaMo has quit [Quit: 0wt 0f v0w3ls.]
netbsduser` has quit [Ping timeout: 260 seconds]
netbsduser` has joined #osdev
vdamewood has joined #osdev
m3a has joined #osdev
vdamewood has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Turn_Left has quit [Read error: Connection reset by peer]
Lucretia has quit [Remote host closed the connection]
netbsduser` has quit [Ping timeout: 252 seconds]
netbsduser` has joined #osdev