home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
EFFO
/
pd6.lzh
/
SRC
/
memory.c
< prev
next >
Wrap
Text File
|
1989-12-21
|
2KB
|
62 lines
/*
C BASED FORTH-83 MULTI-TASKING KERNEL MEMORY MANAGEMENT
Copyright (c) 1989 by Mikael Patel
Computer Aided Design Laboratory (CADLAB)
Department of Computer and Information Science
Linkoping University
S-581 83 LINKOPING
SWEDEN
Email: mip@ida.liu.se
Started on: 8 November 1989
Last updated on: 28 November 1989
Dependencies:
(cc) memory.h and kernel.h
Description:
Handles low level access to memory and dictionary allocation.
Copying:
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
the Free Software Foundation; either version 1, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "memory.h"
#include "kernel.h"
void memory_initiate(size)
long size;
{
/* Allocate dictionary area and setup dictionary pointer */
dictionary = (long *) malloc((unsigned) size);
if (dictionary == NIL) {
(void) printf("memory: can not allocate dictionary area\n");
exit(0);
}
dp = dictionary;
}
void memory_finish()
{
/* Future clean up function for memory management package */
}