| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * PS3 bootwrapper support. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2007 Sony Computer Entertainment Inc. |
|---|
| 5 | 6 | * Copyright 2007 Sony Corp. |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 9 | | - * the Free Software Foundation; version 2 of the License. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * GNU General Public License for more details. |
|---|
| 15 | | - * |
|---|
| 16 | | - * You should have received a copy of the GNU General Public License |
|---|
| 17 | | - * along with this program; if not, write to the Free Software |
|---|
| 18 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 19 | 7 | */ |
|---|
| 20 | 8 | |
|---|
| 21 | 9 | #include <stdarg.h> |
|---|
| .. | .. |
|---|
| 139 | 127 | ps3_repository_read_rm_size(&rm_size); |
|---|
| 140 | 128 | dt_fixup_memory(0, rm_size); |
|---|
| 141 | 129 | |
|---|
| 142 | | - if (_initrd_end > _initrd_start) { |
|---|
| 130 | + if (&_initrd_end > &_initrd_start) { |
|---|
| 143 | 131 | setprop_val(chosen, "linux,initrd-start", (u32)(_initrd_start)); |
|---|
| 144 | 132 | setprop_val(chosen, "linux,initrd-end", (u32)(_initrd_end)); |
|---|
| 145 | 133 | } |
|---|