Click here to Skip to main content
15,904,500 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: OS Kernels Pin
Richard Andrew x642-Sep-16 10:07
professionalRichard Andrew x642-Sep-16 10:07 
GeneralRe: OS Kernels Pin
Mladen Janković2-Sep-16 12:12
Mladen Janković2-Sep-16 12:12 
GeneralRe: OS Kernels Pin
Mladen Janković2-Sep-16 12:00
Mladen Janković2-Sep-16 12:00 
GeneralRe: OS Kernels Pin
Richard Andrew x642-Sep-16 12:04
professionalRichard Andrew x642-Sep-16 12:04 
GeneralRe: OS Kernels Pin
Mladen Janković2-Sep-16 12:12
Mladen Janković2-Sep-16 12:12 
GeneralRe: OS Kernels Pin
Tomaž Štih3-Sep-16 6:29
Tomaž Štih3-Sep-16 6:29 
GeneralRe: OS Kernels Pin
Mladen Janković3-Sep-16 7:36
Mladen Janković3-Sep-16 7:36 
GeneralRe: OS Kernels Pin
Tomaž Štih2-Sep-16 22:30
Tomaž Štih2-Sep-16 22:30 
I prefer C because the code is really clean an you know what it will compile into. But tt could be done in C++. The question is - do you also want to expose system services in object oriented manner or simply write a kernel using it?

Your everyday micro-kernel does following:

1) Startup code is usually written in assembler. It manages interrupts, initializes stack, vectors and BSS/DATA segments for C/C++ code, and typically ends by calling your _main function), minor changes are required here (I guess there are some C++ code startup tasks here).

2) Memory management. Operator new would have to be overloaded.

3) Task (thread) management. Maintaining thread queues (running, sleeping, waiting, suspended, etc.), basic context switching logic, algorithm to select next thread to run, and algorithms to support sync. events (this is commonly just moving threads from one queue to another).

4) IPC mechanisms. You could expose the inner kernel logic as some sort of interfaces, similar to COM vtables. And proxy each function so that it "simulates" OS mode call before executing (depending on hardware).

If you'd like to give it a go I am maintaining a tiny OS kernel for ZX Spectrum here [^]. I'd have a desire to port it to Raspberry PI for a while...

Regards,
Tomaz
GeneralRe: OS Kernels Pin
JackPeacock6-Sep-16 2:11
professionalJackPeacock6-Sep-16 2:11 
GeneralRe: OS Kernels Pin
Richard Andrew x646-Sep-16 12:11
professionalRichard Andrew x646-Sep-16 12:11 
GeneralRe: OS Kernels Pin
JackPeacock6-Sep-16 22:29
professionalJackPeacock6-Sep-16 22:29 
GeneralWhat do you guys think of H-1B visas ? Pin
jlongo2-Sep-16 6:19
jlongo2-Sep-16 6:19 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
User 84202-Sep-16 6:24
User 84202-Sep-16 6:24 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
OriginalGriff2-Sep-16 6:30
mveOriginalGriff2-Sep-16 6:30 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
Charles Programmer5-Sep-16 6:24
Charles Programmer5-Sep-16 6:24 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
OriginalGriff2-Sep-16 6:29
mveOriginalGriff2-Sep-16 6:29 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
jlongo2-Sep-16 6:35
jlongo2-Sep-16 6:35 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
Richard Deeming2-Sep-16 6:40
mveRichard Deeming2-Sep-16 6:40 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
Kent Sharkey2-Sep-16 7:55
staffKent Sharkey2-Sep-16 7:55 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
Richard Deeming2-Sep-16 8:11
mveRichard Deeming2-Sep-16 8:11 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
#realJSOP2-Sep-16 16:22
professional#realJSOP2-Sep-16 16:22 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
W Balboos, GHB2-Sep-16 6:41
W Balboos, GHB2-Sep-16 6:41 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
Richard Deeming2-Sep-16 6:52
mveRichard Deeming2-Sep-16 6:52 
GeneralRe: What is the position of the presidential candidates on H-1B visas ? Pin
Rick York2-Sep-16 9:58
mveRick York2-Sep-16 9:58 
GeneralRe: What do you guys think of H-1B visas ? Pin
jschell2-Sep-16 7:14
jschell2-Sep-16 7:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.