Skip to content
Snippets Groups Projects
Commit 83322f57 authored by John Hodge's avatar John Hodge
Browse files

Implementing parts of the ARM usermode

parent a01827f4
Branches
Tags
No related merge requests found
......@@ -20,3 +20,6 @@ install: $(BIN)
$(BIN): acess_$(ARCHDIR).ld.h
@mkdir -p $(dir $(BIN))
cpp -nostdinc -U i386 -P -C $< -o $@ -D__LIBDIR=$(OUTPUTDIR)Libs
acess_$(ARCHDIR).ld.h:
$(LD) --verbose | awk '{ if( substr($$0,0,5) == "====="){ bPrint = !bPrint; } else { if(bPrint){ print $$0;} } }' | sed 's/SEARCH_DIR\(.*\)/SEARCH_DIR(__LIBDIR)/' > $@
......@@ -15,6 +15,6 @@ install: $(BIN)
clean:
$(RM) $(BIN)
$(BIN): crt0.$(ARCHDIR).asm
$(BIN): crt0.$(ARCHDIR).$(ASSUFFIX)
@mkdir -p $(dir $(BIN))
$(AS) $(ASFLAGS) $< -o $@
......@@ -13,7 +13,7 @@ void *ElfRelocate(void *Base, char **envp, const char *Filename);
void *PE_Relocate(void *Base, char **envp, const char *Filename);
// === Imports ===
extern void gLinkedBase;
extern char gLinkedBase[];
extern tLoadedLib gLoadedLibraries[];
// === CODE ===
......
......@@ -14,11 +14,14 @@ typedef signed int int32_t;
typedef signed long long int64_t;
#if ARCHDIR_is_x86
typedef uint32_t intptr_t;
typedef int32_t intptr_t;
typedef uint32_t uintptr_t;
#elif ARCHDIR_is_x86_64
typedef uint64_t intptr_t;
typedef int64_t intptr_t;
typedef uint64_t uintptr_t;
#elif ARCHDIR_is_armv7
typedef int32_t intptr_t;
typedef uint32_t uintptr_t;
#else
# error "Unknown pointer size"
#endif
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment