resolved merge conflict
This commit is contained in:
commit
5dbedb4a55
|
@ -0,0 +1,6 @@
|
||||||
|
#ifndef EXTERN_H
|
||||||
|
#define EXTERN_H
|
||||||
|
|
||||||
|
extern void *malloc(s32 size);
|
||||||
|
|
||||||
|
#endif
|
|
@ -19,12 +19,12 @@
|
||||||
* so this complicated structure is utilized instead.
|
* so this complicated structure is utilized instead.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define START 0xb80f1
|
#define START 0xb80f0
|
||||||
#define SIZE 16384
|
#define SIZE 16384
|
||||||
#define USABLE(m) m + sizeof(s32) + sizeof(void *)
|
|
||||||
#define NEXT(m) (void *) *m
|
|
||||||
#define SIZE(m) (s32) m[sizeof(void *)]
|
|
||||||
|
|
||||||
void *start = 0x0;
|
struct allocated {
|
||||||
|
void *ref;
|
||||||
|
s32 size;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
#ifndef PROCESS_H
|
||||||
|
#define PROCESS_H
|
||||||
|
|
||||||
|
struct process {
|
||||||
|
void *prstart;
|
||||||
|
s32 prsize;
|
||||||
|
s32 pid;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
|
@ -1,4 +1,6 @@
|
||||||
#include <types.h>
|
#include <types.h>
|
||||||
|
#include <extern.h>
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
sysinit(void)
|
sysinit(void)
|
||||||
|
@ -49,4 +51,8 @@ sysinit(void)
|
||||||
vga_write("indian", 6, 0x07);
|
vga_write("indian", 6, 0x07);
|
||||||
|
|
||||||
printf("%s%x", "Omh", 0x2a);
|
printf("%s%x", "Omh", 0x2a);
|
||||||
|
vga_write("Starting omOS...", 16, 0x0F);
|
||||||
|
|
||||||
|
s8 *start = (s8 *) 0xb8fa0;
|
||||||
|
start[0] = 'h';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue