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
<doug16k> 10ns is pretty good, but yeah
<heat> i should figure out how to load microcode
<heat> it's not trivial afaik
<heat> and relying on firmware updates to keep the fit table updated isn't a great idea I guess
<heat> dunno if you've looked at the SDM but they have a table the CPU looks at to do stuff before the CPU even starts executing the reset vector
<heat> it's fucking neat
<heat> that's how firmware loads ucode
\Test_User has joined #osdev
<heat> also, cool fact: new CPUs can have page tables in ROM
<doug16k> I think the cpuid instruction does it too, on some models anyway
<doug16k> makes sense to put that in the ridiculously bloated instruction
<heat> intel uses an msr in P6+
Likorn has quit [Quit: WeeChat 3.4.1]
<doug16k> yeah I see now, it needs to use cpuid first then it can do it. I misunderstood it before
Starfoxxes has quit [Ping timeout: 255 seconds]
<heat> would really like for cpuid to become a sort of ioctl
<heat> and yes im an agent of chaos and destruction
gog` has joined #osdev
<doug16k> I wish that linux would put lines like this in dmesg: ***** HARDWARE SUCKS: Firmware did not load latest microcode
<heat> ***** HARDWARE AND FIRMWARE SUCKS: Firmware did not load latest microcode and hardware is hopelessly broken
<heat> FTFY
<klange_> ***** COMPUTERS SUCK, STOP USING THEM
<doug16k> friend told me about an entire building of apartments was one big lan and everyone could see every resident's printers and stuff
<heat> alexa, print me 10 copies of sonic rule 34
<heat> well tbf that's the network engineer's fault
<heat> crap idea
<doug16k> yeah, friend told the residents how crazy that is for security and they are working on it
Likorn has joined #osdev
<zid`> Just use a router and put youtself behind some NAT I guess
<zid`> treat the building like the internet
<doug16k> yeah, that's what I said, wan port goes to building. exactly
<zid`> it'd just be annoying if they've wired you multiple ethernet outlets to multiple rooms which you now cannot 'use'
<zid`> I assume this is just the topology you'd ned up with if you weren't willing to do router-per-unit
<zid`> and instead wired each room to a big 48 port switch/hub/whatever
<doug16k> could you fix that buy forcing the ports for each unit to be in their own vlan?
<doug16k> per-apartment vlan
<bslsk05> ​www.cisco.com: Catalyst 3560 Software Configuration Guide, Release 12.2(52)SE - Configuring Private VLANs [Cisco Catalyst 3560 Series Switches] - Cisco
<kazinsal> easiest thing to do is something like that
<doug16k> nice
<zid`> yea you could do vlans
<zid`> I guess I now understand the point of vlans in a practical sense :p
heat has quit [Ping timeout: 248 seconds]
Likorn has quit [Quit: WeeChat 3.4.1]
<sbalmos> ah, that reminds me of the dorms, each building really was on its own subnet. Screwing with others' printers, sending "SHUT THE F* UP" or "We can all hear you screwing this week's girlfriend" print jobs to them
<zid`> sounds right, nerds hacking people's printers, everybody else fucking :p
* kingoffrance squints at ack code, outputting patterns of ack asm. considers modifying to output nasm macros instead. closes visor, charges into hell
<kingoffrance> its a battle
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #osdev
srjek|home has quit [Ping timeout: 255 seconds]
<klys> budding nybble code program. has two days work so far.
k8yun has joined #osdev
<doug16k> I ordered a few ESP32 modules to play with
<doug16k> wifi + bluetooth + dual core microcontroller for $15 is crazy
<doug16k> why buy one when you can buy 3 for 3x the price?
<doug16k> so funny how volume discounts are pretty much unheard of on websites
<doug16k> the ones with huge volume discounts are a ripoff for one
<doug16k> 160MHz with 320KB of memory? I don't even know
<clever> from memory, the XIP logic includes a form of MMU
<clever> so you can map pages of the addr space to pages of SPI flash
<clever> that then allows multiple binaries to co-exist in flash, and you can get rollbacks to undo a botched OTA upgrade
<doug16k> neat coincidence, I was just reading the part where it talks about reading constants from program memory
<doug16k> 80-240MHz and it has an ultra low power processor, it's big little
<doug16k> kind of anyway. I guess true big little can execute the same instructions
jack_rabbit has joined #osdev
knusbaum has quit [Ping timeout: 240 seconds]
k8yun has quit [Quit: Leaving]
<doug16k> wow, there is a model with 4MB flash, 8MB memory
<geist> yah i have the esp32-c3 here as well
<geist> i have been meaning to bring up on it. the little default demo it has is actually running some little rtos that's sort of neat
<doug16k> it comes with arduino thing reloaded with FreeRTOS I heard
<doug16k> more fun to replace that though, yeah
<geist> yah there's a full SDK thing too
<geist> the docs look mostly complete. seems to be easy tnough to run on it, though all mention of BT and wifi are totally absent
<geist> so i dunno if they just dont document that, it's on another core, or all of the above
<geist> this is the newer riscv one i have here
rorx has quit [Ping timeout: 240 seconds]
<doug16k> windowed registers?
<geist> hmm?
<doug16k> ah neat, it can operate either way, but the non-windowed mode reduces performance and increases code size
<geist> are you reading about the older arch they had? they've announced they're switching everything to riscv from now on out
<doug16k> ah
<geist> the old arch was uh. what was it. it's not unique to them, but it's more esoteric
<doug16k> xtensa
<geist> yah xtensa
<geist> so yeah in the single core versions i dunno exactly how the responsibility of BT and WIFI and rtos happen
<geist> and if it's all just on one rtos how does one access the BT/WIFI bits
<geist> i dont see it documented
<geist> but it's possible that's exactly it. it's just hidden registers they dont want you to know about
<geist> https://en.wikipedia.org/wiki/ESP32 has a pretty good summary of their lineup
<bslsk05> ​en.wikipedia.org: ESP32 - Wikipedia
<doug16k> would the arduino library tell you how to use the wifi?
<doug16k> wouldn't you get that as source?
<geist> the feature set of the wifi and ip stack is some checkbox in arduino and you talk to it over some high level interface
<geist> perhaps, unless it's firmware or an .o file you simply link against
<geist> or in a dual core situation it runs on the other core
<geist> easy enough to figure out, just enable tracing and see how it compiles and links
<geist> i think it's an .o file i bet, since iirc even a small arduino sketch on an esp32 still clocks in at a few hundred KB
<geist> and it's probably running the sketch as a thread on top of an rtos or something
<doug16k> yeah it's not likely that wlan will be easy to use, ever
<geist> i have done some arduino work with them and they're pretty nice
<geist> so it's likely they juyst dont want to document the wifi/bt bits
rorx has joined #osdev
<bslsk05> ​www.espressif.com: ESP32 Wi-Fi & Bluetooth Modules I Espressif
<doug16k> the cheap ones I got are the vroom32 ones, which seem to be xtensa ones unless I am mistaken
<doug16k> how do I look for riscv one?
<doug16k> ah I see, c3
<doug16k> 2 for $105, that sounds better
<doug16k> ah, you can get the riscv ones for cheap too
<doug16k> geist, do you have one with megs of ram, or just 600KB or so?
<doug16k> ok I think I found the best one. ESP32-S3-WROOM-2, 32MB flash, 512KB SRAM, 384KB ROM, 8MB PSRAM, 240MHz
<doug16k> ahhh. sneaky and confusing. S3 is xtensa
<doug16k> seems there is a whole market for tricking people looking for the riscv into buying an xtensa
<geist> 600KB. the -C3 as in the wikipedia page
<doug16k> they have the whole model the same except that one letter, and search engines fuzz them into the same results
<geist> the board i have is a ESP32-C3-DevKitC-02
<geist> about $9
<geist> it's really a ESP32-C3-WROOM-02
<geist> with a board around it, so pretty similar
<geist> i think it's basically the same thing as your WROOM-2, though only has 4MB flash (and 8KB PSRAM, which i suspect the S3 does too, since 8MB PSRAM would be crazy expensive)
<bslsk05> ​docs.espressif.com: ESP32-C3-DevKitC-02 - ESP32-C3 - — ESP-IDF Programming Guide latest documentation
<bslsk05> ​products.espressif.com: ESP Product Selector
<doug16k> that says MB right? on PSRAM?
<doug16k> yeah, no C one like that
<geist> yeah thats gotta be a bug. it's K
<geist> makes sense, it's the always on very low power block of sram
<doug16k> ok
<doug16k> I'm not familiar with PSRAM, I just guessed it was DRAM that has a SRAM-like interface
<geist> yah i think that's just their marketing name for it too
<Jari--> hi all
pounce has quit [Remote host closed the connection]
pounce has joined #osdev
<geist> lo
nyah has joined #osdev
<kingoffrance> for the person who asked about x86[-16] + vga: VIDEO - GET DISPLAY COMBINATION CODE int 0x10, AX=0x1A00 in another channel, a certain child of the night mentioned nethack code includes an ancient standalone cpp, which it does; i was poking around -- dos nethack uses the above)
<kingoffrance> i dont remember who that was, only pops in and out i think
heat has joined #osdev
Burgundy has joined #osdev
Starfoxxes has joined #osdev
klange_ is now known as klange
bauen1 has quit [Ping timeout: 248 seconds]
GeDaMo has joined #osdev
mrvn has joined #osdev
eroux has quit [Remote host closed the connection]
leemeng has joined #osdev
leemeng has left #osdev [#osdev]
Burgundy has quit [Ping timeout: 246 seconds]
psykose has quit [Remote host closed the connection]
ptrc has quit [Remote host closed the connection]
psykose has joined #osdev
ptrc has joined #osdev
kingoffrance has quit [Ping timeout: 265 seconds]
Burgundy has joined #osdev
bliminse has quit [Ping timeout: 246 seconds]
bliminse has joined #osdev
brynet has quit [Ping timeout: 250 seconds]
Burgundy has quit [Ping timeout: 255 seconds]
brynet has joined #osdev
zaquest has quit [Remote host closed the connection]
zaquest has joined #osdev
bauen1 has joined #osdev
ZipCPU_ has joined #osdev
ZipCPU has quit [Ping timeout: 240 seconds]
ZipCPU_ is now known as ZipCPU
kaitsh has joined #osdev
Ram-Z_ has quit [Ping timeout: 248 seconds]
Burgundy has joined #osdev
arch-angel has joined #osdev
ethrl has joined #osdev
pretty_dumm_guy has joined #osdev
pretty_dumm_guy has quit [Client Quit]
ethrl has quit [Client Quit]
kaitsh has quit [Quit: WeeChat 3.3]
gog` has quit [Ping timeout: 260 seconds]
pretty_dumm_guy has joined #osdev
srjek|home has joined #osdev
jack_rabbit has quit [Read error: Connection reset by peer]
Ram-Z has joined #osdev
Burgundy has left #osdev [#osdev]
the_lanetly_052_ has joined #osdev
the_lanetly_052 has quit [Ping timeout: 255 seconds]
brynet has quit [Ping timeout: 258 seconds]
AndrewYu is now known as Andrew
Likorn has joined #osdev
bliminse has quit [Quit: leaving]
kori has joined #osdev
Burgundy has joined #osdev
bliminse has joined #osdev
brynet has joined #osdev
Likorn has quit [Quit: WeeChat 3.4.1]
srjek|home has quit [Ping timeout: 255 seconds]
bauen1 has quit [Ping timeout: 256 seconds]
_xor has joined #osdev
Likorn has joined #osdev
mahmutov has joined #osdev
auronandace is now known as ThinkT510
bauen1 has joined #osdev
<nur> I turn 43 today!
<nur> (and still no OS)
<j`ey> happy birthday!
Ali_A has joined #osdev
<Ermine> happy birthday!
<stephe> happy :bee:
<stephe> day
srjek|home has joined #osdev
srjek_ has joined #osdev
ethrl has joined #osdev
bliminse has quit [Quit: leaving]
bliminse has joined #osdev
srjek|home has quit [Ping timeout: 244 seconds]
dude12312414 has joined #osdev
the_lanetly_052_ has quit [Ping timeout: 256 seconds]
<nur> thank you thank you
gdd has quit [Ping timeout: 272 seconds]
rwb is now known as rb
gildasio has joined #osdev
<heat> congrats
<heat> and fix that last part
<heat> :P
ethrl has quit [Ping timeout: 256 seconds]
<sbalmos> heat: fun with objdump. rather crazy how many sections the barest of clang cpp executables has.
<heat> yeah
<heat> .text*, .rodata*, .data*, .bss*, the C++ exception stuff
<heat> .init(or init_array) .fini(or fini_array)
<heat> relocation sections if it's relocatable
<heat> .dynamic of course
<heat> the GOT too
Ali_A has quit [Quit: Connection closed]
_xor has quit [Quit: brb]
ethrl has joined #osdev
Likorn has quit [Quit: WeeChat 3.4.1]
Likorn has joined #osdev
knusbaum has joined #osdev
arch-angel has quit [Remote host closed the connection]
arch-angel has joined #osdev
dude12312414 has quit [Quit: THE RAM IS TOO DAMN HIGH]
GeDaMo has quit [Quit: There is as yet insufficient data for a meaningful answer.]
ethrl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
FreeFull has joined #osdev
ethrl has joined #osdev
rustyy has quit [Quit: leaving]
rustyy has joined #osdev
<sbalmos> probably dumb general question, any idea just how much overhead there is in Zircon to doing all of the capability mapping, rights checking, etc?
ethrl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ethrl has joined #osdev
<heat> would expect very few overhead
<heat> at the end of the day, it's just an if
<heat> you have plenty of those in a codepath
<heat> :)
<sbalmos> ¯\_(ツ)_/¯ true. I'm trying to remember where it was, but a few months back was reading an article about all of the handle-grants request-this-does-it-have-rights-to-that effective rights calculation that was going on when creating a channel or transferring a handle from one process to another. just made the gears turn in my head about how much that was, over the course of how much handle passing
<sbalmos> is going on typically
<sbalmos> wish I had bookmarked that article back then :(
sonny has joined #osdev
mahmutov has quit [Ping timeout: 258 seconds]
<mrvn> Does every process have an array of capabilities and the handle is an index into the array?
<heat> I don't know if handles are pure indexes (since they're non sequential)
<heat> but yeah, kinda as far as I understand it
<heat> handles are capabilities
<mrvn> Maybe a key into a hashtabl
<heat> yeah maybe
Gooberpatrol_66 has joined #osdev
amine1 has joined #osdev
arcadewise_ has joined #osdev
xenos1984 has quit [Read error: Connection reset by peer]
patwid_ has joined #osdev
alethkit_ has joined #osdev
ddevault_ has joined #osdev
milesrout_ has joined #osdev
sm2n_ has joined #osdev
gjnoonan_ has joined #osdev
jleightcap_ has joined #osdev
exec64_ has joined #osdev
tom5760_ has joined #osdev
cookie has joined #osdev
sham1_ has joined #osdev
Ultrasauce has joined #osdev
raggi_ has joined #osdev
eschaton_ has joined #osdev
citrons_ has joined #osdev
brynet_ has joined #osdev
milesrout has quit [Ping timeout: 250 seconds]
alethkit has quit [Ping timeout: 250 seconds]
exec64 has quit [Ping timeout: 250 seconds]
tom5760 has quit [Ping timeout: 250 seconds]
eschaton has quit [Ping timeout: 250 seconds]
catern has quit [Ping timeout: 250 seconds]
sham1 has quit [Ping timeout: 250 seconds]
sm2n has quit [Ping timeout: 250 seconds]
arcadewise has quit [Ping timeout: 250 seconds]
ddevault has quit [Ping timeout: 250 seconds]
brynet has quit [Ping timeout: 250 seconds]
ecs has quit [Ping timeout: 250 seconds]
citrons has quit [Ping timeout: 250 seconds]
Raito_Bezarius has quit [Ping timeout: 250 seconds]
Starfoxxes has quit [Ping timeout: 250 seconds]
gjnoonan has quit [Ping timeout: 250 seconds]
patwid has quit [Ping timeout: 250 seconds]
jleightcap has quit [Ping timeout: 250 seconds]
raggi has quit [Ping timeout: 250 seconds]
ckie has quit [Ping timeout: 250 seconds]
sauce has quit [Ping timeout: 250 seconds]
nohit has quit [Ping timeout: 250 seconds]
amine has quit [Ping timeout: 250 seconds]
Gooberpatrol66 has quit [Ping timeout: 250 seconds]
tom5760_ is now known as tom5760
ddevault_ is now known as ddevault
milesrout_ is now known as milesrout
alethkit_ is now known as alethkit
arcadewise_ is now known as arcadewise
amine1 is now known as amine
patwid_ is now known as patwid
jleightcap_ is now known as jleightcap
exec64_ is now known as exec64
sm2n_ is now known as sm2n
gjnoonan_ is now known as gjnoonan
ecs has joined #osdev
Starfoxxes has joined #osdev
brynet_ is now known as brynet
Raito_Bezarius has joined #osdev
xenos1984 has joined #osdev
Gooberpatrol_66 has quit [Quit: Leaving]
ethrl has quit [Quit: Textual IRC Client: www.textualapp.com]
dh` has joined #osdev
FreeFull has quit []
Gooberpatrol66 has joined #osdev
sonny has quit [Quit: Client closed]
nyah has quit [Ping timeout: 256 seconds]
Burgundy has quit [Ping timeout: 240 seconds]
sonny has joined #osdev
Gooberpatrol66 has quit [Ping timeout: 258 seconds]
sonny has left #osdev [#osdev]
Gooberpatrol66 has joined #osdev
matrice64 has joined #osdev