23139 into trunk, with roughly the following changes (for details svn log the branch): * The int 99 syscall handler is now fully in assembly. * Added a sysenter/sysexit handler and use it on Pentiums that support it (via commpage). * Got rid of i386_handle_trap(). A bit of functionality was moved into the assembly handler which now uses a jump table to call C functions handling the respective interrupt. * Some optimizations to get user debugger support code out of the interrupt handling path. * Introduced a thread::flags fields which allows to skip handling of rare events (signals, user debug enabling/disabling) on the common interrupt handling path. * Got rid of the explicit iframe stack. The iframes can still be retrieved by iterating through the stack frames. * Made the commpage an architecture independent feature. It's used for the real time data stuff (instead of creating a separate area). * The x86 CPU modules can now provide processor optimized versions for common functions (currently memcpy() only). They are used in the kernel and are provided to the userland via commpage entries. * Introduced build system feature allowing easy use of C structure member offsets in assembly code. Changes after merging: * Fixed merge conflict in src/system/kernel/arch/x86/arch_debug.cpp (caused by refactoring and introduction of "call" debugger command). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23370 a95241bf-73f2-0310-859d-f6bbb57e9c96
78 lines
1.5 KiB
Plaintext
78 lines
1.5 KiB
Plaintext
SubDir HAIKU_TOP src system boot ;
|
|
|
|
local librootFunctions =
|
|
byteorder.o
|
|
ctype.o
|
|
qsort.o
|
|
kernel_vsprintf.o
|
|
memset.o
|
|
memcmp.o
|
|
memcpy.o
|
|
memmove.o
|
|
strdup.o
|
|
strlen.o
|
|
strnlen.o
|
|
strcmp.o
|
|
strcasecmp.o
|
|
strncmp.o
|
|
strcat.o
|
|
strcpy.o
|
|
strlcat.o
|
|
strlcpy.o
|
|
strchr.o
|
|
strrchr.o
|
|
strtol.o
|
|
;
|
|
|
|
AddResources zbeos : boot_loader.rdef ;
|
|
|
|
KernelLd boot_loader_$(TARGET_BOOT_PLATFORM) :
|
|
boot_platform_$(TARGET_BOOT_PLATFORM).o
|
|
boot_arch_$(TARGET_ARCH).o
|
|
boot_loader.a
|
|
boot_net.a
|
|
boot_partitions.a
|
|
|
|
# file systems
|
|
boot_bfs.a
|
|
boot_amiga_ffs.a
|
|
boot_tarfs.a
|
|
|
|
libz.a
|
|
|
|
# libroot functions needed by the stage2 boot loader (compiled for the
|
|
# kernel)
|
|
$(librootFunctions:G=src!system!kernel!lib)
|
|
|
|
: $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/boot_loader_$(TARGET_BOOT_PLATFORM).ld
|
|
: -Bstatic
|
|
;
|
|
|
|
rule BuildZbeos {
|
|
local zbeos = $(1) ;
|
|
local bootLoader = $(2) ;
|
|
|
|
Depends $(zbeos) : $(bootLoader) ;
|
|
MakeLocateDebug $(zbeos) ;
|
|
|
|
on $(1) ResAttr $(1) : $(RESFILES) : false ;
|
|
if ! [ on $(1) return $(DONT_USE_BEOS_RULES) ] {
|
|
SetType $(1) ;
|
|
MimeSet $(1) ;
|
|
}
|
|
}
|
|
|
|
actions BuildZbeos {
|
|
rm -f $(1)
|
|
$(TARGET_OBJCOPY) -O binary $(2) $(1)
|
|
}
|
|
|
|
BuildZbeos zbeos : boot_loader_$(TARGET_BOOT_PLATFORM) ;
|
|
|
|
# different target for PXE, to be build with TARGET_BOOT_PLATFORM=pxe_ia32 jam pxehaiku-loader
|
|
BuildZbeos pxehaiku-loader : boot_loader_$(TARGET_BOOT_PLATFORM) ;
|
|
|
|
SubInclude HAIKU_TOP src system boot arch $(TARGET_ARCH) ;
|
|
SubInclude HAIKU_TOP src system boot loader ;
|
|
SubInclude HAIKU_TOP src system boot platform ;
|