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
<gog> yes
* mcrod pets gog
* gog prr
gmacd has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
gmacd has joined #osdev
gmacd has quit [Ping timeout: 250 seconds]
awita has joined #osdev
heat has quit [Remote host closed the connection]
heat has joined #osdev
awita has quit [Ping timeout: 268 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
zaquest has quit [Remote host closed the connection]
zaquest has joined #osdev
gmacd has joined #osdev
nyah has quit [Quit: leaving]
gmacd has quit [Ping timeout: 250 seconds]
gog has quit [Ping timeout: 265 seconds]
goliath has quit [Quit: SIGSEGV]
gmacd has joined #osdev
heat_ has joined #osdev
heat has quit [Read error: Connection reset by peer]
gmacd has quit [Ping timeout: 250 seconds]
smeso has quit [Quit: smeso]
smeso has joined #osdev
heat_ has quit [Ping timeout: 256 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 250 seconds]
skipwich has quit [Quit: DISCONNECT]
skipwich has joined #osdev
gmacd has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
Terlisimo has quit [Quit: Connection reset by beer]
Terlisimo has joined #osdev
gmacd has joined #osdev
gmacd has quit [Ping timeout: 248 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
gildasio has quit [Remote host closed the connection]
gildasio has joined #osdev
terminalpusher has joined #osdev
gmacd has joined #osdev
gildasio has quit [Ping timeout: 240 seconds]
gmacd has quit [Ping timeout: 250 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 246 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 268 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
ThinkT510 has quit [Quit: WeeChat 3.8]
gmacd has joined #osdev
ThinkT510 has joined #osdev
GeDaMo has joined #osdev
gmacd has quit [Ping timeout: 248 seconds]
slidercrank has quit [Ping timeout: 240 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
gmacd has joined #osdev
ZipCPU has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
ZipCPU has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
jjuran has quit [Quit: Killing Colloquy first, before it kills me…]
jjuran has joined #osdev
zxrom has quit [Remote host closed the connection]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
gmacd has joined #osdev
Ali_A has joined #osdev
Ali_A is now known as DragonPlayer
terminalpusher has quit [Ping timeout: 245 seconds]
gmacd has quit [Ping timeout: 268 seconds]
DragonPlayer has quit [Ping timeout: 245 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
Matt|home has quit [Ping timeout: 250 seconds]
Ali_A has joined #osdev
gmacd has joined #osdev
Ali_A has quit [Quit: Client closed]
gabi-250 has quit [Remote host closed the connection]
goliath has joined #osdev
gmacd has quit [Ping timeout: 268 seconds]
zxrom has joined #osdev
gmacd has joined #osdev
awita has joined #osdev
awita has quit [Remote host closed the connection]
gmacd has quit [Ping timeout: 240 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 250 seconds]
heat_ has joined #osdev
gmacd has joined #osdev
gog has joined #osdev
gmacd has quit [Ping timeout: 256 seconds]
gabi-250 has joined #osdev
gmacd has joined #osdev
heat has joined #osdev
heat_ has quit [Read error: Connection reset by peer]
gmacd has quit [Ping timeout: 265 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
zarock has joined #osdev
wootehfoot has joined #osdev
zxrom has quit [Ping timeout: 240 seconds]
<sham1> henlo
gmacd has joined #osdev
gmacd has quit [Ping timeout: 246 seconds]
gmacd has joined #osdev
xenos1984 has quit [Read error: Connection reset by peer]
gmacd has quit [Ping timeout: 268 seconds]
gmacd has joined #osdev
xenos1984 has joined #osdev
<mcrod> hi
moberg has quit [Ping timeout: 268 seconds]
moberg1 has joined #osdev
<gog> hi
<zid> glowg
<mcrod> goggers
<gog> poggers
gog is now known as pog
wootehfoot has quit [Read error: Connection reset by peer]
<mcrod> gog: may I pet you
<pog> yes
* mcrod pets pog
kn07_ has joined #osdev
* pog prr
<kn07_> grr
* sakasama still requires unpetting.
* pog unpets sakasama
<mcrod> i feel like a moron writing shell scripts.
<mcrod> just take me to C or C++ where things make sense
<pog> yeah bash syntax is wacky to me
<pog> there's like three ways to do conditonals
<kn07_> i feel like a lonely noob looking for some action
<pog> years ago i wrote some weird bash scripts before i had a single clue what i was doing lol
<mcrod> I never thought writing a toolchain script would be this annoyingly difficult
<sakasama> bash is a horror. It's only bearable if one is fortunate enough to be able to ignore most of the syntax.
<mcrod> honestly I'm starting to wonder if I should just use python to do this
<mcrod> I'm going to use python anyway to sift through a website to generate a database for the project I'm working on
<pog> you could use a makefile
<mcrod> no :(
<pog> lol
<sham1> Perl
<mcrod> in case anyone cares, I'm basically generating a database of codes from https://www.ecfr.gov/current/title-47/chapter-I/subchapter-A/part-11/subpart-B/section-11.31, plus codes from... every state
<bslsk05> ​www.ecfr.gov: eCFR :: 47 CFR 11.31 -- EAS protocol.
<pog> nerd
<mcrod> the problem is the state codes/county codes etc are in PDF fucking format
<mcrod> er, county codes only
[itchyjunk] has joined #osdev
<sakasama> mupdf makes dumping to text easy enough.
kn07_ has quit [Quit: Leaving]
gmacd has quit [Ping timeout: 250 seconds]
gmacd has joined #osdev
goliath has quit [Quit: SIGSEGV]
dude12312414 has joined #osdev
Matt|home has joined #osdev
dude12312414 has quit [Ping timeout: 240 seconds]
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
xenos1984 has quit [Ping timeout: 256 seconds]
xenos1984 has joined #osdev
heat_ has joined #osdev
dude12312414 has joined #osdev
heat has quit [Read error: Connection reset by peer]
xenos1984 has quit [Ping timeout: 248 seconds]
randm has quit [Remote host closed the connection]
randm has joined #osdev
<mcrod> heat_ if you were wondering about the fancy redirection crap; https://github.com/mcroddev/samething/blob/main/toolchains/unix/build_toolchain.sh#L155
<bslsk05> ​github.com: samething/build_toolchain.sh at main · mcroddev/samething · GitHub
zxrom has joined #osdev
<mcrod> and then you just do `V cmake -S . -B build -G Ninja $CMAKE_BUILD_FLAGS`
goliath has joined #osdev
xenos1984 has joined #osdev
<heat_> i'm fairly sure $@ is bash-only btw
<puck> nope
<mcrod> nope.
<bslsk05> ​pubs.opengroup.org: Shell Command Language
<heat_> oh, cool
<heat_> do the quotes there Just Work?
<heat_> I would guess you want word splitting there as well
<mcrod> it works
Arthuria has joined #osdev
Arthuria has quit [Killed (NickServ (GHOST command used by Guest684531))]
Arthuria has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
Arthuria has quit [Killed (NickServ (GHOST command used by Guest684531))]
Arthuria has joined #osdev
terminalpusher has joined #osdev
gmacd has joined #osdev
Arthuria has quit [Ping timeout: 246 seconds]
gmacd has quit [Ping timeout: 240 seconds]
gmacd has joined #osdev
heat has joined #osdev
heat_ has quit [Read error: Connection reset by peer]
Arthuria has joined #osdev
Arthuria has quit [Killed (NickServ (GHOST command used by Guest684531))]
Arthuria has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
dude12312414 has quit [Remote host closed the connection]
mi7 has joined #osdev
Irvise_ has quit [Ping timeout: 265 seconds]
sakasama has quit [Ping timeout: 265 seconds]
benwaffle has quit [Ping timeout: 265 seconds]
chibill has quit [Ping timeout: 265 seconds]
chibill has joined #osdev
nyah has joined #osdev
goliath has quit [Quit: SIGSEGV]
terminalpusher has quit [Remote host closed the connection]
GeDaMo has quit [Quit: That's it, you people have stood in my way long enough! I'm going to clown college!]
gmacd has joined #osdev
goliath has joined #osdev
gabi-250 has quit [Remote host closed the connection]
gabi-250 has joined #osdev
rnicholl1 has joined #osdev
<rnicholl1> Question, when booting qemu with virt, where does it put the dtb?
<bnchs> the what?
<rnicholl1> device tree binary
<rnicholl1> I tried qemu-system-aarch64 -M virt -cpu cortex-a53 -kernel build/rpnx-kernel.elf -monitor stdio
<rnicholl1> but I cannot find the dtb or how much ram is installed
<bslsk05> ​www.qemu.org: ‘virt’ generic virtual platform (virt) — QEMU documentation
<goliath> doc says location is in r2 for 32-bit guests, or x0 for 64-bit guests (linux boot protocol), address 0x4000_0000 for bare-metal guests
sakasama has joined #osdev
gmacd has quit [Ping timeout: 265 seconds]
xenos1984 has quit [Read error: Connection reset by peer]
gmacd has joined #osdev
dennisschagt has quit [Ping timeout: 246 seconds]
dennisschagt has joined #osdev
<rnicholl1> I am encountering a weird issue.
<rnicholl1> dtb_reader& operator=(dtb_reader const& other) = default; results in a hang
<rnicholl1> but the only member variables are:
<rnicholl1> std::byte const *m_dtb;
<rnicholl1> std::byte const *m_dtb_end;
<heat> what results in a hang?
<heat> the copy itself?
<mcrod> you know
<mcrod> i thoroughly enjoy how #osdev is almost like a "come with any discussion" IRC channel
<mcrod> whether it's osdev, general programming, petting gog, etc.
<heat> linux kern
xenos1984 has joined #osdev
<mcrod> I really need to go to the gym
<mcrod> but i am still scared
<mcrod> :(
<rnicholl1> heat: no, it seems if I use user generated code, like a custom implemetnation, it works fine, but the default operator does not. outside of the kernel, it works fine :/
<heat> wheres the crash
<heat> whats the codegen
<goliath> If that's C++, the signature for the operator= looks wrong. IIRC the const should be in front of the type, which has slightly different meaning
<goliath> Also, I ran into an issue with g++ one where it generated SSE code for the assignment
<goliath> *once
<goliath> Specifying the machine to be an i386 changed that to a `rep; movsb` construct instead, which worked
<rnicholl1> const before or after has no effect on the type, they are the same
<rnicholl1> it actually binds to the thing on the left but there is an exception when nothing exists on the left.
<heat> wheres the crash whats the codegen
<rnicholl1> let me see, I'm trying to figure out how to look at the codegen
<heat> disassemble where it's crashing
<heat> with gdb or whatever
<bslsk05> ​pastebin.com: Nto working:Disassembly of section .text._ZN4rpnx10dtb_readeraSERKS0_:00 - Pastebin.com
<rnicholl1> How can I use gdb inside qemu?
<rnicholl1> is anything special required to use the q0 register?
<rnicholl1> that might be the issue
<rnicholl1> ah yeah, that is a neon extension
<heat> yes
<heat> pass -mgeneral-regs-only to gcc
<rnicholl1> llvm actually
<heat> yes, whatever
<heat> you don't want to use the FPU in kernel mode, usually
<rnicholl1> Well that fixed it
<rnicholl1> set(CMAKE_C_FLAGS_INIT "--target=arm64-v8-none -mgeneral-regs-only -ffreestanding -nostdinc -nostdlib -static -frtti -fexceptions")
<rnicholl1> is arm64-v8-none not the right architecture?
<rnicholl1> Or do I just need to do something special to set up floating point in the kernel first
<heat> 1) you need to set up the FPU
<heat> 2) generally you don't want to use the FPU in kernel code
<heat> hence -mgeneral-regs-only
<bnchs> if you want floating point
<bnchs> which i don't get
<heat> why no FPU? because saving and restoring FPU context on every context switch, interrupt is slow and hard
<bnchs> maybe have a floating point emulation
<heat> generally its just not worth it to pay the price on every ctx switch
<heat> if you really need to and you get a proven performance benefit, you can later add wrappers to do it PROPERLY for you
<heat> like linux has kernel_fpu_begin and kernel_fpu_end for very very specific operations
dude12312414 has joined #osdev
Piraty has quit [Quit: -]
Piraty has joined #osdev
rnicholl1 has quit [Quit: My laptop has gone to sleep.]
dude12312414 has quit [Remote host closed the connection]
rnicholl1 has joined #osdev
gmacd has quit [Ping timeout: 240 seconds]
gmacd has joined #osdev
gmacd has quit [Ping timeout: 265 seconds]
<mcrod> hey losers
<bnchs> yes i'm a loser
<mcrod> well the stupid fucking toolchain script doesn't work on mac
<mcrod> i hate shell scripting i hate shell scripting i hate shell scripting i hate shell scripting
<mcrod> that's ok.
<mcrod> it's about to work
rnicholl1 has quit [Quit: My laptop has gone to sleep.]
<pog> hi
<heat> hi
<mcrod> pog: may I hug you
<pog> yes
* mcrod hugs pog
* pog hug mcrod
rnicholl1 has joined #osdev
<heat> mjg, is there a downside to lock handoff?
rnicholl1 has quit [Client Quit]
rnicholl1 has joined #osdev