Non-shell tests
This commit is contained in:
parent
7fb5720e6b
commit
5c889a168d
@ -195,6 +195,7 @@ extern void move_stack(void *new_stack_start, size_t size);
|
||||
extern task_t * gettask(uint32_t pid);
|
||||
extern void kexit(int retval);
|
||||
extern void task_exit(int retval);
|
||||
extern uint32_t next_pid;
|
||||
|
||||
typedef struct tss_entry {
|
||||
uint32_t prev_tss;
|
||||
|
@ -156,6 +156,10 @@ int main(struct multiboot *mboot, uint32_t mboot_mag, uintptr_t esp)
|
||||
|
||||
start_shell();
|
||||
|
||||
while (1) {
|
||||
kprintf("[%d] 0x%x\n", next_pid, exec("/bin/test", 0, NULL));
|
||||
}
|
||||
|
||||
while (1) {
|
||||
if (!fork()) {
|
||||
kprintf("%d 0x%x\n", getpid(), heap_end);
|
||||
|
Loading…
x
Reference in New Issue
Block a user