Ticket #3016: 0001-missing-a-couple-register-names-a-ifndef_ASM__-aroun.patch

File 0001-missing-a-couple-register-names-a-ifndef_ASM__-aroun.patch, 1.1 KB (added by phongvanpham, on May 12, 2017 at 6:43:53 PM)

patch

  • c/src/libchip/serial/ns16550_p.h

    From 44585b269a85cedb12a145affbba6005b1265913 Mon Sep 17 00:00:00 2001
    From: Phong Pham <phamp@ddc-web.com>
    Date: Sun, 7 May 2017 14:13:24 -0700
    Subject: [PATCH] missing a couple register names + a #ifndef_ASM__ around serial.h inclusion
    
    Closes #3016.
    ---
     c/src/libchip/serial/ns16550_p.h |    4 ++++
     1 files changed, 4 insertions(+), 0 deletions(-)
     mode change 100644 => 100755 c/src/libchip/serial/ns16550_p.h
    
    diff --git a/c/src/libchip/serial/ns16550_p.h b/c/src/libchip/serial/ns16550_p.h
    old mode 100644
    new mode 100755
    index 0fe817a..e3d0eba
    a b  
    2828#ifndef _NS16550_P_H_
    2929#define _NS16550_P_H_
    3030
     31#ifndef ASM
    3132#include <libchip/serial.h>
     33#endif
    3234
    3335#ifdef __cplusplus
    3436extern "C" {
    extern "C" { 
    4345
    4446#define NS16550_RECEIVE_BUFFER   0
    4547#define NS16550_TRANSMIT_BUFFER  0
     48#define NS16550_DIVISOR_LATCH_L  0
    4649#define NS16550_INTERRUPT_ENABLE 1
     50#define NS16550_DIVISOR_LATCH_M  1
    4751#define NS16550_INTERRUPT_ID     2
    4852#define NS16550_FIFO_CONTROL     2
    4953#define NS16550_LINE_CONTROL     3