Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ada Bare Bones OS development tutorial source code
Ada Assembly Shell
Branch: master
Failed to load latest commit information.
obj Initial version of the Ada Bare Bones OS development project.
out/disk/boot/grub The final binary has the architecture and ".elf" appended to it, i.e.…
rts Make this package Preelaborate so a-except can depend on it.
src Expand comments in startup.s, and pad header location counter with an…
LICENCE Changed the licence to the CC0 public domain one so that the code can
README Minor formatting fix
bare_bones.gpr The final binary has the architecture and ".elf" appended to it, i.e.…
gdb-qemu-cmds.txt Script to run GDB and a text file with commands to execute on startup.
gdb-qemu.sh Script to run GDB and a text file with commands to execute on startup.
gnat.adc
gnat.gpr Changed -gnat2005 to -gnat05 - should be the same but the compiler do…
makefile The final binary has the architecture and ".elf" appended to it, i.e.…

README

                              Bare Bones

--------------------------------------------------------------------------------
Introduction
--------------------------------------------------------------------------------

This source provides a complete port of the C Bare Bones tutorial from
http://wiki.osdev.org. I copied and modified the linker script from the D port
as the original didn't work for me and also did the same with the startup code
from the original C port.

The full documentation and build instructions for this project can be found at:

  http://wiki.osdev.org/Ada_Bare_bones

Once you have cloned this repository, you need to set up the links to the
RTS inside rts/boards/i386/adainclude/ to point to those in rts/src/ as follows:

for f in "ada.ads" "a-unccon.ads" "a-uncdea.ads" "gnat.ads" "g-souinf.ads" \
"interfac.ads" "s-atacco.adb" "s-atacco.ads" "s-maccod.ads" "s-stoele.adb" \
"s-stoele.ads"
do
ln -s `pwd`/rts/src/$f `pwd`/rts/boards/i386/adainclude/$f
done

--------------------------------------------------------------------------------
Prerequisites
--------------------------------------------------------------------------------
To test using make QEMU, you will need GRUB 2 installed for the grub-mkrescue
(GRUB 2 should be installed if you're on a modern distribution) command. This
command also uses xorriso - which I had to install separately.

Under Debian:

$ sudo apt-get install qemu xorriso

--------------------------------------------------------------------------------
Bugs
--------------------------------------------------------------------------------

None at present.

--------------------------------------------------------------------------------
Licence
--------------------------------------------------------------------------------

As advised in the forum sticky on osdev.org, the code here is released under
the CC0 license (http://creativecommons.org/publicdomain/zero/1.0/) placing this
work under public domain with no copyright.
Something went wrong with that request. Please try again.