vm_attributes.h vm_inherit.h vm_prot.h \
vm_statistics.h
-user-interfaces := $(addprefix mach/,mach_interface mach_port mach_host \
- default_pager_object \
- memory_object_user memory_object_default)\
+user-interfaces := $(addprefix mach/,mach_interface mach_port mach_host \
+ default_pager_object \
+ memory_object_user \
+ memory_object_default \
+ kernel_boot \
+ )\
$(addprefix device/,device device_request)
# device_reply is giving me headaches because of userprefix
-server-interfaces := mach/__exc
+server-interfaces := # mach/__exc mach/exc
routines = $(interface-routines) \
+ $(filter-out syscall_%,$(mach-syscalls)) \
+ $(addprefix __,$(mach-syscalls)) \
mach_init vm_page_size \
- mig_strncpy mig_support msg \
+ mig_strncpy mig_support __bcopy msg \
msg_destroy msg_server msg_server_t \
__msg_destroy __msg_server \
- devstream
+ devstream bootprivport privports
tests := hello
ifdef mach-syscalls
$(mach-syscalls:%=$(objpfx)__%.S): $(objpfx)__%.S: mach-syscalls.mk
(echo '#include <sysdep.h>'; \
- echo 'SYSCALL_TRAP (__$*, $(sysno-$*))') > $@
-clean-extras := $(clean-extras) $(mach-syscalls:%=$(objpfx)__%.S)
+ echo 'SYSCALL_TRAP (__$*, $(sysno-$*))') > $@-new
+ mv $@-new $@
+$(mach-syscalls:%=$(objpfx)%.c): $(objpfx)%.c:
+ (echo '#include <gnu-stabs.h>'; \
+ echo 'symbol_alias (__$*, $*)') > $@-new
+ mv $@-new $@
+clean-extras := $(clean-extras) \
+ $(mach-syscalls:%=$(objpfx)__%.S) \
+ $(mach-syscalls:%=$(objpfx)%.c)
endif
mach-shortcuts := $(patsubst syscall_%,%,$(filter syscall_%,$(mach-syscalls)))
endif
include Machrules
-
-interface-routines := $(filter-out %_rpc,$(interface-routines)) \
- $(mach-shortcuts:%=__syscall_%)
-dont_distribute := $(dont_distribute) \
- $(interface-routines:%=%.c) $(interface-headers)
-
include ../Rules
ln $< $@ || cp $< $@
# Be sure not to make these with implicit rules from foo.defs.
-ifdef mach-headers
-$(mach-headers): ;
-endif
+$(filter-out $(interface-headers),$(headers)) : ;