summaryrefslogtreecommitdiff
path: root/stage3/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'stage3/shell.c')
-rw-r--r--stage3/shell.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/stage3/shell.c b/stage3/shell.c
index 0f56a04..055c296 100644
--- a/stage3/shell.c
+++ b/stage3/shell.c
@@ -7,6 +7,7 @@
#include "pci.h"
#include "memory.h"
#include "io.h"
+#include "math.h"
static void cmd_echo(str arg)
{
@@ -177,14 +178,6 @@ static void cmd_uname(str arg)
print(S("\n"));
}
-static u64 ipow(u64 b, u64 exp)
-{
- u64 x = 1;
- for (u64 i = 0; i < exp; i++)
- x *= b;
- return x;
-}
-
static void print_bytes(usize bytes)
{
static char fmt[] = { ' ', 'K', 'M', 'G', 'T' };