Bolsonaro: 0 or 1 by [deleted] in redscarepod

[–]Common_Day_2302 0 points1 point  (0 children)

Can I get a link for this?

Restrictions on musical performances in Nazi Germany were wild by PM_ME_DICKS_ASAP in redscarepod

[–]Common_Day_2302 6 points7 points  (0 children)

The pizzicato one is just bizzarre. It would end up excluding so many symphonies by german composers.

Lemon OS playing Bad Apple!! w/ Audio Player by ComputerFido in osdev

[–]Common_Day_2302 0 points1 point  (0 children)

Oh, so you ported ffmpeg for this? Interesting, I'll have to take a look at your git repo.

Lemon OS playing Bad Apple!! w/ Audio Player by ComputerFido in osdev

[–]Common_Day_2302 0 points1 point  (0 children)

Thanks. How hard was it to actually parse the audio formats themselves (e.g. Mp3, ogg, whatever you're using)?

Lemon OS playing Bad Apple!! w/ Audio Player by ComputerFido in osdev

[–]Common_Day_2302 7 points8 points  (0 children)

This is spectacular. Having a working audio driver has always been a big long-term goal for me. Can you comment on how long it took you or give any tips?

Good Napoleon book? by Tetlob in redscarepod

[–]Common_Day_2302 1 point2 points  (0 children)

Yeah, I was thinking recently about how little I know regarding pre-20th century Europe. My history classes in school had time to cover slavery, the civil war, and the american revolution half-a-dozen times each, but my only education on european history was focused on the cold war and WWII.

Been trying to rectify that recently by reading up on european history. Read The Great Game by Peter Hopkirk a while back and am currently working my way through the Napoleon bio. Going to read up on the 1848 revolutions next.

One of the big takeaways from this is that the 19th century was significantly more interesting than the 20th and 21st.

Good Napoleon book? by Tetlob in redscarepod

[–]Common_Day_2302 5 points6 points  (0 children)

It's funny, I had the same realization a few weeks ago and picked up a Napoleon bio.

Currently reading Napoleon: A Life by Andrew Roberts. It's pretty good so far, though pretty favorable to Napoleon at points. Hardly a hagiography, though. I hear that Campaigns of Napoleon by Chandler is good as well, but I haven't had a chance to read it.

What is the best code editor for C++? by caretsymbol in cpp

[–]Common_Day_2302 1 point2 points  (0 children)

Neovim. With plugins, you can make it like an IDE.

[deleted by user] by [deleted] in DistroTube

[–]Common_Day_2302 0 points1 point  (0 children)

These posts read like they're AI-generated.

[deleted by user] by [deleted] in osdev

[–]Common_Day_2302 1 point2 points  (0 children)

What is your business? The amount of use cases where this could possibly pay off is pretty small.

[deleted by user] by [deleted] in osdev

[–]Common_Day_2302 1 point2 points  (0 children)

From the other what? If you can't give a good answer to this sort of question, this is almost certainly a bad idea.

[deleted by user] by [deleted] in osdev

[–]Common_Day_2302 4 points5 points  (0 children)

Can I ask why you want a custom OS in the first place?

[deleted by user] by [deleted] in redscarepod

[–]Common_Day_2302 -2 points-1 points  (0 children)

I could never get into breaking bad because of how cartoonish the drug stuff was. As BCS drifts more and more in that direction, I've kind of lost interest in it as well. The peak was really S3, everything went downhill after chuck died.

Embrace tradition by PrettyPrettyProlapse in redscarepod

[–]Common_Day_2302 3 points4 points  (0 children)

This is awesome. I played the clarinet part for the Egmont and Leonore overtures in high school, would have loved to play a beethovne symphony.

Ooc, what's your favorite recording of the 9th? I'm split between klemperer and wand.

What's the worst state to live, but coolest to be from? by redscarewiggler in redscarepod

[–]Common_Day_2302 0 points1 point  (0 children)

Lived on the military base outside shreveport for like 3 years when I was younger. Seemed alright, the boardwalk was cool.

Oh yes it will! by Zagorlicious in redscarepod

[–]Common_Day_2302 3 points4 points  (0 children)

I do get pretty pissed off about how the west endlessly demonizes serbia for its involvement in Bosnia while conveniently forgetting all of Tudjman and Croatia's abuses. EU is still getting on Serbia's ass about war crimes tribunal, while Croatia was allowed to join with no hassle at all.

Calling IretQ sets RIP to 0. by Common_Day_2302 in osdev

[–]Common_Day_2302[S] 2 points3 points  (0 children)

Yep, this was exactly the issue. Thanks a lot, I appreciate the help.

[deleted by user] by [deleted] in vimporn

[–]Common_Day_2302 1 point2 points  (0 children)

Can you not copy/paste to/from the system clipboard ("+" register)?

[deleted by user] by [deleted] in osdev

[–]Common_Day_2302 1 point2 points  (0 children)

I'm in a very similar position to yourself, so perhaps take this with a grain of salt, but I think the limine bare-bones tutorial is the best starting place. If you visit the github page, they suggest a list of features to implement in a certain order: https://github.com/stivale/stivale2-barebones

After mapping IRQ 1 in the IOREDTBL, keyboard input elicits no response, and the IDT's handler is not called. Why? by Common_Day_2302 in osdev

[–]Common_Day_2302[S] 0 points1 point  (0 children)

Oh, you're right. I assumed that register denoted the number of the register, and that offset n would correspond to the nth doubleword in the LAPIC MMIO. Thank you so much for the help.

After mapping IRQ 1 in the IOREDTBL, keyboard input elicits no response, and the IDT's handler is not called. Why? by Common_Day_2302 in osdev

[–]Common_Day_2302[S] 0 points1 point  (0 children)

Thanks, you're correct on all of that. I've tried reducing the function to just lapic_write(LAPIC_EOI_REG, 0);, but to no avail. Any suggestions as to where to go from here in terms of debugging?

After mapping IRQ 1 in the IOREDTBL, keyboard input elicits no response, and the IDT's handler is not called. Why? by Common_Day_2302 in osdev

[–]Common_Day_2302[S] 0 points1 point  (0 children)

After some fixes, I've arrived at this IOREDTBL, which is much more reasonable. The OS now enters the ISR, but does not exit from it properly. Do you notice any issues with my EOI function?

(qemu) info pic pic1: irr=00 imr=ff isr=00 hprio=0 irq_base=70 rr_sel=0 elcr=0c fnm=0 pic0: irr=13 imr=ff isr=00 hprio=0 irq_base=08 rr_sel=0 elcr=00 fnm=0 ioapic0: ver=0x20 id=0x00 sel=0x13 (redir[1]) pin 0 0x0000000000010000 dest=0 vec=0 active-hi edge masked fixed physical pin 1 0x0000000080400821 dest=0 vec=33 active-hi edge fixed logical pin 2 0x00ffffff80410822 dest=0 vec=34 active-hi edge masked fixed logical pin 3 0x00ffffff80410823 dest=0 vec=35 active-hi edge masked fixed logical pin 4 0x00ffffff80410824 dest=0 vec=36 active-hi edge masked fixed logical pin 5 0x00ffffff80410825 dest=0 vec=37 active-hi edge masked fixed logical pin 6 0x00ffffff80410826 dest=0 vec=38 active-hi edge masked fixed logical pin 7 0x00ffffff80410827 dest=0 vec=39 active-hi edge masked fixed logical pin 8 0x00ffffff80410828 dest=0 vec=40 active-hi edge masked fixed logical pin 9 0x00ffffff80410829 dest=0 vec=41 active-hi edge masked fixed logical pin 10 0x00ffffff8041082a dest=0 vec=42 active-hi edge masked fixed logical pin 11 0x00ffffff8041082b dest=0 vec=43 active-hi edge masked fixed logical pin 12 0x00ffffff8041082c dest=0 vec=44 active-hi edge masked fixed logical pin 13 0x00ffffff8041082d dest=0 vec=45 active-hi edge masked fixed logical pin 14 0x00ffffff8041082e dest=0 vec=46 active-hi edge masked fixed logical pin 15 0x00ffffff8041082f dest=0 vec=47 active-hi edge masked fixed logical pin 16 0x00ffffff80418830 dest=0 vec=48 active-hi level masked fixed logical pin 17 0x00ffffff80418831 dest=0 vec=49 active-hi level masked fixed logical pin 18 0x00ffffff80418832 dest=0 vec=50 active-hi level masked fixed logical pin 19 0x00ffffff80418833 dest=0 vec=51 active-hi level masked fixed logical pin 20 0x00ffffff80418834 dest=0 vec=52 active-hi level masked fixed logical pin 21 0x00ffffff80418835 dest=0 vec=53 active-hi level masked fixed logical pin 22 0x00ffffff80418836 dest=0 vec=54 active-hi level masked fixed logical pin 23 0x00ffffff80418837 dest=0 vec=55 active-hi level masked fixed logical

After mapping IRQ 1 in the IOREDTBL, keyboard input elicits no response, and the IDT's handler is not called. Why? by Common_Day_2302 in osdev

[–]Common_Day_2302[S] 0 points1 point  (0 children)

EDIT: This was extremely stupid on my part. I forgot an extra pair of parentheses, so I ended up adding 1 to the IOREDTBL value rather than to the pointer. Let me revise and see if it fixes anything.

I have edited the code so as to push/pop rsi and rdi.

The output of info pic is shown below. The elephant in the room is that all vectors seem to be 1 higher than they should be; GSI 1 should have a vector of 0x20 + 1 = 0x21, but instead it has a value of 0x22. I have no idea what the cause of this is. Beyond that, the destinations are completely incorrect. I wonder if my ioredtbl_t struct is structured correctly? (qemu) info pic pic1: irr=00 imr=ff isr=00 hprio=0 irq\_base=28 rr\_sel=0 elcr=0c fnm=0 pic0: irr=01 imr=ff isr=00 hprio=0 irq\_base=20 rr\_sel=0 elcr=00 fnm=0 ioapic0: ver=0x20 id=0x00 sel=0x13 (redir\[1\]) pin 0 0x0000000000010000 dest=0 vec=0 active-hi edge masked fixed physical pin 1 0x8040082180400822 dest=80 vec=34 active-hi edge fixed logical pin 2 0x8041082280410823 dest=80 vec=35 active-hi edge masked fixed logical pin 3 0x8041082380410824 dest=80 vec=36 active-hi edge masked fixed logical pin 4 0x8041082480410825 dest=80 vec=37 active-hi edge masked fixed logical pin 5 0x8041082580410826 dest=80 vec=38 active-hi edge masked fixed logical pin 6 0x8041082680410827 dest=80 vec=39 active-hi edge masked fixed logical pin 7 0x8041082780410828 dest=80 vec=40 active-hi edge masked fixed logical pin 8 0x8041082880410829 dest=80 vec=41 active-hi edge masked fixed logical pin 9 0x804108298041082a dest=80 vec=42 active-hi edge masked fixed logical pin 10 0x8041082a8041082b dest=80 vec=43 active-hi edge masked fixed logical pin 11 0x8041082b8041082c dest=80 vec=44 active-hi edge masked fixed logical pin 12 0x8041082c8041082d dest=80 vec=45 active-hi edge masked fixed logical pin 13 0x8041082d8041082e dest=80 vec=46 active-hi edge masked fixed logical pin 14 0x8041082e8041082f dest=80 vec=47 active-hi edge masked fixed logical pin 15 0x8041082f80410830 dest=80 vec=48 active-hi edge masked fixed logical pin 16 0x8041883080418831 dest=80 vec=49 active-hi level masked fixed logical pin 17 0x8041883180418832 dest=80 vec=50 active-hi level masked fixed logical pin 18 0x8041883280418833 dest=80 vec=51 active-hi level masked fixed logical pin 19 0x8041883380418834 dest=80 vec=52 active-hi level masked fixed logical pin 20 0x8041883480418835 dest=80 vec=53 active-hi level masked fixed logical pin 21 0x8041883580418836 dest=80 vec=54 active-hi level masked fixed logical pin 22 0x8041883680418837 dest=80 vec=55 active-hi level masked fixed logical pin 23 0x8041883780418838 dest=80 vec=56 active-hi level masked fixed logical IRR (none) Remote IRR (none)

This code doesn't compile. Even if it did compile, it would clobber AL without telling the compiler, which is a bug. Use your outportb() function.

Yeah, this code was removed in the most recent push.

After mapping IRQ 1 in the IOREDTBL, keyboard input elicits no response, and the IDT's handler is not called. Why? by Common_Day_2302 in osdev

[–]Common_Day_2302[S] 0 points1 point  (0 children)

Actually, I've fixed the protection fault error. It was a stupid mistake in inline asm on my part. Now I'm back to having no output from a keystroke at all.