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