From 66959011d8304292e18dc25a5339c65fe374ca5b Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 9 Mar 2016 17:21:33 -0600 Subject: arch/power8: Position bootblock start at reset vector Change-Id: I99c3b4dd0c4da41b99bc108977079c8069afc0bd Signed-off-by: Timothy Pearson Reviewed-on: https://review.coreboot.org/14019 Reviewed-by: Ronald G. Minnich Tested-by: build bot (Jenkins) --- src/arch/power8/Makefile.inc | 5 ++++- src/arch/power8/bootblock.S | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/arch/power8/Makefile.inc b/src/arch/power8/Makefile.inc index 54e97f966a..55c5470fd1 100644 --- a/src/arch/power8/Makefile.inc +++ b/src/arch/power8/Makefile.inc @@ -2,6 +2,7 @@ ## ## This file is part of the coreboot project. ## +## Copyright (C) 2016 Raptor Engineering, LLC ## Copyright (C) 2014 The ChromiumOS Authors ## ## This program is free software; you can redistribute it and/or modify @@ -15,7 +16,7 @@ ## ################################################################################ -power8_flags = -I$(src)/arch/power8/ +power8_flags = -I$(src)/arch/power8/ -mbig-endian -mcpu=power8 -mtune=power8 power8_asm_flags = @@ -34,6 +35,8 @@ bootblock-y += \ $(top)/src/lib/memmove.c \ $(top)/src/lib/memset.c +bootblock-generic-ccopts += $(power8_flags) + $(objcbfs)/bootblock.debug: $$(bootblock-objs) @printf " LINK $(subst $(obj)/,,$(@))\n" $(LD_bootblock) $(LDFLAGS_bootblock) -o $@ -L$(obj) \ diff --git a/src/arch/power8/bootblock.S b/src/arch/power8/bootblock.S index 3b864aa21a..77289a1246 100644 --- a/src/arch/power8/bootblock.S +++ b/src/arch/power8/bootblock.S @@ -1,6 +1,7 @@ /* - * Early initialization code for power8. + * Early initialization code for POWER8. * + * Copyright 2016 Raptor Engineering, LLC * Copyright 2013 Google Inc. * * This program is free software; you can redistribute it and/or @@ -16,6 +17,7 @@ .section ".text._start", "ax", %progbits .globl _start +.org 0x100, 0xff _start: b _start .section ".id", "a", %progbits -- cgit v1.2.3