Remove bochs breakpoints

This commit is contained in:
Jeremy Soller 2016-11-20 09:06:55 -07:00
parent cc71670a8d
commit 027bbb0b2e
3 changed files with 4 additions and 8 deletions

View file

@ -151,8 +151,7 @@ unsafe extern fn signal_handler_wrapper() {
} }
// Push scratch registers // Push scratch registers
asm!("xchg bx, bx asm!("push rax
push rax
push rcx push rcx
push rdx push rdx
push rdi push rdi
@ -171,8 +170,7 @@ unsafe extern fn signal_handler_wrapper() {
inner(&*(rsp as *const SignalHandlerStack)); inner(&*(rsp as *const SignalHandlerStack));
// Pop scratch registers, error code, and return // Pop scratch registers, error code, and return
asm!("xchg bx, bx asm!("pop r11
pop r11
pop r10 pop r10
pop r9 pop r9
pop r8 pop r8

View file

@ -241,8 +241,7 @@ macro_rules! interrupt_error {
} }
// Push scratch registers // Push scratch registers
asm!("xchg bx, bx asm!("push rax
push rax
push rcx push rcx
push rdx push rdx
push rdi push rdi

View file

@ -160,8 +160,7 @@ pub unsafe extern fn kstart_ap(cpu_id: usize, bsp_table: usize, stack_start: usi
pub unsafe fn usermode(ip: usize, sp: usize) -> ! { pub unsafe fn usermode(ip: usize, sp: usize) -> ! {
// Go to usermode // Go to usermode
asm!("xchg bx, bx asm!("mov ds, ax
mov ds, ax
mov es, ax mov es, ax
mov fs, bx mov fs, bx
mov gs, ax mov gs, ax