Permalink
Browse files

Initial Commit

  • Loading branch information...
0 parents commit b3d03ad4f67f23d1f892432fec2a41db8671382a erol committed Dec 21, 2012
Showing with 6,121 additions and 0 deletions.
  1. +133 −0 .cproject
  2. +77 −0 .project
  3. +1 −0 .svn/entries
  4. +1 −0 .svn/format
  5. +63 −0 .svn/pristine/0c/0ce42fb2eb275ff19677bc6133ec456ed5a66cf8.svn-base
  6. +75 −0 .svn/pristine/21/21a5519f763d59732338ff2e18b64296ed2fda29.svn-base
  7. +11 −0 .svn/pristine/26/2611562be0dd5adf30f333ddd2fa5be1c9123495.svn-base
  8. +26 −0 .svn/pristine/28/2811e6d84e9be5c9d9ce6787cc8a1ce1018fe74b.svn-base
  9. +99 −0 .svn/pristine/28/28281141436209d83eda47c06711fad7fb7a3bdf.svn-base
  10. +12 −0 .svn/pristine/2c/2c9481cde22cd769ca9a0fa22d85807c83269336.svn-base
  11. +188 −0 .svn/pristine/2c/2ca2fd4027a2804eda9ed192762a26642b862ce2.svn-base
  12. +17 −0 .svn/pristine/33/3306fed0d76aa6558db933508d62b4e140c36c55.svn-base
  13. +10 −0 .svn/pristine/3b/3bf05e45079dca88199163a74ad6c00e4626f13b.svn-base
  14. +18 −0 .svn/pristine/3e/3ec13ea9b21b740187a2b39c202d06d9a0093f43.svn-base
  15. +16 −0 .svn/pristine/44/44088cbfb40c5b3937271fd95394c9661baf8165.svn-base
  16. +50 −0 .svn/pristine/49/49306f4ca8468e75e835f3d7e85fa47140482158.svn-base
  17. +6 −0 .svn/pristine/4a/4a6f650b71338c757f7b7b92652f43d4147cfa03.svn-base
  18. +133 −0 .svn/pristine/4d/4d66bc8ba69ac5df3ab8343ac9cf1f25fdffdf16.svn-base
  19. +58 −0 .svn/pristine/50/50ec50d561d5b74ee825259b573e799486237555.svn-base
  20. +8 −0 .svn/pristine/58/58fe8218b6078b1c17a5987cd8257780ae2f3eac.svn-base
  21. +62 −0 .svn/pristine/69/69314a952f85a210783c5f70844d5304f7529873.svn-base
  22. +27 −0 .svn/pristine/70/702361945008eef04bba2ce865aa2dd163e61f50.svn-base
  23. +4 −0 .svn/pristine/74/74c18d3d42a1a6eeca3a374368482808441333db.svn-base
  24. +12 −0 .svn/pristine/75/75ad5ac45acdb80857ad66bc67296d97932ebf02.svn-base
  25. +109 −0 .svn/pristine/78/784ef162e7b994e5368be5c706f26c895ba081d7.svn-base
  26. BIN .svn/pristine/7a/7a09c24f0fc294d48bf062254ad27dcbb531a8df.svn-base
  27. +85 −0 .svn/pristine/7b/7be2f03d6f3c859d3cc4c8f0e7c615555709d452.svn-base
  28. +28 −0 .svn/pristine/83/83fbb7791f1937dd99f8d0a0b7d9f54dd728e23f.svn-base
  29. +71 −0 .svn/pristine/8e/8e8695c4b3dd38b3f7b8870e6ef6c7d329459ce3.svn-base
  30. +6 −0 .svn/pristine/9d/9d24fffba8a922582313157abc977a53141c27b0.svn-base
  31. +8 −0 .svn/pristine/a6/a6a98d4fa734b74ec8e15101990728eab967b782.svn-base
  32. +53 −0 .svn/pristine/b1/b12645e4af51ff9aa48afafbb228d4a213fded84.svn-base
  33. +5 −0 .svn/pristine/b1/b139674e92ac5a39d45651ec79733fb4f7abbe75.svn-base
  34. +17 −0 .svn/pristine/b3/b30cd2d37ea136fef46a7773302bd56c59a201f3.svn-base
  35. +77 −0 .svn/pristine/bb/bb0f4695929a73010bf0838fe6484d3524aa6a67.svn-base
  36. +24 −0 .svn/pristine/be/be6f14118530576dde6d622f5b35d142ba9f8493.svn-base
  37. +57 −0 .svn/pristine/c6/c6e61b17b5612ba5d62c91ba09fe533a218beb1e.svn-base
  38. +9 −0 .svn/pristine/cc/cca8984fecc5ad05a1ef94d8568e99d8bfaa2ac6.svn-base
  39. +9 −0 .svn/pristine/ce/ce2b533508709178ed4b984be5766e3d9aa6099f.svn-base
  40. +47 −0 .svn/pristine/cf/cf2da8a586de5128310ae5b5e54163248e0d5971.svn-base
  41. +20 −0 .svn/pristine/d0/d055a254666ca8b170a1e1c20af7c864a1124f70.svn-base
  42. +44 −0 .svn/pristine/d5/d51b0d5863cf59087b4edf7626f2f05541c30c1b.svn-base
  43. +7 −0 .svn/pristine/d6/d64be56b45c456289b884fad08d516c42ac1ed55.svn-base
  44. +6 −0 .svn/pristine/d9/d90e906509cc192caf6c7058420b9281c3c3c9eb.svn-base
  45. +61 −0 .svn/pristine/dc/dcbbb00e477f2488a9e485a4dce5c4e92880f80f.svn-base
  46. +24 −0 .svn/pristine/df/dfe441cc3fb669e559ca7cbfead402ff7370baf2.svn-base
  47. +113 −0 .svn/pristine/e2/e2154d59293fae97fbba91cb4d05c1297c96c6ad.svn-base
  48. +2 −0 .svn/pristine/e4/e45efb331a3696001eccb80775b36dace22064b0.svn-base
  49. BIN .svn/pristine/ea/eafb2e120a01f32f8c2c1d38e7dadf2a2cecace4.svn-base
  50. +111 −0 .svn/pristine/f0/f01443a24b609c6e16c7c296fb37100741606bc9.svn-base
  51. BIN .svn/wc.db
  52. +22 −0 ENV
  53. +17 −0 Makefile
  54. +2,254 −0 backup.install
  55. +205 −0 bochsout.txt
  56. +16 −0 bochsrc.txt
  57. +50 −0 boot/GDT.INC
  58. +9 −0 boot/Makefile
  59. +20 −0 boot/UTIL.INC
  60. BIN boot/bootsect
  61. +111 −0 boot/bootsect.asm
  62. +6 −0 commit
  63. +6 −0 compile.sh
  64. BIN floppy.img
  65. +17 −0 kern/Makefile
  66. +71 −0 kern/gdt.c
  67. BIN kern/gdt.o
  68. +62 −0 kern/idt.c
  69. BIN kern/idt.o
  70. +85 −0 kern/int.asm
  71. BIN kern/int.o
  72. +113 −0 kern/interrupt.c
  73. BIN kern/interrupt.o
  74. +12 −0 kern/io.c
  75. BIN kern/io.o
  76. BIN kern/kernel
  77. +61 −0 kern/kernel.c
  78. BIN kern/kernel.o
  79. +17 −0 kern/kheap.c
  80. +11 −0 kern/lib.c
  81. BIN kern/lib.o
  82. +53 −0 kern/lib/gdt.h
  83. +26 −0 kern/lib/idt.h
  84. +58 −0 kern/lib/io.h
  85. +99 −0 kern/lib/kbd.h
  86. +9 −0 kern/lib/kheap.h
  87. +2 −0 kern/lib/malloc.h
  88. +46 −0 kern/lib/mm.h
  89. +4 −0 kern/lib/paging.h
  90. +27 −0 kern/lib/screen.h
  91. +10 −0 kern/lib/serial.h
  92. +12 −0 kern/lib/types.h
  93. +57 −0 kern/mm.c
  94. BIN kern/mm.o
  95. +24 −0 kern/pic.c
  96. BIN kern/pic.o
  97. +109 −0 kern/screen.c
  98. BIN kern/screen.o
  99. +44 −0 kern/serial.c
  100. BIN kern/serial.o
  101. +28 −0 kern/syscalls.c
  102. BIN kern/syscalls.o
  103. +75 −0 nbproject/Package-Default.bash
  104. +68 −0 nbproject/configurations.xml
  105. +39 −0 nbproject/private/configurations.xml
  106. +8 −0 nbproject/private/private.xml
  107. +24 −0 nbproject/project.xml
  108. +5 −0 ne2k-pktlog.txt
  109. +8 −0 run_bochs.sh
  110. +8 −0 svn-commit.2.tmp
  111. +6 −0 svn-commit.tmp
  112. +7 −0 update_image.sh
