From 84138f41efd53434ede8aaa052763270eff45357 Mon Sep 17 00:00:00 2001 From: Youling Tang Date: Wed, 28 Sep 2022 10:28:25 +0800 Subject: LoongArch: Add purgatory framework code Add purgatory framework code, no specific implementation, just consistent with other architectures. Signed-off-by: Youling Tang Signed-off-by: Simon Horman --- purgatory/Makefile | 1 + purgatory/arch/loongarch/Makefile | 10 ++++++++++ purgatory/arch/loongarch/console-loongarch.c | 7 +++++++ purgatory/arch/loongarch/purgatory-loongarch.c | 7 +++++++ purgatory/arch/loongarch/purgatory-loongarch.h | 6 ++++++ 5 files changed, 31 insertions(+) create mode 100644 purgatory/arch/loongarch/Makefile create mode 100644 purgatory/arch/loongarch/console-loongarch.c create mode 100644 purgatory/arch/loongarch/purgatory-loongarch.c create mode 100644 purgatory/arch/loongarch/purgatory-loongarch.h diff --git a/purgatory/Makefile b/purgatory/Makefile index 15adb120..4d2d0713 100644 --- a/purgatory/Makefile +++ b/purgatory/Makefile @@ -28,6 +28,7 @@ include $(srcdir)/purgatory/arch/ppc64/Makefile include $(srcdir)/purgatory/arch/s390/Makefile include $(srcdir)/purgatory/arch/sh/Makefile include $(srcdir)/purgatory/arch/x86_64/Makefile +include $(srcdir)/purgatory/arch/loongarch/Makefile PURGATORY_SRCS+=$($(ARCH)_PURGATORY_SRCS) diff --git a/purgatory/arch/loongarch/Makefile b/purgatory/arch/loongarch/Makefile new file mode 100644 index 00000000..b0c47b26 --- /dev/null +++ b/purgatory/arch/loongarch/Makefile @@ -0,0 +1,10 @@ +# +# Purgatory loongarch +# + +loongarch_PURGATORY_SRCS+= purgatory/arch/loongarch/purgatory-loongarch.c +loongarch_PURGATORY_SRCS+= purgatory/arch/loongarch/console-loongarch.c + +dist += purgatory/arch/loongarch/Makefile $(loongarch_PURGATORY_SRCS) \ + purgatory/arch/loongarch/purgatory-loongarch.h + diff --git a/purgatory/arch/loongarch/console-loongarch.c b/purgatory/arch/loongarch/console-loongarch.c new file mode 100644 index 00000000..af34ecfa --- /dev/null +++ b/purgatory/arch/loongarch/console-loongarch.c @@ -0,0 +1,7 @@ +#include +#include "unused.h" + +void putchar(int UNUSED(ch)) +{ + /* Nothing for now */ +} diff --git a/purgatory/arch/loongarch/purgatory-loongarch.c b/purgatory/arch/loongarch/purgatory-loongarch.c new file mode 100644 index 00000000..abe9297f --- /dev/null +++ b/purgatory/arch/loongarch/purgatory-loongarch.c @@ -0,0 +1,7 @@ +#include +#include "purgatory-loongarch.h" + +void setup_arch(void) +{ + /* Nothing for now */ +} diff --git a/purgatory/arch/loongarch/purgatory-loongarch.h b/purgatory/arch/loongarch/purgatory-loongarch.h new file mode 100644 index 00000000..cd1ab97d --- /dev/null +++ b/purgatory/arch/loongarch/purgatory-loongarch.h @@ -0,0 +1,6 @@ +#ifndef PURGATORY_LOONGARCH_H +#define PURGATORY_LOONGARCH_H + +/* nothing yet */ + +#endif /* PURGATORY_LOONGARCH_H */ -- cgit 1.2.3-korg