removed trailing whitespace

This commit is contained in:
MonkeyGG2 2024-02-18 11:25:48 -05:00
commit f4353741ae
3 changed files with 5 additions and 47 deletions

View File

@ -28,6 +28,7 @@
#define STACK_START 0x000b8fa0 #define STACK_START 0x000b8fa0
#define STACK_END 0x000fffff #define STACK_END 0x000fffff
#define PR_START 0x00100000 #define PR_START 0x00100000
#define MALLOC_END 0x00100fff
#define PHYSMEMTOP 0x0e000000 #define PHYSMEMTOP 0x0e000000
struct allocated { struct allocated {
@ -35,4 +36,6 @@ struct allocated {
s32 size; s32 size;
} }
void memory_init(void);
#endif #endif

View File

@ -7,7 +7,8 @@ void
memory_init(void) memory_init(void)
{ {
u32 esp, ebp; u32 esp, ebp;
ebp = 0x8B7F0; ebp = STACK_START;
esp = STACK_START;
} }
void *malloc(s32 size) { void *malloc(s32 size) {

View File

@ -6,55 +6,9 @@ void
sysinit(void) sysinit(void)
{ {
char *howdy = "Om Smart."; char *howdy = "Om Smart.";
char *howday = "Om Smarter.";
vga_clearscreen(); vga_clearscreen();
/*
for (s16 i = 0; i < 100; i++) {
vga_write(howdy, strlen(howdy), 0x1f);
vga_write(howday, strlen(howday), 0x0f);
}
vga_write("sid", 3, 0x07);
vga_write("did", 3, 0x07);
vga_write("fid", 3, 0x07);
*/
vga_write(
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter.Om Smart.Om Smarter."
"bob", 2003, 0x0F);
vga_write("indian", 6, 0x07);
vga_write("indian", 6, 0x07);
printf("%s%x", "Omh", 0x2a);
vga_write("Starting omOS...", 16, 0x0F); vga_write("Starting omOS...", 16, 0x0F);
memory_init(); memory_init();
s8 *start = (s8 *) 0xb8fa0;
start[0] = 'h';
} }