diff options
author | Alexis211 <alexis211@gmail.com> | 2010-02-06 20:51:56 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2010-02-06 20:51:56 +0100 |
commit | 6a52d123672b7a00af6e22b4c138205be2042a94 (patch) | |
tree | cd9b0a13490159369a66c850850596fd4b418139 /src/grapes | |
parent | 3558f18daf50281ee1cd68cca96cd967dbac04ba (diff) | |
download | TCE-6a52d123672b7a00af6e22b4c138205be2042a94.tar.gz TCE-6a52d123672b7a00af6e22b4c138205be2042a94.zip |
Reorganisation
Diffstat (limited to 'src/grapes')
-rw-r--r-- | src/grapes/link.ld | 26 | ||||
-rw-r--r-- | src/grapes/test/Makefile | 30 | ||||
-rw-r--r-- | src/grapes/test/main.c | 8 |
3 files changed, 0 insertions, 64 deletions
diff --git a/src/grapes/link.ld b/src/grapes/link.ld deleted file mode 100644 index 7527b80..0000000 --- a/src/grapes/link.ld +++ /dev/null @@ -1,26 +0,0 @@ -ENTRY (start) - -SECTIONS{ - . = 0x10000000; - - .text : { - *(.text) - } - - .rodata ALIGN (0x1000) :{ - *(.rodata) - } - - .data ALIGN (0x1000) : { - *(.data) - } - - .bss : { - sbss = .; - *(COMMON) - *(.bss) - ebss = .; - } - - end = .; _end = .; __end = .; -} diff --git a/src/grapes/test/Makefile b/src/grapes/test/Makefile deleted file mode 100644 index ddcc36f..0000000 --- a/src/grapes/test/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -.PHONY: clean, mrproper - -CC = gcc -CFLAGS = -nostdlib -nostartfiles -nodefaultlibs -fno-builtin -fno-stack-protector -Wall -Wextra - -LD = ld -LDFLAGS = -T ../link.ld - -Objects = main.o -Outfile = test - -all: $(Outfile) - echo "* Done with $(Outfile)" - -rebuild: mrproper all - -$(Outfile): $(Objects) - echo "* Linking $@..." - $(LD) $(LDFLAGS) -o $@ $^ - -%.o: %.c - $(CC) $(CFLAGS) -c $< -o $@ - -clean: - echo "* Removing objects..." - rm $(Objects) - -mrproper: clean - rm $(Outfile) - diff --git a/src/grapes/test/main.c b/src/grapes/test/main.c deleted file mode 100644 index 0413889..0000000 --- a/src/grapes/test/main.c +++ /dev/null @@ -1,8 +0,0 @@ -void printk(char *s) { - asm volatile("int $64" : : "a"(4), "b"(s)); -} - -void start() { - printk("Hi world !"); - asm volatile("int $64" : : "a"(3), "b"(0)); -} |