Skip to content

Commit

Permalink
Move ABI subsystem definition into Modules.generic
Browse files Browse the repository at this point in the history
The ABI subsystem of fiasco is generally similar among the different
architectures so we can use Modules-generic to define it once for all
architectures.

Change-Id: Ia152e66c631b97038d1e36e35e96855a855cd71f
  • Loading branch information
alexwarg authored and jermar committed Jul 3, 2024
1 parent 5ce6edd commit a5ab03f
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 65 deletions.
12 changes: 4 additions & 8 deletions src/Modules.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,10 @@ PRIVATE_INCDIR += types/$(CONFIG_XARCH) types
#
# ABI Subsystem
#
ABI := libabi.a
VPATH += abi/$(CONFIG_XARCH) abi
INTERFACES_ABI := l4_fpage l4_msg_item l4_buf_desc kip l4_types \
l4_error virt

kip_IMPL := kip kip-debug kip-amd64 kip-amd64-debug
l4_types_IMPL := l4_types l4_types-debug
virt_IMPL := virt-ia32-amd64
INTERFACES_ABI += virt

kip_IMPL += kip-amd64-debug
virt_IMPL += virt-ia32-amd64

#
# JABI Subsystem
Expand Down
17 changes: 0 additions & 17 deletions src/Modules.arm
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,6 @@ JABI := libjabi.a
VPATH += jabi/$(CONFIG_XARCH)/$(BITS) jabi/$(CONFIG_XARCH) jabi
INTERFACES_JABI := jdb_ktrace jdb_obj_info

#
# ABI Subsystem
#

ABI := libabi.a
VPATH += abi/$(CONFIG_XARCH)/$(BITS) abi/$(CONFIG_XARCH) abi

INTERFACES_ABI := kip l4_types l4_fpage l4_msg_item \
l4_buf_desc l4_error

l4_types_IMPL := l4_types l4_types-debug


# x0!=32Bit UIDs
kip_IMPL := kip kip-debug kip-arm


#
# KERNEL subsystem
#
Expand Down
12 changes: 12 additions & 0 deletions src/Modules.generic
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
# Include for unit tests, enable by including UTEST in SUBSYSTEMS.
include $(srcdir)/test/utest/Modules.utest

#
# ABI Subsystem
#
ABI := libabi.a
VPATH += abi/$(CONFIG_XARCH)/$(BITS) abi/$(CONFIG_XARCH) abi
INTERFACES_ABI := kip l4_types l4_fpage l4_msg_item l4_buf_desc l4_error

l4_types_IMPL := l4_types l4_types-debug
kip_IMPL := kip kip-debug kip-$(CONFIG_XARCH)



PREPROCESS_PARTS-$(CONFIG_JDB_LOGGING) += jdb_logging

INTERFACES_KERNEL := cpu_mask rcupdate kobject_mapdb context_base pm \
Expand Down
8 changes: 2 additions & 6 deletions src/Modules.ia32
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,9 @@ PRIVATE_INCDIR += types/$(CONFIG_XARCH) types
#
# ABI Subsystem
#
ABI := libabi.a
VPATH += abi/$(CONFIG_XARCH) abi
INTERFACES_ABI := l4_fpage l4_msg_item l4_buf_desc kip l4_types \
l4_error virt
INTERFACES_ABI += virt

kip_IMPL := kip kip-debug kip-ia32 kip-ia32-debug
l4_types_IMPL := l4_types l4_types-debug
kip_IMPL += kip-ia32-debug
virt_IMPL := virt-ia32-amd64

#
Expand Down
7 changes: 1 addition & 6 deletions src/Modules.mips
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,7 @@ INTERFACES_JABI := jdb_ktrace jdb_obj_info
#
# ABI Subsystem
#
ABI := libabi.a
VPATH += abi/mips/$(BITS) abi/mips abi
INTERFACES_ABI := kip l4_types l4_fpage l4_msg_item l4_buf_desc l4_error

kip_IMPL := kip kip-debug kip-mips
l4_types_IMPL := l4_types l4_types-mips l4_types-debug
l4_types_IMPL += l4_types-mips

#
# KERNEL subsystem
Expand Down
11 changes: 0 additions & 11 deletions src/Modules.ppc32
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,6 @@ JABI := libjabi.a
VPATH += jabi/$(CONFIG_XARCH) jabi
INTERFACES_JABI := jdb_ktrace jdb_obj_info


#
# ABI Subsystem
#
ABI := libabi.a
VPATH += abi/$(CONFIG_XARCH) abi
INTERFACES_ABI := kip l4_types l4_fpage l4_msg_item l4_buf_desc l4_error

kip_IMPL := kip kip-debug kip-ppc32
l4_types_IMPL := l4_types l4_types-debug

#
# KERNEL subsystem
#
Expand Down
7 changes: 1 addition & 6 deletions src/Modules.riscv
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,7 @@ INTERFACES_JABI := jdb_ktrace jdb_obj_info
#
# ABI Subsystem
#
ABI := libabi.a
VPATH += abi/$(CONFIG_XARCH)/$(BITS) abi/$(CONFIG_XARCH) abi
INTERFACES_ABI := kip l4_types l4_fpage l4_msg_item l4_buf_desc l4_error

kip_IMPL := kip kip-debug kip-riscv
l4_types_IMPL := l4_types l4_types-debug l4_types-riscv
l4_types_IMPL += l4_types-riscv

#
# KERNEL subsystem
Expand Down
11 changes: 0 additions & 11 deletions src/Modules.sparc
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,6 @@ JABI := libjabi.a
VPATH += jabi/$(CONFIG_XARCH) jabi
INTERFACES_JABI := jdb_ktrace jdb_obj_info


#
# ABI Subsystem
#
ABI := libabi.a
VPATH += abi/$(CONFIG_XARCH) abi
INTERFACES_ABI := kip l4_types l4_fpage l4_msg_item l4_buf_desc l4_error

kip_IMPL := kip kip-debug kip-sparc
l4_types_IMPL := l4_types l4_types-debug

#
# KERNEL subsystem
#
Expand Down

0 comments on commit a5ab03f

Please sign in to comment.