Add infos

This commit is contained in:
Loic Guegan 2021-04-09 13:52:31 +02:00
parent f6323421e2
commit deabd68158
3 changed files with 66 additions and 2 deletions

View file

@ -0,0 +1,2 @@
# Bringelle
![Memory Organization](tools/ram.svg)

View file

@ -3,7 +3,7 @@
#include "mem.h"
struct IDT_REGISTER IDTR={
100*8,
200*8,
0x0
};
@ -29,7 +29,7 @@ extern u32 PIC_IRQ_DEFAULT,PIC_IRQ_PRINT,PIC_IRQ_CLOCK;
void pic_enable_interrupt(){
// Map first default 32 entries
for(int i=0;i<100;i++){
for(int i=0;i<200;i++){
pic_add_idt_entry((IDT_ENTRY){0x08,(u32)&PIC_IRQ_DEFAULT,IDT_TYPE_1},i);
if(i==32)
pic_add_idt_entry((IDT_ENTRY){0x08,(u32)&PIC_IRQ_CLOCK,IDT_TYPE_1},i);

62
tools/ram.svg Normal file
View file

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="210mm"
height="297mm"
viewBox="0 0 210 297"
version="1.1"
id="svg8"
inkscape:version="1.0.2 (e86c870879, 2021-01-15, custom)"
sodipodi:docname="ram.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.6327754"
inkscape:cx="257.73147"
inkscape:cy="345.55194"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
inkscape:window-width="1892"
inkscape:window-height="1014"
inkscape:window-x="10"
inkscape:window-y="48"
inkscape:window-maximized="0" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#ffffff;fill-rule:evenodd;stroke-width:2;stroke:#333333;stroke-miterlimit:4;stroke-dasharray:none"
id="rect10"
width="67.534943"
height="112.65762"
x="43.210255"
y="34.834328" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB