OSDev.org
https://forum.osdev.org/

Making the "Interrupts" page less arch-specific
https://forum.osdev.org/viewtopic.php?f=8&t=23303
Page 1 of 1

Author:  Neolander [ Mon Mar 14, 2011 4:55 am ]
Post subject:  Making the "Interrupts" page less arch-specific

Currently, the wiki's entry on interrupts is highly x86-specific (even PIC-specific). In my opinion, for someone who wants to write portable code, it would be interesting to have some arch-independent description of the interrupt mechanism, and separate entries about the arch-specific bits.

Having collected some data on how it works on some past and current CPU architectures, I've begun experimenting with that. Here's a tentative rewrite of the "Interrupts in a nutshell" bit. What do you think about it ?

Author:  Combuster [ Mon Mar 14, 2011 5:19 am ]
Post subject:  Re: Attempts to make the "Interrupts" page less arch-specifi

I don't mind splitting the (small) theory part out of the Interrupts page - actually it would probably be a good plan to move it to Interrupts (x86), move your page to Interrupts and add a forward to the platform-specific part.

Author:  Solar [ Mon Mar 14, 2011 6:38 am ]
Post subject:  Re: Making the "Interrupts" page less arch-specific

I added a note on your Wiki user discussion page on the rewrite before seeing this here. I temper my Wiki remark a bit now that I see what you are trying to do - but only a bit. Take care not to start from too base a level.

Author:  Brynet-Inc [ Mon Mar 14, 2011 11:43 am ]
Post subject:  Re: Making the "Interrupts" page less arch-specific

The basic theory shouldn't need to be explained again, the real juicy bits are in the implementation.. I'd opt for a rename of that article as Combuster stated.

Author:  Neolander [ Mon Mar 14, 2011 2:22 pm ]
Post subject:  Re: Making the "Interrupts" page less arch-specific

Solar wrote:
I added a note on your Wiki user discussion page on the rewrite before seeing this here. I temper my Wiki remark a bit now that I see what you are trying to do - but only a bit. Take care not to start from too base a level.

I indeed have a tendency to explains the basics even when I'm talking about relatively advanced topics. Thanks for pointing it out I'll try to avoid this in further revisions of this page (even though I don't know which level of knowledge I should assume to be there... If people knew all those matters perfectly, wiki entries would be unnecessary and OS projects would succeed more often)

An idea I've had this afternoon is to introduce a sort of glossary for those who are unsure about some matters (short reminders of the difference between an interrupt and an exception, masking, what are software interrupts, different ways vectors can work, what are PICs and what can they do, interrupt priority mechanisms) and then to write a big table comparing various architectures on points where implementations differ and linking to the page of each arch.

Author:  Solar [ Tue Mar 15, 2011 2:11 am ]
Post subject:  Re: Making the "Interrupts" page less arch-specific

Neolander wrote:
...I don't know which level of knowledge I should assume to be there...


I would expect an OS developer to have a good grasp of what an interrupt is, in general terms, and I also expect an OS developer to have the documentation for his CPU of choice at hand (and read front-to-back at least once).

I know that many aspiring OS developers don't meet this criteria, but I do think that it's reasonable.

The job of the OSDev Wiki, IMHO, is to:

  • summarize on a subject and give an overview (making the technical docs easier to comprehend);
  • point out design choices involved;
  • point out caveats, cross-subject considerations;
  • provide exemplary, "best practice" how-to's where appropriate.

I.e., the Wiki should / could never be a replacement for the technical docs, but a supplement, providing those parts that are not immediately obvious from the official manuals but born out of experience.

Author:  gerryg400 [ Tue Mar 15, 2011 2:51 am ]
Post subject:  Re: Making the "Interrupts" page less arch-specific

I agree that perhaps the basic information need not be repeated.

To write portable code one needs to create a portable 'model' of an interrupt system that can be applied to a number of architectures. Perhaps your wiki entry could present the design of such a model.

Author:  Neolander [ Tue Mar 15, 2011 2:57 am ]
Post subject:  Re: Making the "Interrupts" page less arch-specific

gerryg400 wrote:
To write portable code one needs to create a portable 'model' of an interrupt system that can be applied to a number of architectures. Perhaps your wiki entry could present the design of such a model.

That's the idea :)

Author:  gravaera [ Tue Mar 15, 2011 5:05 pm ]
Post subject:  Re: Making the "Interrupts" page less arch-specific

Just dropping by to say I like that people are seeing the need to make the wiki articles more focused on design and not "tutorials", and that there are people interested in presenting good theory pages. Nice :)

--Peace out
gravaera

Author:  Neolander [ Sun Mar 20, 2011 3:01 pm ]
Post subject:  Re: Making the "Interrupts" page less arch-specific

What would you think about something at this level of required knowledge ? Would it be a step in the right direction ?

http://theosperiment.wordpress.com/2011 ... l-alpha-1/

Author:  Neolander [ Sun Jun 12, 2011 4:32 am ]
Post subject:  Re: Making the "Interrupts" page less arch-specific

Well, nevermind, I had started to do too much things at the same time and this task didn't progress. I'll stop there, though I think that I could have done more in the right circumstances. If anyone else wants to work on this, he can use my draft in any way he wants, public domain, blah blah blah.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/