aboutsummaryrefslogtreecommitdiff
path: root/bbl
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2017-11-03 16:30:35 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2017-11-03 16:36:40 -0700
commitd1849cb5e3b8c714c2dae78bb15465f288707ac5 (patch)
treeb3aad5d06c4b9fec59d1e6ecba1fbd25d1833814 /bbl
parent3815c611158f435d36121c2c433af664ad86d8ca (diff)
downloadpk-d1849cb5e3b8c714c2dae78bb15465f288707ac5.zip
pk-d1849cb5e3b8c714c2dae78bb15465f288707ac5.tar.gz
pk-d1849cb5e3b8c714c2dae78bb15465f288707ac5.tar.bz2
Remove the platform interface
We now automatically detect everything that the platform interface used to be used for, so it's now obsolete!
Diffstat (limited to 'bbl')
-rw-r--r--bbl/bbl.c1
-rw-r--r--bbl/bbl.lds1
-rw-r--r--bbl/bbl.mk.in1
-rw-r--r--bbl/logo.c30
4 files changed, 27 insertions, 6 deletions
diff --git a/bbl/bbl.c b/bbl/bbl.c
index 1f91ea2..1b96a9d 100644
--- a/bbl/bbl.c
+++ b/bbl/bbl.c
@@ -5,7 +5,6 @@
#include "bits.h"
#include "config.h"
#include "fdt.h"
-#include "platform_interface.h"
#include <string.h>
static const void* entry_point;
diff --git a/bbl/bbl.lds b/bbl/bbl.lds
index b90e99f..2fd0d7c 100644
--- a/bbl/bbl.lds
+++ b/bbl/bbl.lds
@@ -46,6 +46,7 @@ SECTIONS
. = ALIGN(0x1000);
.htif :
{
+ PROVIDE( __htif_base = .);
*(.htif)
}
. = ALIGN(0x1000);
diff --git a/bbl/bbl.mk.in b/bbl/bbl.mk.in
index e3c5876..5abe2cd 100644
--- a/bbl/bbl.mk.in
+++ b/bbl/bbl.mk.in
@@ -3,7 +3,6 @@ bbl_subproject_deps = \
softfloat \
machine \
dummy_payload \
- platform \
bbl_hdrs = \
bbl.h \
diff --git a/bbl/logo.c b/bbl/logo.c
index 89b1fa3..673899d 100644
--- a/bbl/logo.c
+++ b/bbl/logo.c
@@ -1,10 +1,32 @@
#include <string.h>
#include "mtrap.h"
-#include "platform_interface.h"
+
+static const char logo[] =
+" vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv\n"
+" vvvvvvvvvvvvvvvvvvvvvvvvvvvv\n"
+"rrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvvvv\n"
+"rrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvv\n"
+"rrrrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvv\n"
+"rrrrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvv\n"
+"rrrrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvvvv\n"
+"rrrrrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvv \n"
+"rrrrrrrrrrrrr vvvvvvvvvvvvvvvvvvvvvv \n"
+"rr vvvvvvvvvvvvvvvvvvvvvv \n"
+"rr vvvvvvvvvvvvvvvvvvvvvvvv rr\n"
+"rrrr vvvvvvvvvvvvvvvvvvvvvvvvvv rrrr\n"
+"rrrrrr vvvvvvvvvvvvvvvvvvvvvv rrrrrr\n"
+"rrrrrrrr vvvvvvvvvvvvvvvvvv rrrrrrrr\n"
+"rrrrrrrrrr vvvvvvvvvvvvvv rrrrrrrrrr\n"
+"rrrrrrrrrrrr vvvvvvvvvv rrrrrrrrrrrr\n"
+"rrrrrrrrrrrrrr vvvvvv rrrrrrrrrrrrrr\n"
+"rrrrrrrrrrrrrrrr vv rrrrrrrrrrrrrrrr\n"
+"rrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrr\n"
+"rrrrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrrr\n"
+"rrrrrrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrrrrr\n"
+"\n"
+" INSTRUCTION SETS WANT TO BE FREE\n";
void print_logo()
{
- const char *logo = platform__get_logo();
- if (logo != NULL)
- putstring(logo);
+ putstring(logo);
}