X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=second%2Fprom.c;h=25811ea30d146fb30aadff54c2acd0876c780021;hp=82e615146ab39ad651953f96321d8bf8b218d23e;hb=de490d90c482bd49a218cff13c3c69f81aabc99d;hpb=2ad0d7649e5042cad43a16b4a03bf53f39948316 diff --git a/second/prom.c b/second/prom.c index 82e6151..25811ea 100644 --- a/second/prom.c +++ b/second/prom.c @@ -1,7 +1,7 @@ /* * prom.c - Routines for talking to the Open Firmware PROM * - * Copyright (C) 2001 Ethan Benson + * Copyright (C) 2001, 2002 Ethan Benson * * Copyright (C) 1999 Benjamin Herrenschmidt * @@ -553,7 +553,9 @@ prom_claim (void *virt, unsigned int size, unsigned int align) void prom_release(void *virt, unsigned int size) { -// call_prom ("release", 2, 1, virt, size); + call_prom ("release", 2, 0, virt, size); +#if 0 /* this is bullshit, newworld OF RELEASE method works fine. */ + /* release in not enough, it needs also an unmap call. This bit of forth * code inspired from Darwin's bootloader but could be replaced by direct * calls to the MMU package if needed @@ -570,6 +572,7 @@ prom_release(void *virt, unsigned int size) "\" release\" ^mem " // Then free the physical pages ,size, virt ); +#endif /* bullshit */ } void