rangeStart, curPos - 1,
gaPageTable[rangeStart>>12] & ~0xFFF,
(expected & ~0xFFF) - 1,
- (expected & PF_PAGED ? "p" : "-"),
+ (expected & PF_NOPAGE ? "P" : "-"),
(expected & PF_COW ? "C" : "-"),
(expected & PF_USER ? "U" : "-"),
(expected & PF_WRITE ? "W" : "-")
rangeStart, curPos - 1,
gaPageTable[rangeStart>>12] & ~0xFFF,
(expected & ~0xFFF) - 1,
- (expected & PF_PAGED ? "p" : "-"),
+ (expected & PF_NOPAGE ? "p" : "-"),
(expected & PF_COW ? "C" : "-"),
(expected & PF_USER ? "U" : "-"),
(expected & PF_WRITE ? "W" : "-")
dd MULTIBOOT_HEADER_MAGIC
dd MULTIBOOT_HEADER_FLAGS
dd MULTIBOOT_CHECKSUM
- dd mboot - KERNEL_BASE ;Location of Multiboot Header
+ dd mboot; - KERNEL_BASE ;Location of Multiboot Header
; Multiboot 2 Header
;mboot2:
SUBMAKE = $(MAKE) --no-print-directory
-USRLIBS := crt0.o acess.ld ld-acess.so libacess.so libgcc.so libc.so libnet.so
+USRLIBS := crt0.o acess.ld ld-acess.so libgcc.so libc.so
+USRLIBS += libreadline.so libnet.so liburi.so
+
USRAPPS := init login CLIShell cat ls mount
-USRAPPS += ifconfig ping
+USRAPPS += bomb pcidump
+USRAPPS += ifconfig ping irc
ALL_DYNMODS = $(addprefix all-,$(DYNMODS))
ALL_MODULES := $(addprefix all-,$(MODULES))
$(BIN): $(OBJ)
@echo --- $(LD) -o $@
+ifneq ($(_DBGMAKEFILE),)
+ $(LD) -g $(LDFLAGS) -o $@ $(OBJ) -Map Map.txt
+else
@$(LD) -g $(LDFLAGS) -o $@ $(OBJ) -Map Map.txt
+endif
@objdump -d -S $(BIN) > $(BIN).dsm
$(OBJ): %.o: %.c
ASFLAGS = -felf
CPPFLAGS = -I$(ACESSDIR)/Usermode/include/
CFLAGS = -g -Wall -fPIC -fno-builtin -fno-stack-protector $(CPPFLAGS)
-LDFLAGS = -g -nostdlib -shared -I/Acess/Libs/ld-acess.so -e SoMain -x -L.. -lacess
+LDFLAGS = -g -nostdlib -shared -I/Acess/Libs/ld-acess.so -e SoMain -x -L..
install: ../acess.ld
../acess.ld: acess.ld.h
- cpp -nostdinc -U i386 -P -C $< -o $@ -DACESSDIR=$(ACESSDIR)
+ cpp -nostdinc -U i386 -P -C $< -o $@ -D__LIBDIR=$(ACESSDIR)/Usermode/Libraries
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")\r
OUTPUT_ARCH(i386)\r
ENTRY(start)\r
-SEARCH_DIR(ACESSDIR/Usermode/Libraries)\r
-INPUT(crt0.o)\r
+SEARCH_DIR(__LIBDIR)\r
+INPUT(crt0.o ld-acess.so)\r
SECTIONS\r
{\r
/* Read-only sections, merged into text segment: */\r
\r
// === Imports ===\r
extern void gLinkedBase;\r
+extern tLoadedLib gLoadedLibraries[];\r
\r
// === CODE ===\r
/**\r
_exit(1);\r
for(;;);\r
}\r
+\r
+ gLoadedLibraries[0].Base = (Uint)&gLinkedBase;\r
+ gLoadedLibraries[0].Name = "ld-acess.so";\r
\r
// Otherwise do relocations\r
//ret = DoRelocate( base, envp, "Executable" );\r