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
<heat> note that power-of-2 mallocs *really* suck because you need to keep the size somewhere, so e.g a 32 byte allocation will need 64 bytes as the trailing size_t size; screws you over :/
<heat> the mckusick-karels idea i read about and implemented in HSD kind of solves it in a way
<heat> linux (and onyx) page allocation is a nice buddy allocator because there you don't need a trailing size_t size;, most allocations are powers of 2 and available in large contiguous blocks
<heat> 99% of allocations are actually single-paged, so you could think "oh duh just a list of pages" but that stops you from doing contiguous allocation, so linux (and onyx) again abuse the per-cpu cache idea to avoid locks and to easily give you small allocations/frees without split/merge going to town
linear_cannon has quit [Ping timeout: 246 seconds]
mhall has quit [Quit: Connection closed for inactivity]
Matt|home has quit [Quit: Leaving]
MiningMarsh has quit [Ping timeout: 240 seconds]
eck has quit [Ping timeout: 246 seconds]
eck has joined #osdev
* kof123 presses 2
<Cindy> please wait, a gay lover will tune in shortly
<klange> All of our representatives are currently busy with other callers.
<kazinsal> you are number... twenty. seven. in the queue.
<kof123> obj_size it didn't sound too bad...i more or less (not fully implemented/tested yet) do all those things ("caches", per-thread or per-cpu some day) ...except for this "bins by object size" thing
<kof123> when i say not tested i mean not tested at all, off on other things, but ...had other reasons for doing things in such a manner
vdamewood has quit [Quit: Life beckons]
eck has quit [Quit: PIRCH98:WIN 95/98/WIN NT:1.0 (build 1.0.1.1190)]
eck has joined #osdev
<zid> You forgot "Your call is very important to us"
LostCarcosa has joined #osdev
<kof123> i'm surprised noone has waiting music :/ bardcore_iron_maiden_fear_of_the_dark
heat has quit [Quit: Client closed]
LostCarcosa has quit [Ping timeout: 260 seconds]
LostCarcosa has joined #osdev
LostCarcosa has left #osdev [#osdev]
[itchyjunk] has quit [Read error: Connection reset by peer]
zaquest has joined #osdev
frkzoid has quit [Ping timeout: 240 seconds]
Andrew has joined #osdev
linear_cannon has joined #osdev
slidercrank has quit [Ping timeout: 240 seconds]
<zid> It is 5 days until mynesday
goliath has joined #osdev
_whitelogger has joined #osdev
foudfou has quit [Remote host closed the connection]
foudfou has joined #osdev
zxrom_ has joined #osdev
zxrom_ is now known as zxrom
zxrom__ has quit [Ping timeout: 260 seconds]
elastic_dog has quit [Ping timeout: 246 seconds]
elastic_dog has joined #osdev
diamondbond has joined #osdev
slidercrank has joined #osdev
crankslider has joined #osdev
slidercrank has quit [Ping timeout: 246 seconds]
crankslider is now known as slidercrank
lg has quit [Ping timeout: 245 seconds]
goliath has quit [Quit: SIGSEGV]
SGautam has joined #osdev
danilogondolfo has joined #osdev
mhall has joined #osdev
goliath has joined #osdev
nyah has joined #osdev
GeDaMo has joined #osdev
gog has joined #osdev
valshaped742 has quit [Quit: Gone]
valshaped742 has joined #osdev
gareppa has joined #osdev
gildasio has joined #osdev
<sham1> hi
<gog> hi
foudfou has quit [Ping timeout: 240 seconds]
foudfou has joined #osdev
milesrout is now known as mrr
mrr is now known as milesr
milesr is now known as rselim
MiningMarsh has joined #osdev
gxt__ has quit [Remote host closed the connection]
gxt__ has joined #osdev
diamondbond has quit [Quit: Leaving]
Burgundy has joined #osdev
edr has joined #osdev
mahk has quit [Ping timeout: 246 seconds]
zxrom has quit [Quit: Leaving]
vdamewood has joined #osdev
awita has joined #osdev
ih8win8 has joined #osdev
<ih8win8> Can someone point me to documentation on USB hubs, specifically all of the class-specific GET_DESCRIPTOR, SET_FEATURE, etc. requests?
<bslsk05> ​www.usbmadesimple.co.uk: USB Made Simple - Part 4
mahk has joined #osdev
zxrom has joined #osdev
<Mutabah> The USB-IF has decent docs
<Mutabah> does take some getting your head around, as they're for both driver and hardware devs
<ih8win8> Yeah, I found the USB 2.0 spec has an entire chapter on hubs. It's a lot of info to take in.
<gog> oh i didn't know that was all available for free
<gog> iirc you had to pay a money
<ih8win8> Is it common to have MMIO registers where you write 1 to a bit to CLEAR it?
<Mutabah> Yep
<Mutabah> R1C is a pretty common feature, allows you to write the register back to reset everything you've already handled
<Mutabah> without accidentally clearing bits you hadn't already seen
<ih8win8> Though you have to be careful and mask out all of such bits if you don't intend to clear them.
<Mutabah> a common pattern is to read a status register, go through the bits in that read copy and handle them, then write that value back to clear everything you just handled
<Mutabah> that way, if a new bit is set while you're processing the previous set, you don't accidentally clear it (if it was just a standard read-write register)
SGautam has quit [Quit: Connection closed for inactivity]
<gog> read copy update
<gog> sort of
<ih8win8> hmm why does USB allow SetPortFeature and ClearPortFeature to manipulate PORT_CONNECTION on a hub? It's not like you can physically plug and unplug USB devices through software, lol
<Mutabah> I think you can try setting/clearing, but it won't do anything
<ih8win8> Oh, "SetPortFeature(PORT_CONNECTION) and ClearPortFeature(PORT_CONNECTION) requests shall not
<ih8win8> be used by the USB System Software and must be treated as no-operation requests by hubs."
<ih8win8> Well, that explains it.
heat has joined #osdev
<gog> heat: heat
<gog> heat
Left_Turn has joined #osdev
<heat> gog
<gog> hi :3
<heat> i'm gonna say the B word
<gog> say it
<gog> say it loudly
<heat> 🅱️asil
<gog> cancelled
<sham1> make
<heat> cancel culture even added cancelling to POSIX! now even threads aren't safe from cancelling
<gog> smh
<sham1> shm
<gog> o:
<gog> posix is the best
<heat> what shm?
<gog> Unix unix unix
<heat> POSIX shm or system V shm?
<gog> yes
<heat> all of the shm
[itchyjunk] has joined #osdev
<heat> i should totally implement sysv ipc
<gog> i c p
<heat> u see what? hahahaha
<heat> iponthecprogramminglanguage
<heat> dis book good?
<bslsk05> ​www.amazon.co.uk: UNIX Internals: The New Frontiers: Amazon.co.uk: Vahalia, Uresh: 9780131019089: Books
dude12312414 has joined #osdev
gog` has joined #osdev
goliath has quit [Quit: SIGSEGV]
<gog> wtf
gog` has quit [Client Quit]
<gog> ¯\_(ツ)_/¯
<gog> revolutionirc picks weird times to reconnect
frkzoid has joined #osdev
nvmd has joined #osdev
Turn_Left has joined #osdev
slidercrank has quit [Quit: Why not ask me about Sevastopol's safety protocols?]
Left_Turn has quit [Ping timeout: 240 seconds]
awita has quit [Ping timeout: 250 seconds]
heat has quit [Ping timeout: 246 seconds]
goliath has joined #osdev
heat has joined #osdev
eddof13 has joined #osdev
linearcannon has joined #osdev
linear_cannon has quit [Ping timeout: 250 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #osdev
xenos1984 has quit [Ping timeout: 240 seconds]
xenos1984 has joined #osdev
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bl4ckb0ne> heat: got a nice kvm internal error when yeeting G from the pml4
eddof13 has joined #osdev
xenos1984 has quit [Ping timeout: 240 seconds]
<gog> hi
gildasio has quit [Ping timeout: 240 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zid> henlo goog
xenos1984 has joined #osdev
<gog> zid
<gog> henlo
<gog> go read a light novel
<zid> I can't
<zid> I read them all
<gog> shit
<gog> is there another light novel series you can get into
<gog> or did you read all of them
<zid> I read them *all*
<gog> wow
<zid> Except like, a couple of ones I wasn't interested in at all
<zid> or I read a few volumes and then they got past the first arc and turned into a sitcom
<zid> like bleach did
<gog> shinigami eyes
eddof13 has joined #osdev
* vdamewood gives gog a fishy
* gog chomp fishyt
<zid> The question remains why gog wants to gt rid of me :(
Vercas has quit [Remote host closed the connection]
<sham1> I now haz steam deck
Vercas has joined #osdev
<GeDaMo> What are you playing?
<gog> zid
<gog> i don't want to get rid of you
<gog> i love you
<gog> we've been through a lot together you and i
<zid> I know, my arse is still hurting
<sham1> GeDaMo: nothing quite yet. I'm thinking about installing an emulator on it
<zid> bloodstained
<zid> is what you should play
<sham1> Or two. Or twenty
<gog> donkey kong country
<gog> which reminds me i should play my switch more
<zid> bloodstained is perfect gaem for steamdick
<gog> i paid for a membership so i could play snes games almost exclusively
<gog> and mario 64
<zid> BLJ your ass over here right now private!
<sham1> But first we have to talk about parallel universes
heat has quit [Ping timeout: 246 seconds]
dude12312414 has quit [Quit: THE RAM IS TOO DAMN HIGH]
nanovad has quit [Ping timeout: 246 seconds]
slidercrank has joined #osdev
g0shfuckingdarn1 has joined #osdev
g0shfuckingdarn1 is now known as linear_cannon
linearcannon has quit [Ping timeout: 240 seconds]
nanovad has joined #osdev
tomith has joined #osdev
PublicWiFi has quit [Ping timeout: 250 seconds]
Matt|home has joined #osdev
PublicWiFi has joined #osdev
tacco has joined #osdev
<tacco> Hey guys! I want to configure my gcc cross-compiler for a new x86_64 target where I customized the long double size to 64. I added '#define LONG_DOUBLE_TYPE_SIZE 64' to gcc/config/myos.h. However I run into issues when building libgcc's soft-fp module:
<tacco> In file included from ../../../../gcc-11.1.0/libgcc/soft-fp/extendxftf2.c:31:
<tacco> 69 | typedef float XFtype __attribute__ ((mode (XF)));
<tacco> ../../../../gcc-11.1.0/libgcc/soft-fp/extended.h:69:1: error: unable to emulate 'XF'
morgan has quit [Ping timeout: 246 seconds]
<tacco> Got any ideas to pointers to resources about this topic?
morgan has joined #osdev
danilogondolfo has quit [Remote host closed the connection]
<zid> that's libgcc, port that too :P
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zid> Runtime Function: long double __floatunsixf (unsigned int i)
<zid> unsigned float to long double
gareppa has quit [Quit: WeeChat 3.8]
eddof13 has joined #osdev
dormito has quit [Ping timeout: 245 seconds]
dormito has joined #osdev
goliath has quit [Quit: SIGSEGV]
remexre has quit [Ping timeout: 250 seconds]
heat has joined #osdev
<heat> tacco why would you
<geist> probably doesn't want to use x87 at all
<geist> arm64 has a problem where long double gets promoted to 128bit, of which there's no hardware support
<geist> similar problem: watch out for long double
<tacco> @zid thanks for the direction. I have not got it too work yet but that sounds plausible to me.
<tacco> yes, the extended format is a headache i want to avoid
<tacco> disabling soft-float for the target would also be okay, that does not seem to be supported? libgcc configs sure are not straight forward
GeDaMo has quit [Quit: That's it, you people have stood in my way long enough! I'm going to clown college!]
<heat> geist: i don't see what you can lose from using the x87
<heat> except performance maybe, but it's long double so what were you expecting
<geist> having to dork with it, it being slower, etc
<geist> but yeah, i mean tacco has their reasons, not me
<heat> tacco: whatever you hacked up to disable long double fucked up __attribute__((mode(XF))
<tacco> thanks
<heat> (XF being a 12-byte float, apparently)
<Ermine> hi gog may I pet you
fluix has quit [Remote host closed the connection]
<heat> yes
carbonfiber has quit [Quit: Connection closed for inactivity]
<bslsk05> ​twitter: <BadMedicalTakes> https://pbs.twimg.com/media/F0wIebjWwAIs7XC.jpg
<heat> found my issue yeah
<nortti> "All hearts have a limited number of beats." guess you gotta do endurance training then
<zid> It's actually vaguely true
<zid> mice hearts beat super fast -> they don't live very long, elephants' hearts beat slow -> they live a long time
<zid> I wonder if there's like, a balmer peak for aerobic fitness where the increased heart rate it took to get fit, giving you a lower resting heart rate, saves ticks
remexre has joined #osdev
<heat> athletes' hearts beat slower usually
<heat> so if you consider your heart is in the swapper process for most of its lifespan, muscles and fitness = good
<zid> you need to spend beats to get fit though heat, do keep up
<zid> The question is whether you save beats overall
<heat> you'll save beats i think
<zid> as in, you're guessing
xenos1984 has quit [Read error: Connection reset by peer]
<bslsk05> ​twitter: <fionerss> Was on a date with a guy and we kissed and his watch started beeped really loud and we looked down and it said “abnormal heart rate detected” lol
<heat> hahahahaha
<zid> My heart rate is all over the place because smoker
<zid> it's around 60 though, good enough
<heat> nicotine poggers
<heat> gog lets open a tobacco company
<heat> it's a great industry
<heat> we'll innovate and make a kid-friendly product
<zid> They already did
<zid> it's called vaping
<heat> "marlboro reds kids edition" in a playful font
<zid> (Juul etc is owned by phillip morris)
Andrew has quit [Read error: Connection reset by peer]
awita has joined #osdev
xenos1984 has joined #osdev
<mcrod> hi
<sham1> hi
<sham1> One of the things about heart rate is that you shouldn't overtrain it either. I.e. you shouldn't have it bumping too slowly
<sham1> For example I recall a story of a person in the Tour De France, might have even been a winner, whose resting heart rate was like a dozen beats per minute or maybe even less, can't remember
<sham1> He'd have to wake up at night just to ride on a trainer to not die in his sleep
<heat> that's kinda nuts innit
<heat> super powerful heart
<sham1> Yes
<sham1> But also scary in a way
<mcrod> exercise, like everything else in the body, is good in moderation
<mcrod> overexercise is quite damaging
<sham1> That it is
<mcrod> the lowest heart rate recorded was 27bpm
<mcrod> er 26
<sham1> My average resting HR is around 60. Quite typical although for heart stuff it doesn't help that I'm not exactly the thinnest bloke
<mcrod> mine is like... god, 80
awita has quit [Remote host closed the connection]
gog has quit [Ping timeout: 252 seconds]
<geist> yah mine is generally something like 55-60
<geist> i've seen it as low as 47-48
<geist> it varies depending on stress/heat/unknown, but usually over the course of weeks
elastic_dog has quit [Ping timeout: 246 seconds]
<geist> also drinking alcohol raises my HR a solid 10-20
<geist> and if i drink anywhere near bedtime it affects my calculated RHR since i end up sleeping with an elevated rate
elastic_dog has joined #osdev
fluix has joined #osdev
dutch has quit [Quit: WeeChat 4.0.1]
dutch has joined #osdev
dude12312414 has joined #osdev
dude12312414 has quit [Quit: THE RAM IS TOO DAMN HIGH]
Turn_Left has quit [Read error: Connection reset by peer]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
varad7 has joined #osdev
brynet_ has joined #osdev
corank_ has joined #osdev
brynet has quit [Killed (NickServ (GHOST command used by brynet_))]
brynet_ is now known as brynet
weinholt` has joined #osdev
corecode_ has joined #osdev
eddof13 has joined #osdev
Burgundy has quit [Ping timeout: 245 seconds]
slidercrank has quit [Ping timeout: 246 seconds]
eddof13 has quit [Client Quit]
sham1_ has joined #osdev
nikolar has quit [*.net *.split]
mjg has quit [*.net *.split]
weinholt has quit [*.net *.split]
corank has quit [*.net *.split]
varad has quit [*.net *.split]
bslsk05 has quit [*.net *.split]
les has quit [*.net *.split]
sham1 has quit [*.net *.split]
corecode has quit [*.net *.split]
varad7 is now known as varad
nikolar has joined #osdev
nyah has quit [Quit: leaving]
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]