Changeset 62baed17 in mainline for kernel/arch/ia32/src/asm.S


Ignore:
Timestamp:
2010-06-26T12:00:12Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
38e5675b
Parents:
8e374ea7
Message:

Switch ia32 to use the unified panic architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/asm.S

    r8e374ea7 r62baed17  
    163163        pushl %edi      # remember return user address
    164164
     165        xorl %ebp, %ebp # stop stack traces here
     166
    165167        pushl %gs       # remember TLS
    166168
     
    196198# and call exc_dispatch().
    197199#
    198 #define INTERRUPT_ALIGN 64
     200#define INTERRUPT_ALIGN 128
    199201.macro handler i n
    200202       
     
    224226                movw %ax, %ds
    225227                movw %ax, %es
    226                
     228       
     229                xorl %ebp, %ebp
     230
    227231                cld
    228232                sti
     
    230234                call syscall_handler
    231235                cli
    232                 addl $28, %esp         # clean-up of parameters
     236
     237                movl 20(%esp), %ebp     # restore EBP
     238                addl $28, %esp          # clean-up of parameters
    233239               
    234240                popl %gs
     
    280286                movw %ax, %es
    281287               
    282                 # stop stack traces here
     288                # stop stack traces here if we came from userspace
     289                cmpl $8, 40(%esp)
     290                jz 0f
    283291                xorl %ebp, %ebp
    284                
     292
     2930:             
    285294                pushl %esp          # *istate
    286295                pushl $(\i)         # intnum
Note: See TracChangeset for help on using the changeset viewer.