cpupi.pas 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. $Id$
  3. Copyright (c) 2002 by Florian Klaempfl
  4. This unit contains the CPU specific part of tprocinfo
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. { This unit contains the CPU specific part of tprocinfo. }
  19. unit cpupi;
  20. {$i fpcdefs.inc}
  21. interface
  22. uses
  23. psub;
  24. type
  25. ti386procinfo = class(tcgprocinfo)
  26. procedure allocate_interrupt_stackframe;override;
  27. end;
  28. implementation
  29. uses
  30. cgbase;
  31. procedure ti386procinfo.allocate_interrupt_stackframe;
  32. begin
  33. { we push Flags and CS as long
  34. to cope with the IRETD
  35. and we save 6 register + 4 selectors }
  36. inc(procdef.parast.address_fixup,8+6*4+4*2);
  37. end;
  38. begin
  39. cprocinfo:=ti386procinfo;
  40. end.
  41. {
  42. $Log$
  43. Revision 1.5 2003-05-25 10:26:15 peter
  44. * fix interrupt stack allocation
  45. Revision 1.4 2003/05/22 21:32:29 peter
  46. * removed some unit dependencies
  47. Revision 1.3 2003/04/27 11:21:35 peter
  48. * aktprocdef renamed to current_procdef
  49. * procinfo renamed to current_procinfo
  50. * procinfo will now be stored in current_module so it can be
  51. cleaned up properly
  52. * gen_main_procsym changed to create_main_proc and release_main_proc
  53. to also generate a tprocinfo structure
  54. * fixed unit implicit initfinal
  55. Revision 1.2 2003/04/27 07:48:05 peter
  56. * updated for removed lexlevel
  57. Revision 1.1 2002/08/17 09:23:44 florian
  58. * first part of procinfo rewrite
  59. }