From mint-bounce@lists.fishpool.fi Mon May 31 07:33:15 2010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=OxmzM1OvvYnfbPh65Tro9uBkyo/+A2oMveIuz3IUoFw=; b=S+XMMshnbL0VwvXZk+qNKLf+oAcLfGJg9eV1j8yyKOTeEkO33u7mZ7Sd4mD7LFLwLN qKlD3E/7ZUhShuWhq6/MGuVpmaKOto5N3AKURCJA1cO4+LlA8xT16YV2NKPyQNnsfHC+ Sv+/xq8SfN7JNvaaRDELSoNlwCLj+8XHOYcI8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=FOjw+o0QZ5m3kdxiUKay2mF/yrMqL7oWAD7fDKZk1o8MSmlT6vtw3QAWecg4Wr8PAf u9CP2yzIDCm6yAWoOZhwXwROWnZwWSiYYzl4LIVNjZYg5zslk60SuViaWmq7I6nj0PAu pSq5Iw2MKAPstiLIFfHpLU4ZRZ6GH8fzSMR14= Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1078) Subject: [MiNT] Allocation of video RAM From: Peter Persson In-Reply-To: Date: Mon, 31 May 2010 13:30:41 +0200 Message-Id: References: To: MiNT Mailing List X-Mailer: Apple Mail (2.1078) X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: pep.fishmoose@gmail.com Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id o4VBXESM002022 Hi, I'm not sure if I asked this before. I'm implementing a rudimentary driver for the SuperVidel. While driver isn't strictly necessary to use the card, it can greatly enhance the user experience (new blitter, higher video ram bandwidth etc). My question is about video RAM (VRAM). Right now there is no functionality for this in the kernel, except Screalloc(). This means that the driver has to implement that stuff internally, which has several drawbacks. For example - if an application exits prematurely or doesn't do mfree() on allocated VRAM, the memory won't be freed. Furthermore, there will be no memory protection for this additional class of RAM if it isn't implemented in the kernel. How difficult would it be to implement another class of RAM? Is it even feasible? And if it is - would it make sense to expand Mxalloc() to handle this new class of RAM, or would it be better to implement yet another system call for this? best regards -- PeP