mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
1MB is not 1024 * 1024 * 1024 but 1024 * 1024.
This commit is contained in:
parent
4e54ad63db
commit
6e982e922a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=45980
@ -26,7 +26,7 @@
|
|||||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: nexus.c,v 1.3 1999/04/19 08:04:19 peter Exp $
|
* $Id: nexus.c,v 1.4 1999/04/21 07:26:26 peter Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -245,7 +245,7 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
|||||||
if (type == SYS_RES_MEMORY) {
|
if (type == SYS_RES_MEMORY) {
|
||||||
caddr_t vaddr = 0;
|
caddr_t vaddr = 0;
|
||||||
|
|
||||||
if (rv->r_end < 1024 * 1024 * 1024) {
|
if (rv->r_end < 1024 * 1024) {
|
||||||
/*
|
/*
|
||||||
* The first 1Mb is mapped at KERNBASE.
|
* The first 1Mb is mapped at KERNBASE.
|
||||||
*/
|
*/
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: nexus.c,v 1.3 1999/04/19 08:04:19 peter Exp $
|
* $Id: nexus.c,v 1.4 1999/04/21 07:26:26 peter Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -245,7 +245,7 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
|||||||
if (type == SYS_RES_MEMORY) {
|
if (type == SYS_RES_MEMORY) {
|
||||||
caddr_t vaddr = 0;
|
caddr_t vaddr = 0;
|
||||||
|
|
||||||
if (rv->r_end < 1024 * 1024 * 1024) {
|
if (rv->r_end < 1024 * 1024) {
|
||||||
/*
|
/*
|
||||||
* The first 1Mb is mapped at KERNBASE.
|
* The first 1Mb is mapped at KERNBASE.
|
||||||
*/
|
*/
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: nexus.c,v 1.3 1999/04/19 08:04:19 peter Exp $
|
* $Id: nexus.c,v 1.4 1999/04/21 07:26:26 peter Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -245,7 +245,7 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
|||||||
if (type == SYS_RES_MEMORY) {
|
if (type == SYS_RES_MEMORY) {
|
||||||
caddr_t vaddr = 0;
|
caddr_t vaddr = 0;
|
||||||
|
|
||||||
if (rv->r_end < 1024 * 1024 * 1024) {
|
if (rv->r_end < 1024 * 1024) {
|
||||||
/*
|
/*
|
||||||
* The first 1Mb is mapped at KERNBASE.
|
* The first 1Mb is mapped at KERNBASE.
|
||||||
*/
|
*/
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: nexus.c,v 1.3 1999/04/19 08:04:19 peter Exp $
|
* $Id: nexus.c,v 1.4 1999/04/21 07:26:26 peter Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -245,7 +245,7 @@ nexus_alloc_resource(device_t bus, device_t child, int type, int *rid,
|
|||||||
if (type == SYS_RES_MEMORY) {
|
if (type == SYS_RES_MEMORY) {
|
||||||
caddr_t vaddr = 0;
|
caddr_t vaddr = 0;
|
||||||
|
|
||||||
if (rv->r_end < 1024 * 1024 * 1024) {
|
if (rv->r_end < 1024 * 1024) {
|
||||||
/*
|
/*
|
||||||
* The first 1Mb is mapped at KERNBASE.
|
* The first 1Mb is mapped at KERNBASE.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user