diff options
author | Aaron Durbin <adurbin@chromium.org> | 2015-03-20 09:42:05 -0500 |
---|---|---|
committer | Aaron Durbin <adurbin@google.com> | 2015-03-31 19:42:08 +0200 |
commit | 6e76fff96961264e8c7213142966de6589092291 (patch) | |
tree | 34dd8402cbd71114974f2128f5fdc7671bc371c6 /src/lib/arch_ops.c | |
parent | ebf2ed46211e0ccd82d11c34226eb578f9532a2a (diff) | |
download | coreboot-6e76fff96961264e8c7213142966de6589092291.tar.xz |
program loading: provide one cache maintenance callback
Instead of having 2 different functions to call when a program
is loaded provide a single callback with flags parameter. The
previous callbacks for cache management routines did this:
for_each_program_segment:
arch_program_segment_loaded(start, size);
arch_program_loaded();
Now, use one callback instead:
for_each_program_segment:
arch_segment_loaded(start, size, SEG_FINAL?);
Change-Id: I3811cba92e3355d172f605e4444f053321b07a2a
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/8838
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/lib/arch_ops.c')
-rw-r--r-- | src/lib/arch_ops.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/arch_ops.c b/src/lib/arch_ops.c index f02b342b7f..b9f57194d7 100644 --- a/src/lib/arch_ops.c +++ b/src/lib/arch_ops.c @@ -2,6 +2,7 @@ * This file is part of the coreboot project. * * Copyright (C) 2014 Imagination Technologies + * Copyright 2015 Google Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,14 +21,9 @@ #include <program_loading.h> /* For each segment of a program loaded this function is called*/ -__attribute__ ((weak)) void arch_program_segment_loaded(uintptr_t start, - size_t size) +void __attribute__ ((weak)) arch_segment_loaded(uintptr_t start, size_t size, + int flags) { /* do nothing */ } -/* Upon completion of loading a program this function is called */ -__attribute__ ((weak)) void arch_program_loaded(void) -{ - /* do nothing */ -} |