|
|
1.1 ! root 1: / $Header: /kernel/kersrc/ldrv/RCS/ldrts0.s,v 1.1 92/07/17 15:27:54 bin Exp Locker: bin $ ! 2: / ! 3: / The information contained herein is a trade secret of INETCO ! 4: / Systems, and is confidential information. It is provided under ! 5: / a license agreement, and may be copied or disclosed only under ! 6: / the terms of that agreement. Any reproduction or disclosure of ! 7: / this material without the express written authorization of ! 8: / INETCO Systems or persuant to the license agreement is unlawful. ! 9: / ! 10: / Copyright (c) 1987 ! 11: / An unpublished work by INETCO Systems, Ltd. ! 12: / All rights reserved. ! 13: / ! 14: ! 15: //////// ! 16: / ! 17: / Loadable Driver Run Time Startup ! 18: / ! 19: / Notes: This function MUST be at offset 0 in driver code segment. ! 20: / ! 21: / $Log: ldrts0.s,v $ ! 22: / Revision 1.1 92/07/17 15:27:54 bin ! 23: / Initial revision ! 24: / ! 25: / Revision 1.1 88/03/24 16:30:47 src ! 26: / Initial revision ! 27: / ! 28: / ! 29: //////// ! 30: ! 31: .globl main_ ! 32: call main_ ! 33: xret ! 34: ! 35: //////// ! 36: / ! 37: / Invocation mechanism for local driver functions by kernel code. ! 38: / ! 39: / Input: AX = pointer to local function to be invoked. ! 40: / 4(BP) = 1st parameter to be passed to local function. ! 41: / 6(BP) = 2nd parameter to be passed to local function. ! 42: / 8(BP) = 3rd parameter to be passed to local function. ! 43: / ! 44: / Action: Invoke local function whose address is given in register AX, ! 45: / passing parameters at offset 4,6,8 relative to register BP. ! 46: / Perform a far return to operating system. ! 47: / ! 48: / Notes: Parameter passing convention specified by kernel. ! 49: / This function MUST be at offset 4 in driver code segment. ! 50: / ! 51: //////// ! 52: ! 53: push 8(bp) ! 54: push 6(bp) ! 55: push 4(bp) ! 56: icall ax ! 57: add sp, $6 ! 58: xret
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.