Skip to content

Instantly share code, notes, and snippets.

@aerodame
Created April 29, 2015 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aerodame/a60cb5faa9a3dc5d565d to your computer and use it in GitHub Desktop.
Save aerodame/a60cb5faa9a3dc5d565d to your computer and use it in GitHub Desktop.
public class Kernel
{
private static SyncQueue ioQueue;
...
public static int interrupt( int irq, int cmd, int param, Object args ) {
TCB myTcb;
switch( irq ) {
case INTERRUPT_SOFTWARE: // System calls
switch( cmd ) {
case BOOT:
...
ioQueue = new SyncQueue( );
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment