Skip to content

Commit

Permalink
feature(hal): rename VADDR_KERNEL_INIT to VADDR_KERNEL
Browse files Browse the repository at this point in the history
JIRA: RTOS-908
  • Loading branch information
badochov committed Sep 9, 2024
1 parent 9db2e1c commit 5961bfb
Show file tree
Hide file tree
Showing 16 changed files with 12 additions and 24 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ include ../phoenix-rtos-build/Makefile.common
LDGEN ?= $(CC)

CFLAGS += -I.
ifeq ($(HAVE_MMU),y)
CPPFLAGS += -DVADDR_KERNEL=$(VADDR_KERNEL)
endif
CPPFLAGS += -DVERSION=\"$(VERSION)\"

OBJS :=
Expand Down
2 changes: 0 additions & 2 deletions hal/armv7a/imx6ull/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ LDFLAGS+=-Wl,--defsym,_plo_bss=__bss_start
CFLAGS:=$(filter-out -mfloat-abi% , $(CFLAGS))
CFLAGS:=$(filter-out -mfpu% , $(CFLAGS))

CFLAGS += -DVADDR_KERNEL_INIT=$(VADDR_KERNEL_INIT)

PLO_COMMANDS ?= alias app blob call console copy dump echo erase go help jffs2 kernel map mem phfs script \
stop test-dev test-ddr wait

Expand Down
4 changes: 2 additions & 2 deletions hal/armv7a/imx6ull/hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ addr_t hal_kernelGetAddress(addr_t addr)
{
addr_t offs;

if ((addr_t)VADDR_KERNEL_INIT != (addr_t)ADDR_DDR) {
offs = addr - VADDR_KERNEL_INIT;
if ((addr_t)VADDR_KERNEL != (addr_t)ADDR_DDR) {
offs = addr - VADDR_KERNEL;
addr = ADDR_DDR + offs;
}

Expand Down
2 changes: 0 additions & 2 deletions hal/armv7a/zynq7000/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ LDFLAGS := $(filter-out -Tdata% , $(LDFLAGS))
CFLAGS := $(filter-out -mfloat-abi% , $(CFLAGS))
CFLAGS := $(filter-out -mfpu% , $(CFLAGS))

CFLAGS += -DVADDR_KERNEL_INIT=$(VADDR_KERNEL_INIT)

PLO_COMMANDS ?= alias app blob bitstream call console copy dump echo erase go help jffs2 kernel map mem \
phfs reboot script stop test-ddr test-dev wait

Expand Down
4 changes: 2 additions & 2 deletions hal/armv7a/zynq7000/hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ addr_t hal_kernelGetAddress(addr_t addr)
{
addr_t offs;

if ((addr_t)VADDR_KERNEL_INIT != (addr_t)ADDR_DDR) {
offs = addr - VADDR_KERNEL_INIT;
if ((addr_t)VADDR_KERNEL != (addr_t)ADDR_DDR) {

Check failure on line 131 in hal/armv7a/zynq7000/hal.c

View workflow job for this annotation

GitHub Actions / call-ci / build (armv7a9-zynq7000-zedboard)

expected expression before '!=' token

Check failure on line 131 in hal/armv7a/zynq7000/hal.c

View workflow job for this annotation

GitHub Actions / call-ci / build (armv7a9-zynq7000-zturn)

expected expression before '!=' token
offs = addr - VADDR_KERNEL;

Check failure on line 132 in hal/armv7a/zynq7000/hal.c

View workflow job for this annotation

GitHub Actions / call-ci / build (armv7a9-zynq7000-zedboard)

expected expression before ';' token

Check failure on line 132 in hal/armv7a/zynq7000/hal.c

View workflow job for this annotation

GitHub Actions / call-ci / build (armv7a9-zynq7000-zturn)

expected expression before ';' token
addr = ADDR_DDR + offs;
}

Expand Down
1 change: 0 additions & 1 deletion hal/ia32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# %LICENSE%
#

CFLAGS += -DVADDR_KERNEL_BASE=$(VADDR_KERNEL_BASE)
CFLAGS += -Ihal/ia32

PLO_COMMANDS ?= alias app blob call console copy dump echo go help kernel lspci map mem phfs script reboot stop syspage wait
Expand Down
2 changes: 1 addition & 1 deletion hal/ia32/hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ extern void hal_timerInit(void);

addr_t hal_kernelGetAddress(addr_t addr)
{
return addr - VADDR_KERNEL_BASE;
return addr - VADDR_KERNEL;
}


Expand Down
2 changes: 0 additions & 2 deletions hal/riscv64/generic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# %LICENSE%
#

CFLAGS += -DVADDR_KERNEL_INIT=$(VADDR_KERNEL_INIT)

GCCLIB := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)

PLO_COMMANDS ?= alias app blob call console copy dump echo go help kernel map mem phfs reboot script stop wait
Expand Down
2 changes: 1 addition & 1 deletion hal/riscv64/generic/hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const char *hal_cpuInfo(void)

addr_t hal_kernelGetAddress(addr_t addr)
{
return addr - VADDR_KERNEL_INIT + ADDR_DDR + SIZE_PLO;
return addr - VADDR_KERNEL + ADDR_DDR + SIZE_PLO;
}


Expand Down
2 changes: 0 additions & 2 deletions hal/riscv64/noelv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# %LICENSE%
#

CFLAGS += -DVADDR_KERNEL_INIT=$(VADDR_KERNEL_INIT)

GCCLIB := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)

PLO_COMMANDS ?= alias app call console copy dump echo go help kernel map mem phfs reboot script wait
Expand Down
2 changes: 1 addition & 1 deletion hal/riscv64/noelv/hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const char *hal_cpuInfo(void)

addr_t hal_kernelGetAddress(addr_t addr)
{
return addr - VADDR_KERNEL_INIT + ADDR_DDR + SIZE_PLO;
return addr - VADDR_KERNEL + ADDR_DDR + SIZE_PLO;
}


Expand Down
2 changes: 0 additions & 2 deletions hal/sparcv8leon3/gaisler/generic/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# %LICENSE%
#

CFLAGS += -DVADDR_KERNEL_INIT=$(VADDR_KERNEL_INIT)

PLO_COMMANDS ?= alias app blob call console copy dump echo go help jffs2 kernel map mem phfs reboot script stop wait test-dev

PLO_ALLDEVICES := uart-grlib ram-storage
Expand Down
2 changes: 1 addition & 1 deletion hal/sparcv8leon3/gaisler/generic/hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const char *hal_cpuInfo(void)

addr_t hal_kernelGetAddress(addr_t addr)
{
return addr - VADDR_KERNEL_INIT + ADDR_SRAM;
return addr - VADDR_KERNEL + ADDR_SRAM;
}


Expand Down
2 changes: 0 additions & 2 deletions hal/sparcv8leon3/gaisler/gr712rc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# %LICENSE%
#

CFLAGS += -DVADDR_KERNEL_INIT=$(VADDR_KERNEL_INIT)

PLO_COMMANDS ?= alias app blob call console copy dump echo go help jffs2 kernel map mem phfs reboot script stop wait test-dev

PLO_ALLDEVICES := uart-grlib flash-gr712rc
Expand Down
2 changes: 1 addition & 1 deletion hal/sparcv8leon3/gaisler/gr712rc/hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const char *hal_cpuInfo(void)

addr_t hal_kernelGetAddress(addr_t addr)
{
return addr - VADDR_KERNEL_INIT + ADDR_SRAM;
return addr - VADDR_KERNEL + ADDR_SRAM;
}


Expand Down
2 changes: 0 additions & 2 deletions hal/sparcv8leon3/gaisler/gr716/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ LDFLAGS:=$(filter-out -Tbss% , $(LDFLAGS))
LDFLAGS:=$(filter-out -Tdata% , $(LDFLAGS))
LDFLAGS:=$(filter-out -Wl$(comma)--section-start% , $(LDFLAGS))

CFLAGS += -DVADDR_KERNEL_INIT=$(VADDR_KERNEL_INIT)

PLO_COMMANDS ?= alias app blob call console copy dump echo go help kernel map mem phfs reboot script stop wait

PLO_ALLDEVICES := gpio-gr716 uart-grlib flash-gr716
Expand Down

0 comments on commit 5961bfb

Please sign in to comment.