diff options
author | Youling Tang <tangyouling@loongson.cn> | 2022-09-28 10:28:25 +0800 |
---|---|---|
committer | Simon Horman <horms@kernel.org> | 2022-10-10 13:35:21 +0200 |
commit | 84138f41efd53434ede8aaa052763270eff45357 (patch) | |
tree | 2048c50541404edf81098f4705f86b4ba773a93b /purgatory | |
parent | 615b6757dcab7bda01d9cb9945738b6548f97af1 (diff) |
LoongArch: Add purgatory framework code
Add purgatory framework code, no specific implementation, just consistent
with other architectures.
Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Simon Horman <horms@kernel.org>
Diffstat (limited to 'purgatory')
-rw-r--r-- | purgatory/Makefile | 1 | ||||
-rw-r--r-- | purgatory/arch/loongarch/Makefile | 10 | ||||
-rw-r--r-- | purgatory/arch/loongarch/console-loongarch.c | 7 | ||||
-rw-r--r-- | purgatory/arch/loongarch/purgatory-loongarch.c | 7 | ||||
-rw-r--r-- | purgatory/arch/loongarch/purgatory-loongarch.h | 6 |
5 files changed, 31 insertions, 0 deletions
diff --git a/purgatory/Makefile b/purgatory/Makefile index 15adb12..4d2d071 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 0000000..b0c47b2 --- /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 0000000..af34ecf --- /dev/null +++ b/purgatory/arch/loongarch/console-loongarch.c @@ -0,0 +1,7 @@ +#include <purgatory.h> +#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 0000000..abe9297 --- /dev/null +++ b/purgatory/arch/loongarch/purgatory-loongarch.c @@ -0,0 +1,7 @@ +#include <purgatory.h> +#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 0000000..cd1ab97 --- /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 */ |