Skip to content

Commit

Permalink
Attempt to write pager. Doesn't work yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
BERTRAND Joel committed Nov 13, 2010
1 parent 066e3fb commit 5cf7594
Show file tree
Hide file tree
Showing 33 changed files with 1,285 additions and 560 deletions.
26 changes: 26 additions & 0 deletions sources/freevms/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,27 @@ OBJ=$(DESTDIR)/debug/backtrace.o \
$(DESTDIR)/jobctl/jobctl_quota.o \
$(DESTDIR)/jobctl/jobctl_thread.o \
$(DESTDIR)/jobctl/jobctl_rfl.o \
$(DESTDIR)/init/init.o \
$(DESTDIR)/libearly/amd64.o \
$(DESTDIR)/libearly/get_hex.o \
$(DESTDIR)/libearly/print.o \
$(DESTDIR)/list/hash.o \
$(DESTDIR)/list/lists.o \
$(DESTDIR)/lock/lock_mutex.o \
$(DESTDIR)/lock/lock_mutex_amd64.o \
$(DESTDIR)/sec/sec_caps.o \
$(DESTDIR)/sec/sec_rand.o \
$(DESTDIR)/sys/sys_boot.o \
$(DESTDIR)/sys/sys_init.o \
$(DESTDIR)/sys/sys_loop.o \
$(DESTDIR)/sys/sys_main.o \
$(DESTDIR)/sys/sys_parsing.o \
$(DESTDIR)/vm/vm_alloc.o \
$(DESTDIR)/vm/vm_btree.o \
$(DESTDIR)/vm/vm_core.o \
$(DESTDIR)/vm/vm_init.o \
$(DESTDIR)/vm/vm_objtables.o \
$(DESTDIR)/vm/vm_pagefault.o \
$(DESTDIR)/vm/vm_server.o \
$(DESTDIR)/vm/vm_sigma0.o \
$(DESTDIR)/vm/vm_slab.o
Expand Down Expand Up @@ -59,10 +64,12 @@ directories:
mkdir -p $(DESTDIR)/debug
mkdir -p $(DESTDIR)/dev
mkdir -p $(DESTDIR)/drv
mkdir -p $(DESTDIR)/init
mkdir -p $(DESTDIR)/jobctl
mkdir -p $(DESTDIR)/libearly
mkdir -p $(DESTDIR)/list
mkdir -p $(DESTDIR)/lock
mkdir -p $(DESTDIR)/sec
mkdir -p $(DESTDIR)/sys
mkdir -p $(DESTDIR)/vm

Expand All @@ -79,6 +86,11 @@ $(DESTDIR)/debug/sigma0.o: debug/sigma0.c
$(DESTDIR)/dev/dev_tables.o: dev/dev_tables.c
gcc -x c++ -O2 $(INCLUDES) $(CFLAGS) -c $< -o $@

# ./init

$(DESTDIR)/init/init.o: init/init.c
gcc -x c++ -O2 $(INCLUDES) $(CFLAGS) -c $< -o $@

# ./jobctl

$(DESTDIR)/jobctl/jobctl_init.o: jobctl/jobctl_init.c
Expand Down Expand Up @@ -112,6 +124,14 @@ $(DESTDIR)/lock/lock_mutex.o: lock/lock_mutex.c
$(DESTDIR)/lock/lock_mutex_amd64.o: lock/lock_mutex_amd64.S
as $< -o $@

# ./sec

$(DESTDIR)/sec/sec_caps.o: sec/sec_caps.c
gcc -x c++ -O2 $(INCLUDES) $(CFLAGS) -c $< -o $@

$(DESTDIR)/sec/sec_rand.o: sec/sec_rand.c
gcc -x c++ -O2 $(INCLUDES) $(CFLAGS) -c $< -o $@

# ./sys

$(DESTDIR)/sys/sys_init.o: sys/sys_init.c
Expand All @@ -120,6 +140,9 @@ $(DESTDIR)/sys/sys_init.o: sys/sys_init.c
$(DESTDIR)/sys/sys_main.o: sys/sys_main.c
gcc -x c++ -O2 $(INCLUDES) $(CFLAGS) -c $< -o $@

$(DESTDIR)/sys/sys_loop.o: sys/sys_loop.c
gcc -x c++ -O2 $(INCLUDES) $(CFLAGS) -c $< -o $@

$(DESTDIR)/sys/sys_parsing.o: sys/sys_parsing.c
gcc -x c++ -O2 $(INCLUDES) $(CFLAGS) -c $< -o $@

Expand All @@ -143,6 +166,9 @@ $(DESTDIR)/vm/vm_btree.o: vm/vm_btree.c
$(DESTDIR)/vm/vm_objtables.o: vm/vm_objtables.c
gcc -x c++ -O2 $(INCLUDES) $(CFLAGS) -c $< -o $@

$(DESTDIR)/vm/vm_pagefault.o: vm/vm_pagefault.c
gcc -x c++ -O2 $(INCLUDES) $(CFLAGS) -c $< -o $@

$(DESTDIR)/vm/vm_sigma0.o: vm/vm_sigma0.c
gcc -x c++ -O2 $(INCLUDES) $(CFLAGS) -c $< -o $@

Expand Down
7 changes: 6 additions & 1 deletion sources/freevms/debug/sigma0.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ dbg$sigma0(int level)
L4_MsgLoad(&msg);

tag = L4_Send(sigma0);
PANIC(L4_IpcFailed(tag), notice(IPC_F_FAILED "IPC failed\n"));

if (L4_IpcFailed(tag))
{
notice(IPC_F_FAILED "IPC failed (error %ld: %s)\n", L4_ErrorCode(),
L4_ErrorCode_String(L4_ErrorCode()));
}

return;
}
Expand Down
2 changes: 1 addition & 1 deletion sources/freevms/debug/symbols.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ dbg$symbol(vms$pointer address)
value[i][4] = 0;
}

c = '-';
c = '-';

for(i = 0; i < (L4_SIZEOFWORD / 4); i++)
{
Expand Down
Loading

0 comments on commit 5cf7594

Please sign in to comment.