Improve progress print
This commit is contained in:
parent
1faef5b452
commit
fd2b766760
@ -1,5 +1,5 @@
|
||||
diff --git a/lib/sbi/sbi_irqchip.c b/lib/sbi/sbi_irqchip.c
|
||||
index 0ae604a..11656e0 100644
|
||||
index 0ae604a..44601a4 100644
|
||||
--- a/lib/sbi/sbi_irqchip.c
|
||||
+++ b/lib/sbi/sbi_irqchip.c
|
||||
@@ -9,6 +9,9 @@
|
||||
@ -25,7 +25,7 @@ index 0ae604a..11656e0 100644
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -47,8 +52,152 @@ void sbi_irqchip_exit(struct sbi_scratch *scratch)
|
||||
@@ -47,8 +52,151 @@ void sbi_irqchip_exit(struct sbi_scratch *scratch)
|
||||
{
|
||||
const struct sbi_platform *plat = sbi_platform_ptr(scratch);
|
||||
|
||||
@ -84,13 +84,12 @@ index 0ae604a..11656e0 100644
|
||||
+static int supervisor_mode_code(void)
|
||||
+{
|
||||
+ sbi_printf("Hello from supervisor, waiting for interrupt\n");
|
||||
+ int count = 0;
|
||||
+ int i = 0;
|
||||
+ char *s = "-\\|/";
|
||||
+ while (1) {
|
||||
+ if (count == 10000) {
|
||||
+ sbi_printf(".");
|
||||
+ count = 0;
|
||||
+ }
|
||||
+ count++;
|
||||
+ sbi_printf("\r%c", s[i++]);
|
||||
+ if (i >= 4)
|
||||
+ i = 0;
|
||||
+ }
|
||||
+ return 0;
|
||||
+}
|
||||
|
Loading…
Reference in New Issue
Block a user