Skip to content

Commit

Permalink
process extern fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joexbayer committed Jan 10, 2024
1 parent 692c19d commit b304e62
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 11 deletions.
Binary file modified apps/libcore.a
Binary file not shown.
Binary file modified apps/libgraphic.a
Binary file not shown.
Binary file modified apps/libnet.a
Binary file not shown.
12 changes: 2 additions & 10 deletions include/pcb.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@ struct pcb;

#define PCB_STACK_SIZE 0x2000

#define AS_THREAD(block) \
do { \
void* __kthread_internal(void* _unused) { \
block \
return NULL; \
} \
pcb_create_kthread(_kthread_func, "kthread", 0, NULL); \
} while (0)


typedef int pid_t;

/* TODO: Move to new file */
Expand Down Expand Up @@ -118,6 +108,8 @@ struct process {
extern const char* pcb_status[];
extern struct pcb* $current_process;

struct process* $process;

/* Forward declaration */
struct pcb_queue;

Expand Down
1 change: 1 addition & 0 deletions include/terminal.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef TERMINAL_H
#define TERMINAL_H

#include <pcb.h>
#include <kutils.h>
#include <colors.h>
#include <gfx/window.h>
Expand Down
2 changes: 1 addition & 1 deletion kernel/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
#include <libc.h>
#include <pci.h>
#include <smp.h>
#include <pcb.h>
#include <terminal.h>
#include <keyboard.h>
#include <arch/interrupts.h>
#include <timer.h>
#include <pcb.h>
#include <memory.h>
#include <net/skb.h>
#include <net/arp.h>
Expand Down

0 comments on commit b304e62

Please sign in to comment.