From 0efb739422650c02057463b26d1f96cc89acd8a1 Mon Sep 17 00:00:00 2001
From: Yurii Rashkovskii <yrashk@gmail.com>
Date: Fri, 4 Jun 2021 21:34:16 -0700
Subject: [PATCH] Problem: HellOS doesn't compile on Zig 0.8.0

Solution: update API usage
---
 hellos.zig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/hellos.zig b/hellos.zig
index 1a300ba..48e76a6 100644
--- a/hellos.zig
+++ b/hellos.zig
@@ -1,4 +1,4 @@
-const builtin = @import("builtin");
+const std = @import("std");
 
 const MultiBoot = packed struct {
     magic: i32,
@@ -26,7 +26,7 @@ export fn _start() callconv(.Naked) noreturn {
     while (true) {}
 }
 
-pub fn panic(msg: []const u8, error_return_trace: ?*builtin.StackTrace) noreturn {
+pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace) noreturn {
     @setCold(true);
     terminal.write("KERNEL PANIC: ");
     terminal.write(msg);
@@ -35,7 +35,7 @@ pub fn panic(msg: []const u8, error_return_trace: ?*builtin.StackTrace) noreturn
 
 fn kmain() void {
     terminal.initialize();
-    terminal.write("Hello, Kernel World from Zig 0.7.1!");
+    terminal.write("Hello, Kernel World from Zig 0.8.0!");
 }
 
 // Hardware text mode color constants