WKern
Loading...
Searching...
No Matches
global.h
Go to the documentation of this file.
1/*
2WKern - A Bare Metal OS / Kernel I am making (For Fun)
3Copyright (C) 2025 Wdboyes13
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 3 of the License, or
8any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <https://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#include <types/bool.h>
22#include <types/nums.h>
23
25__attribute__((unused)) static volatile char *vmem =
26 (volatile char *)0xb8000; // x86 vmem address
27extern int row;
28extern int col;
29extern bool capson;
30extern bool shift;
31
33#define ATTR(x) __attribute__((x))
35#define PKG ATTR(packed)
36
37extern char *name;
38extern u32 iob;
39#define NULL ((void *)0)
u32 iob
Definition main.c:36
bool capson
Definition main.c:34
char * name
Definition main.c:31
__attribute__((unused)) static volatile char *vmem
x86 Video Memory Address
bool shift
Definition main.c:35
int row
Definition main.c:32
int col
Definition main.c:33
unsigned int u32
32-Bit Unsigned Int
Definition nums.h:30