Skip to content

Commit

Permalink
Cleanup tests and examples to remove duplicated or bloated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Pemberton committed Feb 23, 2019
1 parent 4fbcb2d commit b35f3b2
Show file tree
Hide file tree
Showing 33 changed files with 34 additions and 23,548 deletions.
Binary file removed test/bare/crt.o
Binary file not shown.
14 changes: 0 additions & 14 deletions test/bare/hello.c
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
#include <stdio.h>
#include "util.h"
#include "mmio.h"

#define MTIME_ADDR 0x0200bff8L

int main(void)
{
/* unsigned long cycle; */
/* unsigned long time; */
/* */
/* do { */
/* time = reg_read64(MTIME_ADDR); */
/* } while (time < 100); */
/* */
/* cycle = rdcycle(); */
/* */
/* printf("%ld cycles per jiffy\n", cycle / time); */
printf("Hello World\n");
return 0;
}
Binary file removed test/bare/hello.o
Binary file not shown.
54 changes: 0 additions & 54 deletions test/bare/mmio.h

This file was deleted.

Binary file removed test/bare/syscalls.o
Binary file not shown.
1 change: 0 additions & 1 deletion test/dummy-bare/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
hello
*.o
16 changes: 0 additions & 16 deletions test/dummy-bare/Makefile

This file was deleted.

3 changes: 3 additions & 0 deletions test/dummy-bare/build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
#!/bin/bash

pushd ../bare
make
popd
237 changes: 0 additions & 237 deletions test/dummy-bare/crt.S

This file was deleted.

Loading

0 comments on commit b35f3b2

Please sign in to comment.