@@ -0,0 +1,133 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?>
+
+<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+<storageModule moduleId="org.eclipse.cdt.core.settings">
+<cconfiguration id="cdt.managedbuild.toolchain.gnu.base.2069792940">
+<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.toolchain.gnu.base.2069792940" moduleId="org.eclipse.cdt.core.settings" name="make">
+<externalSettings/>
+<extensions>
+<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
+</extensions>
+</storageModule>
+<storageModule moduleId="cdtBuildSystem" version="4.0.0">
+<configuration artifactName="MyKernel" buildProperties="" description="" id="cdt.managedbuild.toolchain.gnu.base.2069792940" name="make" parent="org.eclipse.cdt.build.core.emptycfg">
+<folderInfo id="cdt.managedbuild.toolchain.gnu.base.2069792940.1931321565" name="/" resourcePath="">
+<toolChain id="cdt.managedbuild.toolchain.gnu.base.1932205695" name="cdt.managedbuild.toolchain.gnu.base" superClass="cdt.managedbuild.toolchain.gnu.base">
+<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="cdt.managedbuild.target.gnu.platform.base.1767401086" name="Debug Platform" osList="linux,hpux,aix,qnx" superClass="cdt.managedbuild.target.gnu.platform.base"/>
+<builder id="cdt.managedbuild.target.gnu.builder.base.1875670757" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="cdt.managedbuild.target.gnu.builder.base"/>
+<tool id="cdt.managedbuild.tool.gnu.archiver.base.1082225650" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.base"/>
+<tool id="cdt.managedbuild.tool.gnu.cpp.compiler.base.1745759713" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.base"/>
+<tool id="cdt.managedbuild.tool.gnu.c.compiler.base.1599677083" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.base">
+<inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.2087574057" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/>
+</tool>
+<tool id="cdt.managedbuild.tool.gnu.c.linker.base.951644738" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.base">
+<inputType id="cdt.managedbuild.tool.gnu.c.linker.input.1529163915" superClass="cdt.managedbuild.tool.gnu.c.linker.input">
+<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
+<additionalInput kind="additionalinput" paths="$(LIBS)"/>
+</inputType>
+</tool>
+<tool id="cdt.managedbuild.tool.gnu.cpp.linker.base.762057971" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.base"/>
+<tool id="cdt.managedbuild.tool.gnu.assembler.base.63577340" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.base">
+<inputType id="cdt.managedbuild.tool.gnu.assembler.input.1466103024" superClass="cdt.managedbuild.tool.gnu.assembler.input"/>
+</tool>
+</toolChain>
+</folderInfo>
+</configuration>
+</storageModule>
+<storageModule moduleId="scannerConfiguration">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/specs.c" command="gcc" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/${specs_file}&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileCPP">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'g++ -E -P -v -dD &quot;${plugin_state_location}/specs.cpp&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfileC">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-c 'gcc -E -P -v -dD &quot;${plugin_state_location}/specs.c&quot;'" command="sh" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+</storageModule>
+<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
+<storageModule moduleId="org.eclipse.cdt.core.language.mapping"/>
+<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/>
+</cconfiguration>
+</storageModule>
+<storageModule moduleId="cdtBuildSystem" version="4.0.0">
+<project id="MyKernel.null.1580862898" name="MyKernel"/>
+</storageModule>
+</cproject>
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>OwnKernel</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <triggers>clean,full,incremental,</triggers>
+ <arguments>
+ <dictionary>
+ <key>?name?</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.append_environment</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.autoBuildTarget</key>
+ <value>all</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildArguments</key>
+ <value></value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.buildCommand</key>
+ <value>make</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
+ <value>clean</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.contents</key>
+ <value>org.eclipse.cdt.make.core.activeConfigSettings</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+ <value>false</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.enableFullBuild</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.fullBuildTarget</key>
+ <value>all</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.stopOnError</key>
+ <value>true</value>
+ </dictionary>
+ <dictionary>
+ <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+ <value>true</value>
+ </dictionary>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.cdt.core.cnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1 @@
+12
@@ -0,0 +1 @@
+12
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configurationDescriptor version="80">
+ <logicalFolder name="root" displayName="root" projectFiles="true" kind="ROOT">
+ <df name="OwnKernel" root=".">
+ <df name="boot">
+ <in>bootsect.asm</in>
+ </df>
+ <df name="kern">
+ <df name="lib">
+ <in>gdt.h</in>
+ <in>idt.h</in>
+ <in>io.h</in>
+ <in>kbd.h</in>
+ <in>malloc.h</in>
+ <in>mm.h</in>
+ <in>screen.h</in>
+ <in>serial.h</in>
+ <in>types.h</in>
+ </df>
+ <in>gdt.c</in>
+ <in>idt.c</in>
+ <in>int.asm</in>
+ <in>interrupt.c</in>
+ <in>io.c</in>
+ <in>kernel.c</in>
+ <in>lib.c</in>
+ <in>mm.c</in>
+ <in>pic.c</in>
+ <in>screen.c</in>
+ <in>serial.c</in>
+ <in>syscalls.c</in>
+ </df>
+ </df>
+ <logicalFolder name="ExternalFiles"
+ displayName="Important Files"
+ projectFiles="false"
+ kind="IMPORTANT_FILES_FOLDER">
+ <itemPath>Makefile</itemPath>
+ </logicalFolder>
+ </logicalFolder>
+ <sourceFolderFilter>^(nbproject)$</sourceFolderFilter>
+ <sourceRootList>
+ <Elem>.</Elem>
+ <Elem>kern/lib</Elem>
+ </sourceRootList>
+ <projectmakefile>Makefile</projectmakefile>
+ <confs>
+ <conf name="Default" type="0">
+ <toolsSet>
+ <remote-sources-mode>LOCAL_SOURCES</remote-sources-mode>
+ <compilerSet>default</compilerSet>
+ </toolsSet>
+ <makefileType>
+ <makeTool>
+ <buildCommandWorkingDir>.</buildCommandWorkingDir>
+ <buildCommand>${MAKE} -f Makefile</buildCommand>
+ <cleanCommand>${MAKE} -f Makefile clean</cleanCommand>
+ <executablePath></executablePath>
+ </makeTool>
+ </makefileType>
+ </conf>
+ </confs>
+</configurationDescriptor>
@@ -0,0 +1,75 @@
+#!/bin/bash -x
+
+#
+# Generated - do not edit!
+#
+
+# Macros
+TOP=`pwd`
+CND_PLATFORM=GNU-Linux-x86
+CND_CONF=Default
+CND_DISTDIR=dist
+CND_BUILDDIR=build
+NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
+TMPDIRNAME=tmp-packaging
+OUTPUT_PATH=MissingOutputInProject
+OUTPUT_BASENAME=MissingOutputInProject
+PACKAGE_TOP_DIR=OwnKernel/
+
+# Functions
+function checkReturnCode
+{
+ rc=$?
+ if [ $rc != 0 ]
+ then
+ exit $rc
+ fi
+}
+function makeDirectory
+# $1 directory path
+# $2 permission (optional)
+{
+ mkdir -p "$1"
+ checkReturnCode
+ if [ "$2" != "" ]
+ then
+ chmod $2 "$1"
+ checkReturnCode
+ fi
+}
+function copyFileToTmpDir
+# $1 from-file path
+# $2 to-file path
+# $3 permission
+{
+ cp "$1" "$2"
+ checkReturnCode
+ if [ "$3" != "" ]
+ then
+ chmod $3 "$2"
+ checkReturnCode
+ fi
+}
+
+# Setup
+cd "${TOP}"
+mkdir -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package
+rm -rf ${NBTMPDIR}
+mkdir -p ${NBTMPDIR}
+
+# Copy files and create directories and links
+cd "${TOP}"
+makeDirectory "${NBTMPDIR}/OwnKernel"
+copyFileToTmpDir "${OUTPUT_PATH}" "${NBTMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}" 0755
+
+
+# Generate tar file
+cd "${TOP}"
+rm -f ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/OwnKernel.tar
+cd ${NBTMPDIR}
+tar -vcf ../../../../${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/OwnKernel.tar *
+checkReturnCode
+
+# Cleanup
+cd "${TOP}"
+rm -rf ${NBTMPDIR}
@@ -0,0 +1,11 @@
+
+/* La fonction memcopy permet de copier n octets de src vers dest.
+ * Les adresses sont lineaires.
+ */
+void *memcpy(char *dst, char *src, int n)
+{
+ char *p = dst;
+ while (n--)
+ *dst++ = *src++;
+ return p;
+}
@@ -0,0 +1,26 @@
+
+
+#define IDTBASE 0x800
+#define IDTSIZE 0xFF
+
+#define INTGATE 0x8E00
+#define TRAPGATE 0xEF00 /* utilise pour faire des appels systemes */
+
+struct idtdesc {
+ u16 offset0_15;
+ u16 select;
+ u16 type;
+ u16 offset16_31;
+} __attribute__ ((packed));
+
+
+struct idtr {
+ u16 limite;
+ u32 base;
+} __attribute__ ((packed));
+
+struct idtr kidtr;
+struct idtdesc kidt[IDTSIZE];
+
+void init_idt_desc(u16 , u32 , u16 , struct idtdesc * );
+void init_idt(void);
Oops, something went wrong.

0 comments on commit b3d03ad

Please sign in to comment.