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 >
Text File  |  1989-12-21  |  2KB  |  62 lines

  1. /*
  2.   C BASED FORTH-83 MULTI-TASKING KERNEL MEMORY MANAGEMENT
  3.  
  4.   Copyright (c) 1989 by Mikael Patel
  5.  
  6.   Computer Aided Design Laboratory (CADLAB)
  7.   Department of Computer and Information Science
  8.   Linkoping University
  9.   S-581 83 LINKOPING
  10.   SWEDEN
  11.  
  12.   Email: mip@ida.liu.se
  13.   
  14.   Started on: 8 November 1989
  15.  
  16.   Last updated on: 28 November 1989
  17.  
  18.   Dependencies:
  19.        (cc) memory.h and kernel.h
  20.  
  21.   Description:
  22.        Handles low level access to memory and dictionary allocation.
  23.   
  24.   Copying:
  25.        This program is free software; you can redistribute it and/or modify
  26.        it under the terms of the GNU General Public License as published by
  27.        the Free Software Foundation; either version 1, or (at your option)
  28.        any later version.
  29.  
  30.        This program is distributed in the hope that it will be useful,
  31.        but WITHOUT ANY WARRANTY; without even the implied warranty of
  32.        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  33.        GNU General Public License for more details.
  34.  
  35.        You should have received a copy of the GNU General Public License
  36.        along with this program; see the file COPYING.  If not, write to
  37.        the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
  38.  
  39. */
  40.  
  41.  
  42. #include "memory.h"
  43. #include "kernel.h"
  44.  
  45. void memory_initiate(size)
  46.     long size;
  47. {
  48.     /* Allocate dictionary area and setup dictionary pointer */
  49.  
  50.     dictionary = (long *) malloc((unsigned) size);
  51.     if (dictionary == NIL) {
  52.        (void) printf("memory: can not allocate dictionary area\n");
  53.        exit(0);
  54.     }
  55.     dp = dictionary;
  56. }
  57.  
  58. void memory_finish()
  59. {
  60.     /* Future clean up function for memory management package */
  61. }
  62.