/netbsd/sys/arch/hpcmips/hpcmips/locore_machdep.S

https://github.com/deathmaker1/kame · Assembly · 107 lines · 39 code · 6 blank · 62 comment · 0 complexity · 46fc43dbd90e00e49146548bd649c2bd MD5 · raw file

  1. /* $NetBSD: locore_machdep.S,v 1.2 2000/05/22 07:40:41 uch Exp $ */
  2. /*
  3. * Copyright (c) 1992, 1993
  4. * The Regents of the University of California. All rights reserved.
  5. *
  6. * This code is derived from software contributed to Berkeley by
  7. * Digital Equipment Corporation and Ralph Campbell.
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions
  11. * are met:
  12. * 1. Redistributions of source code must retain the above copyright
  13. * notice, this list of conditions and the following disclaimer.
  14. * 2. Redistributions in binary form must reproduce the above copyright
  15. * notice, this list of conditions and the following disclaimer in the
  16. * documentation and/or other materials provided with the distribution.
  17. * 3. All advertising materials mentioning features or use of this software
  18. * must display the following acknowledgement:
  19. * This product includes software developed by the University of
  20. * California, Berkeley and its contributors.
  21. * 4. Neither the name of the University nor the names of its contributors
  22. * may be used to endorse or promote products derived from this software
  23. * without specific prior written permission.
  24. *
  25. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  26. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  27. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  28. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  29. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  30. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  31. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  32. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  33. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  34. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  35. * SUCH DAMAGE.
  36. *
  37. * Copyright (C) 1989 Digital Equipment Corporation.
  38. * Permission to use, copy, modify, and distribute this software and
  39. * its documentation for any purpose and without fee is hereby granted,
  40. * provided that the above copyright notice appears in all copies.
  41. * Digital Equipment Corporation makes no representations about the
  42. * suitability of this software for any purpose. It is provided "as is"
  43. * without express or implied warranty.
  44. *
  45. * from: Header: /sprite/src/kernel/mach/ds3100.md/RCS/loMem.s,
  46. * v 1.1 89/07/11 17:55:04 nelson Exp SPRITE (DECWRL)
  47. * from: Header: /sprite/src/kernel/mach/ds3100.md/RCS/machAsm.s,
  48. * v 9.2 90/01/29 18:00:39 shirriff Exp SPRITE (DECWRL)
  49. * from: Header: /sprite/src/kernel/vm/ds3100.md/vmPmaxAsm.s,
  50. * v 1.1 89/07/10 14:27:41 nelson Exp SPRITE (DECWRL)
  51. *
  52. * @(#)locore.s 8.5 (Berkeley) 1/4/94
  53. */
  54. /*
  55. * hpcmips-specific mips locore code.
  56. */
  57. #include <mips/asm.h>
  58. #include <mips/cpuregs.h> /* XXX - misnomer? */
  59. .set noreorder
  60. /*
  61. * GCC2 seems to want to call __main in main() for some reason.
  62. */
  63. LEAF(__main)
  64. j ra
  65. nop
  66. END(__main)
  67. /*
  68. * Interrupt counters for vmstat.
  69. */
  70. .data
  71. .globl _C_LABEL(intrcnt)
  72. .globl _C_LABEL(eintrcnt)
  73. .globl _C_LABEL(intrnames)
  74. .globl _C_LABEL(eintrnames)
  75. _C_LABEL(intrnames):
  76. .asciiz "softclock"
  77. .asciiz "softnet"
  78. .asciiz "serial0"
  79. .asciiz "serial1"
  80. .asciiz "serial2"
  81. .asciiz "ether"
  82. .asciiz "scsi"
  83. .asciiz "memory"
  84. .asciiz "clock"
  85. .asciiz "fpu"
  86. .asciiz "tcslot0"
  87. .asciiz "tcslot1"
  88. .asciiz "tcslot2"
  89. .asciiz "dtop"
  90. .asciiz "isdn"
  91. .asciiz "floppy"
  92. .asciiz "stray"
  93. .asciiz "nmi"
  94. .asciiz "lostclock"
  95. _C_LABEL(eintrnames):
  96. .align 2
  97. _C_LABEL(intrcnt):
  98. .word 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0
  99. _C_LABEL(eintrcnt):
  100. .word 0 # This shouldn't be needed but with 4.4bsd's as, the eintrcnt
  101. # label ends end up in a different section otherwise.