This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11:23 <+baddog> duckinator: well suppose you have a 2mx2m square | |
11:23 <+duckinator> right | |
11:23 <+baddog> and you draw a line starting at one corner | |
11:23 <+baddog> and going 1 unit left one unit down 1 unit left 1 unit down | |
11:24 <+baddog> so you get to the diagonally opposite corner | |
11:24 <+duckinator> mhm | |
11:24 <+baddog> length of that line is 4 | |
11:24 <+baddog> 4m* | |
11:24 <+CodeBlock> 1 unit left one unit down 1 unit left | |
11:24 * CodeBlock lols at the 1/one change |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.shortcuts import render_to_response | |
def hello(request): | |
hello = "do haz." | |
return render_to_response('index.html', {'hi_text': hello}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.shortcuts import render_to_response | |
def hello(request): | |
hello = "do haz." | |
return render_to_response('index.html', {'hi_text': hello}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.shortcuts import render_to_response | |
def hello(request): | |
hello = "do haz." | |
return render_to_response('index.html', {'hi_text': hello}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <metodo/metodo.h> | |
#include <buildid.h> | |
void InInitKernel(void) | |
{ | |
char *str = "Metodo " __DATE__ " " __TIME__ " " ARCH " " SCM_REV "\n"; | |
HalInit(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <metodo/hal/isr.h> | |
#include <metodo/hal/irq.h> | |
#include <metodo/metodo.h> | |
/* This array is actually an array of function pointers. We use | |
* this to handle custom IRQ handlers for a given IRQ */ | |
void *irq_routines[16] = | |
{ | |
0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <metodo/hal/hal.h> | |
#include <metodo/metodo.h> | |
#include <metodo/hal/i386.h> | |
#include <metodo/hal/irq.h> | |
#include <metodo/hal/isr.h> | |
#include <metodo/hal/keyboard.h> | |
#include "keysym.h" // Scan codes | |
unsigned char buf[0x1000]; | |
unsigned char *buffer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unsigned char keysym_us[128] = | |
{ | |
0, 27, '1', '2', '3', '4', '5', '6', '7', '8', /* 9 */ | |
'9', '0', '-', '=', '\x08', /* Backspace */ | |
'\t', /* Tab */ | |
'q', 'w', 'e', 'r', /* 19 */ | |
't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\n', /* Enter key */ | |
0, /* 29 - Control */ | |
'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', /* 39 */ | |
'\'', '`', 0, /* Left shift */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <system.h> | |
#include <dux/mm/memory.h> | |
#define END_MEMORY 0x1000000 | |
extern unsigned int end; | |
unsigned int placement = 0; | |
/* malloc(size, flags) | |
* Simple placement based allocator. This allocates off the end of the kernel. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef MEMORY_WCZWHBJM | |
#define MEMORY_WCZWHBJM | |
typedef struct { | |
unsigned int present : 1; | |
unsigned int readwrite : 1; | |
unsigned int user : 1; | |
unsigned int writethrough : 1; | |
unsigned int cachedisable : 1; |
OlderNewer